• Advertisement

Archived

This topic is now archived and is closed to further replies.

ERROR!

This topic is 6549 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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...

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Ok, edit your project file in a text editor. There should be a line with #add link32. Is /subsystem:windows on that line?

Share this post


Link to post
Share on other sites

  • Advertisement