Page 1 of 1

Compiling Error

Posted: Sat Apr 12, 2003 7:21 am
by A Moss Snake
I've CVSed Macroquest and then tried to compile using VC++ .Net and got this:

MacroQuest error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup


Any ideas?

Posted: Sat Apr 12, 2003 4:00 pm
by dont_know_at_all
You have changed some options or you have a bad VS installation.

Posted: Sat Apr 12, 2003 7:50 pm
by vzmule
I was getting the same error using the files in the cvs. Use your old source files, but just get the eqgame.ini, MQ.h and EQLIB.cpp from the cvs and re-compile. It worked for me.

Posted: Sun Apr 13, 2003 3:19 am
by dont_know_at_all
I just did a clean build from CVS -- no problem with VC7.0

1. Start with a new directory and pull down the CVS code.
2. Compile detours and move the library to macroquest/detours/lib
3. Open the solution file.
4. Press F7

Posted: Mon Apr 14, 2003 4:27 am
by grimjack
I had the same thing when I first compiled. The project file for MQ that is in CVS is set up to tell the linkner this is a console app. This is wrong and to change this right click the macroquest heading when you have the project open and select properties. Select the linker tab and the system sub tab. Change the subsystem property from console to Windows.

Thanks
Grimjack.

Posted: Tue Apr 15, 2003 11:52 am
by woodcraft
downloaded latest code and errors on the EQLib compile. Just got the files from the CVS area. Was able to compile on previos verions.

Posted: Tue Apr 15, 2003 6:34 pm
by boldor
Looking at the CSV I see that EQLib.h was changed at the same time as EQLib.cpp to account for Memcheck3 wouldnt you need to also download the EQLib.h as well as files previously mentioned:

EQLIb.cpp
MQ.h and
eqgame.ini

So thats a total of 4 items needed from CVS, correct?

TIA

Posted: Tue Apr 15, 2003 7:37 pm
by dont_know_at_all
Why not get everything?

You're asking for trouble.

Posted: Fri Apr 18, 2003 3:17 am
by morannon
I had the same thing when I first compiled. The project file for MQ that is in CVS is set up to tell the linkner this is a console app. This is wrong and to change this right click the macroquest heading when you have the project open and select properties. Select the linker tab and the system sub tab. Change the subsystem property from console to Windows.

Thanks
Grimjack.
Grimjack - many thanks - I had this exact problem with a fresh CVS download. All fixed now !