Getting a compile error on MQ2Main in EQClasses.cpp

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

Moderator: MacroQuest Developers

whit123
decaying skeleton
decaying skeleton
Posts: 3
Joined: Sat Sep 16, 2006 3:27 am

Post by whit123 » Sat Sep 16, 2006 5:29 am

Hello. After going a few rounds of tabbing through my compiling project, my folders, and the wiki/forums, I've managed to solve a plethora of my compiling errors, but now I'm hung up on this one: EQClasses::CStmlWnd::AppendSTML is linked to a naked function, as stated above. This is (I'm guessing) this my last problem, as it's the last string in the compilation of MQ2Main. I've trolled through the suspect file, but haven't found a viable solution. The wiki suggests that I've set-up incorrect parameters for my enviorment, but I assure you, I've installed the MQ2 source, MS Visual C++ 2005 Express, and SDK files correctly. I've parsed lines, and tweaked in-program variables as mentioned by the wiki, as well as various posters. I actually have used MQ2 a few months back, after a friend compiled it for me, but I decided to do it myself for this version, after returning to EQ. If anyone could point me in the right direction, I'd be grateful. Or, you make me feel stupid for posting this so I become more determined to compile on the lonesome, that works too. Thanks for reading -- l0k1.

whit123
decaying skeleton
decaying skeleton
Posts: 3
Joined: Sat Sep 16, 2006 3:27 am

Successful compilation.

Post by whit123 » Sat Sep 16, 2006 11:40 pm

I have successfully compiled my project, upon various trial and error, and (re)reading of the information available. Although compiling Macroquest is not difficult, certain hang-ups seem to be common, be it from simple mistakes, a lack of interest, or just plain bad luck. Regardless, I'm offering an e-mail address, which I check daily, to help anyone who has had these common compiling issues. I used the free method, and will be able to step you through any error you have, or at least do my best -- It's cwhitmire123@hotmail.com.

Also, a donation has been sent to the developers, as more will follow. Thank you. -- l0k1

surrenderdorothy
decaying skeleton
decaying skeleton
Posts: 7
Joined: Fri Nov 17, 2006 11:42 pm

Error

Post by surrenderdorothy » Sat Nov 18, 2006 5:46 pm

Please advise. Im using 2005 express, getting htis error:
EQClasses.cpp
.\EQClasses.cpp(136) : error C3068: 'EQClasses::CStmlWnd::AppendSTML' : a 'naked' function cannot contain objects that would require unwinding if a C++ exception occurred
Build log was saved at "file://c:\Documents and Settings\Willie\Desktop\MQ2a\MQ2Main\Intermediate\BuildLog.htm"
MQ2Main - 1 error(s), 0 warning(s)
------ Build started: Project: MQ2Bzsrch, Configuration: Release Win32 ------
Linking...
LINK : fatal error LNK1181: cannot open input file '..\Release\MQ2Main.lib'
Build log was saved at "file://c:\Documents and Settings\Willie\Desktop\MQ2a\MQ2Bzsrch\Intermediate\BuildLog.htm"
MQ2Bzsrch - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ===

ascii38
a grimling bloodguard
a grimling bloodguard
Posts: 506
Joined: Sat Jul 17, 2004 8:06 pm

Post by ascii38 » Sat Nov 18, 2006 5:50 pm

Open the .sln file, not the .dsw file.

surrenderdorothy
decaying skeleton
decaying skeleton
Posts: 7
Joined: Fri Nov 17, 2006 11:42 pm

Ok

Post by surrenderdorothy » Sat Nov 18, 2006 6:01 pm

Done this is the error

------ Build started: Project: MQ2Main, Configuration: Release Win32 ------
Compiling...
EQClasses.cpp
.\EQClasses.cpp(136) : error C3068: 'EQClasses::CStmlWnd::AppendSTML' : a 'naked' function cannot contain objects that would require unwinding if a C++ exception occurred
Build log was saved at "file://c:\Documents and Settings\Willie\Desktop\MQ2a\MQ2Main\Intermediate\BuildLog.htm"
MQ2Main - 1 error(s), 0 warning(s)
------ Build started: Project: MQ2Bzsrch, Configuration: Release Win32 ------
Linking...
LINK : fatal error LNK1181: cannot open input file '..\Release\MQ2Main.lib'
Build log was saved at "file://c:\Documents and Settings\Willie\Desktop\MQ2a\MQ2Bzsrch\Intermediate\BuildLog.htm"
MQ2Bzsrch - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

ascii38
a grimling bloodguard
a grimling bloodguard
Posts: 506
Joined: Sat Jul 17, 2004 8:06 pm

Re: Ok

Post by ascii38 » Sat Nov 18, 2006 6:18 pm

surrenderdorothy wrote:Done this is the error
Delete everything. Extract a fresh copy from the ZIP. Open the .sln file, not the .dsw (better yet, delete the .dsw before you open anything). The distributed .sln was probably overwritten when the .dsw was automatically upgraded.

surrenderdorothy
decaying skeleton
decaying skeleton
Posts: 7
Joined: Fri Nov 17, 2006 11:42 pm

Woo hoo!!

Post by surrenderdorothy » Sat Nov 18, 2006 6:55 pm

I think i see the light at the end of the tunel.

crosoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
"/OUT:..\Release/MQ2Chat.dll" /INCREMENTAL:NO "/LIBPATH:..\Detours\lib" "/LIBPATH:..\Release" /DLL /MANIFEST "/MANIFESTFILE:.\Intermediate\MQ2Chat.dll.intermediate.manifest" /DEBUG "/PDB:c:\Documents and Settings\Willie\Desktop\MQ2-20061107b\Release\MQ2Chat.pdb" /MAP /MAPINFO:EXPORTS /SUBSYSTEM:WINDOWS /OPT:NOREF /OPT:NOICF "/BASE:0x04000000" "/IMPLIB:..\Release/MQ2Chat.lib" /MACHINE:X86 /OPT:NOICF wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib "..\release\mq2main.lib"
".\intermediate\MQ2Chat.obj"
Creating library ..\Release/MQ2Chat.lib and object ..\Release/MQ2Chat.exp
Embedding manifest...
Build log was saved at "file://c:\Documents and Settings\Willie\Desktop\MQ2-20061107b\MQ2Chat\Intermediate\BuildLog.htm"
MQ2Chat - 0 error(s), 0 warning(s)
========== Build: 2 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Did I do it right?

Whats the output file called?

surrenderdorothy
decaying skeleton
decaying skeleton
Posts: 7
Joined: Fri Nov 17, 2006 11:42 pm

Up and RUNING just 2 more questions I hope!

Post by surrenderdorothy » Sat Nov 18, 2006 8:33 pm

Ok.
Thansk for all your help
Is a separate box supposed to pop up so I can use the mq2 commands? I am not getting one though I know mq is loaded as the guards names are in red.

Here is the important thing. I just need to know how to alter my run speed and how can I use "EQDQD" and "EQKFA"

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

Post by ieatacid » Sat Nov 18, 2006 8:38 pm

You can't. I was going to ban you for asking.

surrenderdorothy
decaying skeleton
decaying skeleton
Posts: 7
Joined: Fri Nov 17, 2006 11:42 pm

OK

Post by surrenderdorothy » Sat Nov 18, 2006 8:49 pm

I am sorry I didnt mean to upset you.

well, is a window supposed to pop up when I enter the game with macroquest? I dont seem to be able to make it come up

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

Post by ieatacid » Sat Nov 18, 2006 8:53 pm

/plugin mq2chatwnd

That is, if you compiled that plugin.

Lweese
decaying skeleton
decaying skeleton
Posts: 1
Joined: Wed Nov 29, 2006 9:52 am

Post by Lweese » Thu Nov 30, 2006 1:08 am

Alrighty folks, I guess I'm ready to be Flamed...lol. First off..NO..I am not a brilliant tech, so please forgive me if this is all boringly mundane to you. After seaching, reading, debating, RE-reading and more searching I've come to the conclusion that COMPILING MQ2 is not your average cup of tea per say. I have tried numerous times working through the obvious mistakes as I went along, but now I am perplexed. According to the program I have finally managed to compile the MQ2 with success using the directions from the Wiki. (FYI - using the Visual C++ 2005 Express version) But, I am only seeing one .dll file, the MQ2main.dll. According to what I have read* though there should be many, many more then that. I just finished reading this thread and about kicked myself for the obvious..."If you compiled that file...???" Doh!!!=\ Why didnt I think of that??? But, by paying strict attention and going exactly by what the Wiki says all I had to compile was the MQ2main file. I am going to assume though that I will need to compile all files...and hopefully get it to work. I was experiencing the same problems as mentioned above about there not being a mq2chatwnd in game. (Before you flame to hard..Yes, I tried using the in-game load and unload commands. When i unloaded it went straight to the normal chat box...which I really am trying to avoid for obvious reasons, but it would not load with /plugin mq2chatwnd.) Anyways..thats the extent of my ***Noob Beotching, Complaining, and Question Asking*** for the time being :roll: . Hopefully compiling all files will fix the problems. Also, FYI...Tried to donate today from the download website, but the links for individuals as well as general donation were not working. Sorry.

* One link I found directed me to a page that was a walk through for compiling and using MQ2-->
http://www.macroquest2.com/includes/wassup/manual.php <-- The author suggested the following:
After compiling Macroquest2:
Create a new folder anywhere, such as c:\MQ2
Create four new folders within this folder, named configs, ini, logs, and macros
Copy the Macroquest2.exe, the compiled dll's, the ini files, and the .txt files from the Release folder to c:\MQ2:

Is this merely for back up purposes or is the file suppose to be linked tothe program??? They did not elaborate on what to do with this file after making it.

Thanks in advance for you help.