Jump to content
  • Advertisement
Sign in to follow this  

Linker error with angelscript.lib

This topic is 3038 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all

I came across a strange error since I am using the angelscript lib:

The statement "std::string a = Utility::intToString(5);" (im just testing here)

defined here (header):
// The Utility class header file
#include <sstream>
class Utility
virtual ~Utility(void);
static std::string intToString(int i);


#include "Utility.h"

// Destructor

std::string intToString(int i)
std::string s;
std::stringstream out;
out << i;
s = out.str();
return s;

raises a linker error:
1>generat0r.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Utility::intToString(int)" (?intToString@Utility@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z)".
1>bin\Debug\\generat0r.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.

I rechecked the compiler settings and I do have compiled both angelscript lib and my main app (which uses Ogre and boost) using the same RT Lib switch: "/MDd" so there should be no dynamic/static mismatches (theoretically)

Any ideas'


Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!