I am starting a project to create a simple object-oriented OS, on the level of MS-DOS. Currently I am working to set up the proper development environment. Perhaps against the grain, I have decided thus far to use Windows and Visual C++.
My question concerns the compiler settings for my IDE, Visual C++ Express. I have included the /NODEFAULTLIB option for the linker, yet I still get the following error:
Code: Select all
error LNK2001: unresolved external symbol _mainCRTStartup
Compiler:
Code: Select all
/O1 /Os /GL /X /GF /FD /MT /Zp1 /GS- /Zc:wchar_t- /GR- /FAcs /Fa"\\" /Fo"\\" /Fd"\vc80.pdb" /W4 /nologo /c /Gz /TP /Zl /errorReport:prompt /Oy-
Code: Select all
/OUT:"\odos.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:"\.intermediate.manifest" /NODEFAULTLIB /MAP:"odos.map" /TSAWARE:NO /OPT:REF /OPT:ICF /LTCG /MACHINE:X86 /ERRORREPORT:PROMPT /DRIVER /ALIGN:512
Finally, I am using Visual C++ Express 2005 Version 8.0.50727.42 (RTM.050727-4200), if anyone needs to know.
If you need more information in order to help (if you are willing in the first place!), then please let me know.
- Rob