[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  Forum
. -> [Folder]  Problems
. . -> [Subject]  TreeInfo : code won't compile
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

TreeInfo : code won't compile

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


Posted by Phillosophy   (1 post)  [Biography] 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...
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] 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
[Go to top] top

Posted by Greven   Canada  (835 posts)  [Biography] 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
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] 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
[Go to top] top

Posted by Nick Cash   USA  (626 posts)  [Biography] 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
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] 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
[Go to top] 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.


5,983 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]