Unable to Compile New Update

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

Moderator: MacroQuest Developers

wraetthu
Custom Builder
Custom Builder
Posts: 2
Joined: Fri Feb 19, 2016 5:51 pm

Unable to Compile New Update

Post by wraetthu » Fri Feb 19, 2016 6:31 pm

Ok, I'm new to MQ2. I was able to compile and use the version before 20160217 using VS2012.

This time, after I run the Auth, open the .dsw file and try to do the migration, I get a migration report that :

MQ2Main\MQ2Main.dsp: Unable to convert project. Please make sure this is a valid Visual C++ 6.0 project.
Error MQ2Main\MQ2Main.dsp: Project upgrade failed.

and it won't migrate or compile.

When I attempted to use the .sln MacroQuest2-VS2012, I successfully migrated, but no matter how many times I build, I got following output:

1>------ Build started: Project: MQ2Bzsrch, Configuration: Release Win32 ------
1> Creating library .\../Release\MQ2Bzsrch.lib and object .\../Release\MQ2Bzsrch.exp
1>MQ2Bzsrch.obj : error LNK2019: unresolved external symbol "public: __thiscall NetStream::NetStream(unsigned char const *,unsigned int)" (??0NetStream@@QAE@PBEI@Z) referenced in function "public: void __thiscall BzSrchHook::BzDetour(struct bzrData *)" (?BzDetour@BzSrchHook@@QAEXPAUbzrData@@@Z)
1>MQ2Bzsrch.obj : error LNK2019: unresolved external symbol "public: __thiscall NetStream::~NetStream(void)" (??1NetStream@@QAE@XZ) referenced in function "public: void __thiscall BzSrchHook::BzDetour(struct bzrData *)" (?BzDetour@BzSrchHook@@QAEXPAUbzrData@@@Z)
1>MQ2Bzsrch.obj : error LNK2019: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall NetStream::readText(void)" (?readText@NetStream@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) referenced in function "public: void __thiscall BzSrchHook::BzDetour(struct bzrData *)" (?BzDetour@BzSrchHook@@QAEXPAUbzrData@@@Z)
1>MQ2Bzsrch.obj : error LNK2019: unresolved external symbol "public: unsigned short __thiscall NetStream::readUInt16(void)" (?readUInt16@NetStream@@QAEGXZ) referenced in function "public: void __thiscall BzSrchHook::BzDetour(struct bzrData *)" (?BzDetour@BzSrchHook@@QAEXPAUbzrData@@@Z)
1>MQ2Bzsrch.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall NetStream::readUInt32(void)" (?readUInt32@NetStream@@QAEIXZ) referenced in function "public: void __thiscall BzSrchHook::BzDetour(struct bzrData *)" (?BzDetour@BzSrchHook@@QAEXPAUbzrData@@@Z)
1>.\../Release\MQ2Bzsrch.dll : fatal error LNK1120: 5 unresolved externals
========== Build: 0 succeeded, 1 failed, 12 up-to-date, 0 skipped ==========

Any Suggestions would be greatly appreciated

dewey2461
Contributing Member
Contributing Member
Posts: 1759
Joined: Sun Apr 17, 2005 1:53 am

Re: Unable to Compile New Update

Post by dewey2461 » Sat Feb 20, 2016 6:40 am

This sounds like a problem with the project.

If you have a copy of the last project file you could just copy the .h and .c files into them and compile.

User avatar
htw
a grimling bloodguard
a grimling bloodguard
Posts: 512
Joined: Wed Feb 18, 2004 8:30 pm
Location: Albuquerque, NM USA
Contact:

Re: Unable to Compile New Update

Post by htw » Mon Feb 22, 2016 12:43 pm

Don't open the dsw/dsp files with anything, they aren't even needed nowadays. Open the solution with visual studio (.sln), if manipulating projects, use the .vcxproj file.

As far as your externs, notice they complain about netstream. In Solution Explorer window in VS, expand the mq2bzsrch project, right-click on Source Files, and Add, Existing Item, and browse and select netstream.cpp

For the project, headers: netstream.h source: mq2bzsrch.cpp and netstream.cpp (just telling you what should show once you are done)