Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ Forum ➜ Problems ➜ TreeInfo : code won't compile

TreeInfo : code won't compile

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Phillosophy   (1 post)  Bio
Date Fri 01 Jul 2005 01:41 AM (UTC)
Message
I'm using Visual C++ 6 to recompile the code and turn up with the linking error:

Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/TreeInfo.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

TreeInfo.exe - 2 error(s), 0 warning(s)

Any idea how to go about modifying this and getting it to build and compile correctly? thanks in advance...
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Fri 01 Jul 2005 01:48 AM (UTC)
Message
What is TreeInfo? Why is this post in the forum help section?

Your problem is that you haven't defined a WinMain function.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #2 on Fri 01 Jul 2005 08:16 PM (UTC)
Message
Treeinfo is one of the programs that Gammon has under the download section, I beleive.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #3 on Fri 01 Jul 2005 08:20 PM (UTC)
Message
Ah, thanks Greven.

Looking at the source code, it is a console application. If your problem is that you don't have a WinMain, that means that you created your project as a Win32 GUI application, and not a Win32 console application.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #4 on Fri 01 Jul 2005 08:50 PM (UTC)
Message
Indeed that would be the problem. Even so, should this really be under forum - how to use it? :P

~Nick Cash
http://www.nick-cash.com
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #5 on Fri 01 Jul 2005 08:51 PM (UTC)
Message
No, not really... :) If it were up to me *winkwink* I'd move it into the general programming section.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


19,507 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.