I can''t Identify what is causing these errors! I know it involves one of my ''links'' but I don''t know how it is affecting my .exe. Please help!
#1 LINK : warning LNK4001: no object files specified; libraries used
#2 LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup
#3 fatal error LNK1120: 1 unresolved externals
It''s kind of hard to help without more info... try posting you code if it''s small or maybe the #includes and the function referrred on your second error WinMainCRTStartup,
the compiler you''re using, what you are trying to do...
the compiler you''re using, what you are trying to do...
sorry, HTML problem.
This is what I included:
windows.h
windowsx.h
mmsystem.h
iostream.h
conio.h
stdlib.h
malloc.h
memory.h
string.h
stdarg.h
stdio.h
math.h
io.h
fcntl.h
ddraw.h
This is what I included:
windows.h
windowsx.h
mmsystem.h
iostream.h
conio.h
stdlib.h
malloc.h
memory.h
string.h
stdarg.h
stdio.h
math.h
io.h
fcntl.h
ddraw.h
Ok, what is probably happening is that you aren''t including the directx libraries you need to your project. I don''t know wich compiler you''re using, but for instance, in VC++ you should be able to define something like (path)ddraw.lib on the Project->Settings->Link->Object/library modules
without this, your compiler has a prototype of the functions in ddraw.h but hasn''t got their implementation.
without this, your compiler has a prototype of the functions in ddraw.h but hasn''t got their implementation.
WinMainCRTStartup is the windows stub entry function. Are you compiling a windows mode or console mode program? Actually it doesn''t sound like the C runtime library is being linked. Is LIBC.lib in your link file list?
What? Why are you answering a question appointed to me? And by the way, psychoprog apparently has the same settings as I do. I have VC++ and didn''t include LIBC.lib.
Ok, edit your project file in a text editor. There should be a line with #add link32. Is /subsystem:windows on that line?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement