Need some help with compiling

Need help running MacroQuest 1? Too bad! Use MQ2.

Moderator: MacroQuest Developers

Aniat
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sat Oct 18, 2003 2:13 am

Need some help with compiling

Post by Aniat » Sat Oct 18, 2003 2:42 am

I am running on Win98, and have VC++ 6.0 installed. I've tried searching for some of these errors, but either I couldn't find a solution or I didn't understand what was being said. I've tried downloading both the .zip and CVS files. Also, I know extremely little about C/C++, so you'll need to dumb it down for me :)

When I go to build macroquest.exe, I get this error.

Code: Select all

Compiling resources...
C:\macroquest\eqlib\EQLib.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.
Error executing rc.exe.

macroquest.exe - 1 error(s), 0 warning(s)
After doing a search on google for "error RC1015", I found this,

Code: Select all

Oddly enough, VC++ adds afxres.h to resource files even when you aren't using an MFC project, and yet the file may only be installed if you install MFC. This perticular file isn't actually required, so to fix the error you can edit the .rc file in notepad and replace both occurances of "afxres.h" with "winres.h" (note that there should be two of them, and you need to change both). 
I edited the EQLib.rc file and changed both instances of 'afxres.h' to winres.h'. After that, I went back to build and got this,

Code: Select all

Compiling...
EQLib_Commands.cpp
C:\macroquest\eqlib\EQLib_Commands.cpp(28) : fatal error C1083: Cannot open include file: 'direct.h': No such file or directory
EQLib_Hooks.cpp
C:\macroquest\eqlib\EQLib_Hooks.cpp(26) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
EQLib_Interp.cpp
C:\macroquest\eqlib\EQLib_Interp.cpp(26) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
EQLib_MacroCommands.cpp
C:\macroquest\eqlib\EQLib_MacroCommands.cpp(26) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
EQLib_MacroParser.cpp
C:\macroquest\eqlib\EQLib_MacroParser.cpp(26) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
EQLib_Main.cpp
C:\macroquest\eqlib\EQLib_Main.cpp(26) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
EQLib_MemChecks.cpp
C:\macroquest\eqlib\EQLib_MemChecks.cpp(26) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
EQLib_Mouse.cpp
C:\macroquest\eqlib\EQLib_Mouse.cpp(26) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
EQLib_TelnetServer.cpp
C:\macroquest\eqlib\EQLib_TelnetServer.cpp(26) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
EQLib_UserVars.cpp
C:\macroquest\eqlib\EQLib_UserVars.cpp(26) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
EQLib_Utilities.cpp
C:\macroquest\eqlib\EQLib_Utilities.cpp(26) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
stdafx.cpp
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windows.h(159) : fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory
Generating Code...
Error executing cl.exe.

macroquest.exe - 12 error(s), 0 warning(s)
After this, I start to really get stuck. I've tried doing a search for error C1083, but I haven't been able to make much sense of it. Please help me finding out what I'm doing wrong or tell me if I missed a post about this earlier. Thank you.

User avatar
Kint
a hill giant
a hill giant
Posts: 208
Joined: Thu Mar 13, 2003 3:36 am

Post by Kint » Sat Oct 18, 2003 5:31 am

hmm, try pasting the line that causes the error please, like for "EQLib_MacroParser.cpp(26)" goto EQLib_MacroParser.cpp and then goto line 26 and paste the code. I think it's probably that your compiler doesn't know to automatically look in the include directory. post the errors and I'll try and help more.

Aniat
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sat Oct 18, 2003 2:13 am

Post by Aniat » Sun Oct 19, 2003 1:40 am

Ok, I feel dumb now. I was able to get the compile and now have macroquest working. I reinstalled VC++ and previously I only installed VC++ Developer Studio, and Build Tools, but I failed to install the Runtime Libraries. This time I installed everything, and that's why it couldn't find the files. Thank you for your reply though.