I've got 14 unresolved externals.

Problems building or running the engine, queries about how to use features etc.
User avatar
cowsarenotevil
Gnoblar
Posts: 5
Joined: Sat Oct 01, 2005 4:49 am

I've got 14 unresolved externals.

Post by cowsarenotevil »

I believe my linker settings are correct, and the only things a forum search suggests are an improperly installed STLport (I'm on VC++ 7.0), or a version of OGRE for the wrong compiler. I did confirm that I'm actually using Visual Studio .NET 2002 and that this is the version of OGRE I'm using, but I suspect I've done something wrong with STLport. I ran the installer here. Once I got the unresolved externals, I added /LIBPATH:"C:\STLport-4.6.2\lib" and stlport_vc7_stldebug.lib even though the SettingUpAnApplication on the wiki doesn't say to (I started guessing when I realized it wasn't working) , which are visible in my build log, but without them the output is identical. My build log is here. Hopefully it's just something stupid that I'm overlooking.

Thanks.
User avatar
discipline
OGRE Community Helper
OGRE Community Helper
Posts: 766
Joined: Mon May 16, 2005 12:09 am

Post by discipline »

http://www.ogre3d.org/wiki/index.php/BuildFAQ

This suggests your libraries are mismatched. Basically you are compiling with different settings (ie /MD, /MT, /MDd...) than the libraries you are linking against. Since you are using ogremain_d.dll and you are using /MDd, are you *sure* you downloaded and are linking against the 7.0 sdk? What is the file name?

Your linker says it can't find the symbols, but apparently is opening the files that the symbols are supposed to be in. That is suspicious.

Why does your build log include this line?

Code: Select all

VS80COMNTOOLS=C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\
That is also suspicious. Studio 8 == 2005
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179

Post by jacmoe »

I agree.
It looks like you should reinstall VC7.0 - after making sure that any vc8 stuff has been removed. :wink:
User avatar
cowsarenotevil
Gnoblar
Posts: 5
Joined: Sat Oct 01, 2005 4:49 am

Post by cowsarenotevil »

The filename is OgreSDKSetup1.0.5_VC70.exe, but I will reinstall visual studio. Last time I installed 7 was about a month ago, but I may have had the express edition betas of 2005 on this computer at one point. I'll see if that's the problem.
User avatar
cowsarenotevil
Gnoblar
Posts: 5
Joined: Sat Oct 01, 2005 4:49 am

Post by cowsarenotevil »

Actually, it turned out that I still had the 2005 betas installed, but I don't see why they'd cause a conflict. I've removed them and still get the same errors. Do you really think installing Visual Studio will help? I was kind of hoping that would be a last resort. I still have doubts that I correctly installed/am linking to STLport.
User avatar
discipline
OGRE Community Helper
OGRE Community Helper
Posts: 766
Joined: Mon May 16, 2005 12:09 am

Post by discipline »

Your errors say it can't find ogre symbols. If you had problems with STL then it should say it can't find std symbols (ie std::string). You could try compiling ogre from source. The directions are in the wiki.
User avatar
cowsarenotevil
Gnoblar
Posts: 5
Joined: Sat Oct 01, 2005 4:49 am

Post by cowsarenotevil »

discipline wrote:Your errors say it can't find ogre symbols. If you had problems with STL then it should say it can't find std symbols (ie std::string). You could try compiling ogre from source. The directions are in the wiki.
Of course, this is true. It looks like I'll have to reinstall VC++, and, failing that, compile ogre from source.

I appreciate everyone's suggestions.