Compile error

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

User avatar
Soul Hunter
orc pawn
orc pawn
Posts: 13
Joined: Wed May 04, 2005 8:59 am

Compile error

Post by Soul Hunter » Mon May 09, 2005 4:59 pm

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
Last edited by Soul Hunter on Mon May 09, 2005 5:30 pm, edited 1 time in total.

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Mon May 09, 2005 5:28 pm

Rescan the wiki...

User avatar
Soul Hunter
orc pawn
orc pawn
Posts: 13
Joined: Wed May 04, 2005 8:59 am

Post by Soul Hunter » Mon May 09, 2005 5:35 pm

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

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Mon May 09, 2005 5:56 pm


User avatar
TheUnholy
a hill giant
a hill giant
Posts: 269
Joined: Wed Mar 03, 2004 11:59 pm

Post by TheUnholy » Tue May 10, 2005 5:26 pm

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.

Ccomp5950
a ghoul
a ghoul
Posts: 94
Joined: Mon Apr 18, 2005 8:40 am

Post by Ccomp5950 » Tue May 10, 2005 7:27 pm

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.

User avatar
Soul Hunter
orc pawn
orc pawn
Posts: 13
Joined: Wed May 04, 2005 8:59 am

Post by Soul Hunter » Fri May 13, 2005 7:26 pm

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.

Ccomp5950
a ghoul
a ghoul
Posts: 94
Joined: Mon Apr 18, 2005 8:40 am

Post by Ccomp5950 » Tue May 17, 2005 10:14 am

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.
Last edited by Ccomp5950 on Tue May 17, 2005 6:05 pm, edited 1 time in total.

papanuget
a lesser mummy
a lesser mummy
Posts: 33
Joined: Sat Mar 05, 2005 1:22 pm

Post by papanuget » Tue May 17, 2005 1:46 pm

jesus


just compile it in VC 2003. problem solved

MILFhunter
decaying skeleton
decaying skeleton
Posts: 8
Joined: Fri May 13, 2005 10:21 am
Location: Mobs Id Like to Farm...

Post by MILFhunter » Tue May 17, 2005 5:27 pm

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...
MILFhunter
(MoB's Id Like to Farm hunter - not the other one - jeez)

Ccomp5950
a ghoul
a ghoul
Posts: 94
Joined: Mon Apr 18, 2005 8:40 am

Post by Ccomp5950 » Tue May 17, 2005 6:05 pm

He's going the "Free Route". It uses Command line parser, not a windows based parser.

Changing file associations wouldn't fix that.

Fabolous1
a ghoul
a ghoul
Posts: 134
Joined: Sun Jun 27, 2004 12:44 am

Post by Fabolous1 » Tue Jun 21, 2005 9:31 pm

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
[url=http://www.macroquest2.com/phpBB2/viewtopic.php?t=16277]CastingBuilderMulti.mac (2.2)[/url]
[url=http://www.macroquest2.com/phpBB2/viewtopic.php?p=143350#143350]Generalstuff.mac (6.0)[/url]

User avatar
ieatacid
Developer
Developer
Posts: 2727
Joined: Wed Sep 03, 2003 7:44 pm

Post by ieatacid » Tue Jun 21, 2005 10:38 pm

Fabolous1 wrote:Blah blah blah.... where to get VC 2003... blah blah
http://msdn.microsoft.com/howtobuy/vstu ... fault.aspx

joebob11
orc pawn
orc pawn
Posts: 19
Joined: Wed Apr 13, 2005 3:20 pm

Post by joebob11 » Wed Jun 22, 2005 12:00 am

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 =)

outlander
a hill giant
a hill giant
Posts: 232
Joined: Mon Feb 14, 2005 11:40 am

Post by outlander » Wed Jun 22, 2005 2:10 pm

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