Page 1 of 1

Compile error

Posted: Mon May 09, 2005 4:59 pm
by Soul Hunter
While attempting to compile MQ2an error occured with VC++ Express 2005 Beta

c:\program files\mq2\MQ2Main/MQ2Main.h(31) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Build log was saved at "file://c:\Program Files\MQ2\MQ2ChatWnd\Intermediate\BuildLog.htm"
MQ2ChatWnd - 1 error(s), 0 warning(s)

apparently it's looking for the 'windows.h' file and can't seem to find it, this error occurs with all 13 of the project files

Here's the Wiki attempt for the problem, wasn't quite sure how to solve it
http://www.macroquest2.com/wiki/index.p ... :Compiling

The edit is under Compiling using VC.net

Posted: Mon May 09, 2005 5:28 pm
by dont_know_at_all
Rescan the wiki...

Posted: Mon May 09, 2005 5:35 pm
by Soul Hunter
Re-read it and still can't info regarding windows.h other than the edit made by myself which was a guess at the solution

"Make sure the file created by MQ2.auth.exe is in MQ2Main then make a duplicate of the folder and rename it windows.h" -my edit

Posted: Mon May 09, 2005 5:56 pm
by dont_know_at_all

Posted: Tue May 10, 2005 5:26 pm
by TheUnholy
Don't add stuff to the Wiki if it's just a guess and you're not sure. The idea is to pass along useful information, not guesses and wrong information.

Posted: Tue May 10, 2005 7:27 pm
by Ccomp5950
here's a hint...

You don't use VC++ Express Beta.

The whole reason for downloading it was for one program, who's name starts with an "N"

Oh and it is in the wiki already.

Posted: Fri May 13, 2005 7:26 pm
by Soul Hunter
Well ok, I installed the SDK that I was told to and I now have the windows.h file (in the DK directory). I go through and double click on MacroQuest2.sln, that loads up Visual C++ 2005 Express Edition Beta, I then go to build>config manager and select all of the files, then I select 'Build Solution'. It gives me the same error of not being able to find windows.h even though I have it in the PSDK file. I tried looking for an include command in the Visual C++ program but couldn't find one. I have everything else installed (Microsoft Visual C++ Toolkit 2003, Visual C++ 2005 Express Beta , .NET Framework v2 and the PSDK) and I set all of the enviornments required as stated in the wiki compiling portion.

I realize that the reason for installing the VC++ Express Beta was for NMAKE.EXE, but no where can I find what to do with this file and when I open MacroQuest.sln to compile, it automatically brings up VC++ Express.

Posted: Tue May 17, 2005 10:14 am
by Ccomp5950
Ok....So you know that using VC Beta 2k5 = wrong answer.

But your best attempt is to click a file that opens VC Beta 2k5

Knowing that using VC Beta 2k5 = wrong answer you should have stopped the second it loaded...going any farther would do you no good.

last hint: Start---> Run ---> Type: Command ---> Navigate to the directory MQ2 is unzipped in and try and run nmake.

(It's gonna tell you that the files are up to date...try running nmake /?)

==================

So lets recap:

www.google.com = friend
Nmake = right answer
anything that opens VC Beta = wrong answer (in fact once you move Nmake over just uninstall that bitch)

If you don't know your way around Dos (That black screen thing with the C:\bleh bleh\) then you need to learn it. The "Free Route" works DOS style.

(I didn't even read your first paragraph, second I saw VC beta loaded I knew you went wrong way)

Everyone here had to learn at some point, no one held their hands through the proccess so don't expect others to just tell you how to do it. Without posting anything and only using the wiki and google I figured out how to do it (took me 2 days though).

I've probably helped you more then anyone here would find appropriate anyways, so this is my last post too you.

Posted: Tue May 17, 2005 1:46 pm
by papanuget
jesus


just compile it in VC 2003. problem solved

Posted: Tue May 17, 2005 5:27 pm
by MILFhunter
Ok - stepping out on a limb here - Have you attempted to change your file association yet? ... so that the default 'open with' is not the Beta but the normal VC++ ....

Just a thought...

Do with it as you see fit...

Posted: Tue May 17, 2005 6:05 pm
by Ccomp5950
He's going the "Free Route". It uses Command line parser, not a windows based parser.

Changing file associations wouldn't fix that.

Posted: Tue Jun 21, 2005 9:31 pm
by Fabolous1
I'm getting this error and I can't get around it!!!... My bro was gonna try to get it to work on my comp then I gave him my MQ2Auth0.h and he tried to compile it and he said he had over 1000 errors and he couldn't figure our what was wrong... Could someone please help me with this problem, or where to get VC 2003, a working compiling or something!

Or If I give someone my MQ2Auth0.h, do you think you could give me the compiled version?

Please, Thanks, Fab

Posted: Tue Jun 21, 2005 10:38 pm
by ieatacid
Fabolous1 wrote:Blah blah blah.... where to get VC 2003... blah blah
http://msdn.microsoft.com/howtobuy/vstu ... fault.aspx

Posted: Wed Jun 22, 2005 12:00 am
by joebob11
look on wiki if u follow those instuctions doin it the free way it will work.. trust me I know.. then it got old so I got a real compiler lol =)

Posted: Wed Jun 22, 2005 2:10 pm
by outlander
Ok going to try to post something useful here.

I use NMake from VC++ 2003 Beta

I'm a LAZY bastard and like to type as few commands as I can so I put this into BAT file that runs my build for me. Don't know if it will help anyone else or not.

call "c:\program files\microsoft visual c++ toolkit 2003\vcvars32.bat"
call "c:\program files\microsoft platform sdk for windows xp sp2\setenv.bat" /RETAIL
set compiler=7
nmake clean
nmake