Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Sockets and resource limit per thread Pin
Randor 8-May-08 8:51
professional Randor 8-May-08 8:51 
GeneralRe: Sockets and resource limit per thread Pin
bob169728-May-08 8:58
bob169728-May-08 8:58 
GeneralRe: Sockets and resource limit per thread Pin
bob169728-May-08 10:03
bob169728-May-08 10:03 
GeneralRe: Sockets and resource limit per thread Pin
Randor 8-May-08 10:24
professional Randor 8-May-08 10:24 
GeneralRe: Sockets and resource limit per thread Pin
bob169728-May-08 10:56
bob169728-May-08 10:56 
GeneralRe: Sockets and resource limit per thread Pin
bob169728-May-08 11:45
bob169728-May-08 11:45 
GeneralRe: Sockets and resource limit per thread Pin
Randor 8-May-08 12:25
professional Randor 8-May-08 12:25 
QuestionCL.exe problem with header Pin
Samjiman8-May-08 4:12
Samjiman8-May-08 4:12 
Hello.

I have been working on an XPCOM component project in Visual C++ 2008 Express and have been trying to create a GNU Make-compatible Makefile to build the component with CL. Compiling within the IDE works fine, but I have a strange header error when using the same command line options with CL in my Makefile. I have to address this before adding the Link step.

I have this in my Makefile:

COMPONENT = MoonshineLua
GECKOSDK = C:\gecko-sdk
SOURCES = MoonshineLua.cpp MoonshineLuaModule.cpp
PPDEFS = WIN32 _DEBUG _WINDOWS _USRDLL LUAINTERPRETER_EXPORTS _UNICODE UNICODE
LIBS = nspr4.lib xpcom.lib xpcomglue_s.lib lua.lib
FIREFOX = C:\Program Files\Mozilla Firefox 3 Beta 5
                
# create the XPCOM component
make:
        cl /Od /I "$(GECKOSDK)\include" /D "$(PPDEFS)" /Gm /EHsc /RTC1 /MDd /Fo"Debug\\" \
        /Fd"Debug\vc90.pdb" /W3 /nologo /c /ZI /TP $(SOURCES)


I get this output when I run Make:

cl /Od /I "C:\gecko-sdk\include" /D "WIN32 _DEBUG _WINDOWS _USRDLL LUAINTERPRETER_EXPORTS _UNICODE UNICODE" /Gm /EHsc /RTC1 /MDd /Fo"Debug\\" \
	/Fd"Debug\vc90.pdb" /W3 /nologo /c /ZI /TP MoonshineLua.cpp MoonshineLuaModule.cpp
MoonshineLuaModule.cpp
c:\gecko-sdk\include\prtypes.h(61) : fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
MoonshineLua.cpp
c:\gecko-sdk\include\prtypes.h(61) : fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
Generating Code...
make: *** [make] Error 2


I checked prtypes.h and sure enough it includes stddef.h. This is a standard C header, so what is the problem? I know it must not be a problem, since I can build the component within the IDE wrong. So how can I solve this for use in the Makefile or the command line in general?

Thanks for any help. Smile | :)
AnswerRe: CL.exe problem with header Pin
CPallini8-May-08 4:25
mveCPallini8-May-08 4:25 
AnswerRe: CL.exe problem with header [modified] Pin
Rajkumar R8-May-08 4:30
Rajkumar R8-May-08 4:30 
GeneralRe: CL.exe problem with header [modified] Pin
Samjiman8-May-08 4:56
Samjiman8-May-08 4:56 
GeneralRe: CL.exe problem with header Pin
Samjiman8-May-08 12:17
Samjiman8-May-08 12:17 
Questioncapturing close button Pin
Anandi.VC8-May-08 3:09
Anandi.VC8-May-08 3:09 
AnswerRe: capturing close button Pin
Iain Clarke, Warrior Programmer8-May-08 3:15
Iain Clarke, Warrior Programmer8-May-08 3:15 
GeneralRe: capturing close button Pin
Anandi.VC8-May-08 3:17
Anandi.VC8-May-08 3:17 
AnswerRe: capturing close button Pin
David Crow8-May-08 4:00
David Crow8-May-08 4:00 
GeneralRe: capturing close button Pin
Anandi.VC8-May-08 21:24
Anandi.VC8-May-08 21:24 
GeneralRe: capturing close button Pin
Anandi.VC8-May-08 21:43
Anandi.VC8-May-08 21:43 
QuestionException Pin
Anandi.VC8-May-08 2:51
Anandi.VC8-May-08 2:51 
AnswerRe: Exception Pin
Cedric Moonen8-May-08 2:55
Cedric Moonen8-May-08 2:55 
GeneralRe: Exception Pin
Programm3r8-May-08 2:58
Programm3r8-May-08 2:58 
AnswerRe: Exception Pin
CPallini8-May-08 2:57
mveCPallini8-May-08 2:57 
AnswerRe: Exception [modified] Pin
Rajkumar R8-May-08 4:07
Rajkumar R8-May-08 4:07 
GeneralRe: Exception Pin
Stephen Hewitt8-May-08 17:04
Stephen Hewitt8-May-08 17:04 
GeneralRe: Exception Pin
Rajkumar R8-May-08 18:44
Rajkumar R8-May-08 18:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.