TreeInfo : code won't compile

Posted by Phillosophy on Fri 01 Jul 2005 01:41 AM — 6 posts, 26,864 views.

#0
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...
USA #1
What is TreeInfo? Why is this post in the forum help section?

Your problem is that you haven't defined a WinMain function.
Canada #2
Treeinfo is one of the programs that Gammon has under the download section, I beleive.
USA #3
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.
USA #4
Indeed that would be the problem. Even so, should this really be under forum - how to use it? :P
USA #5
No, not really... :) If it were up to me *winkwink* I'd move it into the general programming section.