cl options
/nologo /ML /Gt0 /QMOb2000 /W3 /GX /Od /Gf /X /I "D:\Xorgfr\include" /D "NDEBUG" /D "NOGDICAPMASKS" /D "NOWINMESSAGES" /D "NOWINSTYLES" /D "NOSYSMETRICS" /D "NOMENUS" /D "NOICONS" /D "NOSYSCOMMANDS" /D "NORASTEROPS" /D "NOSHOWWINDOW" /D "OEMRESOURCE" /D "NOATOM" /D "NOCLIPBOARD" /D "NOCOLOR" /D "NOCTLMGR" /D "NODRAWTEXT" /D "NOGDI" /D "NOKERNEL" /D "NONLS" /D "NOMB" /D "NOMEMMGR" /D "NOMETAFILE" /D "NOMINMAX" /D "NOMSG" /D "NOOPENFILE" /D "NOSCROLL" /D "NOSERVICE" /D "NOSOUND" /D "NOTEXTMETRIC" /D "NOWINOFFSETS" /D "NOWH" /D "NOCOMM" /D "NOKANJI" /D "NOHELP" /D "NOPROFILER" /D "NODEFERWINDOWPOS" /D "NOMCX" /D "Roster" /D WIN32_WINNT=0x4000 /Fo"MIPSRel/" /c
In reality I’m building a kernel dll.
D:\Xfr\main.C() : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'mio.cpp', line 49)
Themio.cpp
file does not exist on my system, so I think this is a part of the cl.exe source code. With gcc, there is an option that let you know which line of your code triggered the compiler error.
I tried to disable compiled headers; all optimisations changing the target to R10000, but the error still appends at the same place.
And microsoft won’t correct the error for sure. I couldn’t found an another compiler supporting this platform.
Also I really need to use the include files since the export is structure of structure of structures.
static ALLOC_SECTION_LDATA KBDTABLES KbdTables = {
&CharModifiers,
aVkToWcharTable,
aDeadKey,
aKeyNames,
aKeyNamesExt,
aKeyNamesDead,
ausVK,
sizeof(ausVK) / sizeof(ausVK[0]),
aE0VscToVk,
aE1VscToVk,
MAKELONG(KLLF_LRM_RLM | KLLF_ALTGR, KBD_VERSION),
2,
sizeof(aLigature[0]),
(PLIGATURE1)aLigature
};
PKBDTABLES KbdLayerDescriptor(VOID) // this is the exported function, as you can see I definitely need it’s definition
return &KbdTables; // just return a pointer to the structure
}