Jump to content

  • Log In with Google      Sign In   
  • Create Account


ERROR!


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
9 replies to this topic

#1 Pseudo_Code   Members   -  Reputation: 122

Like
Likes
Like

Posted 12 February 2000 - 04:48 AM

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

Sponsor:

#2 Pseudo_Code   Members   -  Reputation: 122

Like
Likes
Like

Posted 13 February 2000 - 05:48 AM

Somebody please help me out here! I NEED HELP!!!!

#3 alexmoura   GDNet+   -  Reputation: 450

Like
Likes
Like

Posted 13 February 2000 - 07:33 AM

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...

#4 Pseudo_Code   Members   -  Reputation: 122

Like
Likes
Like

Posted 13 February 2000 - 08:23 AM

I added, to my project, ddraw.lib and included the following:


















#5 Pseudo_Code   Members   -  Reputation: 122

Like
Likes
Like

Posted 13 February 2000 - 08:25 AM

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

#6 alexmoura   GDNet+   -  Reputation: 450

Like
Likes
Like

Posted 13 February 2000 - 12:41 PM

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.

#7 SiCrane   Moderators   -  Reputation: 9417

Like
Likes
Like

Posted 13 February 2000 - 05:37 PM

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?

#8 PsYcHoPrOg   Members   -  Reputation: 115

Like
Likes
Like

Posted 14 February 2000 - 01:35 PM

No, LIBC.lib is not included in my project. And I am using VC++ as my compiler.

#9 Pseudo_Code   Members   -  Reputation: 122

Like
Likes
Like

Posted 14 February 2000 - 01:40 PM

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.

#10 SiCrane   Moderators   -  Reputation: 9417

Like
Likes
Like

Posted 14 February 2000 - 06:21 PM

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




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS