   DLL import problem, but no dll?
error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; & __thiscall std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;::replace(class std::_String_iterator&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;,class std::_String_iterator&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;,class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,cla|It appears that something with the string class isn't working properly. I was unaware that string had a dll, however! I'm using VC++ 9.0 to compile my code. Basically, I have a class with a few strings and wstrings.I've done #include <string> and remembered to use the std namespace.I've never really encountered this error before, so if anyone has any ideas, please explain! :)- Sput   
  Much of the string type is defined in the C++ runtime library. What do have set for "Runtime Library" in the "C/C++, Code Generation" section of your project options? And also are there any linker (or compiler) warnings as well?   ;  I'm using "Multi-threaded DLL Runtime Library". There are two compiler warnings, but I don't think that they're related - one's about a local variable being undeclared, and the other's about not all control paths returning...   ;  Is this a debug build? For a debug build, you should link to the Multi-threaded Debug DLL. Also, are you linking to any other static libraries? (SDL or something like that)   ;  Yeah, I'm using SDL, OpenGL and DevIL.This isn't a debug build, no...Sorry I took so long replying!- Sput   ;  You need to make sure that SDL and DevIL are both compiled with the same runtime library (so if you use "Multi-threaded DLL" in one [and you should be], then you should be using "Multi-threaded DLL" in all of them).If they're built as DLLs, I don't think it matters (not sure, though) but it definitely matters if they're compiled as static libs.   ;  Didn't post anymore because I thought the problem was fixed, but compiling again today gave me the error again. I've got some more information this time:LINK||warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library|UIBase.obj||error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::replace(class std::_String_iterator<char,struct std::char_traits<char>,class std::allocator<char> >,class std::_String_iterator<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,cla|bin\KotFR.exe||fatal error LNK1120: 1 unresolved externals|||=== Build finished: 2 errors, 1 warnings ===|This problem starts when I use an Awesomium constructor:UIListener = new MyWebViewListener();The class is this:class MyWebViewListener : public WebViewListener{public:string Title;bool Dirty;public:MyWebViewListener(){};void onBeginNavigation(const string& url){cout << "onBeginNavigation" << endl;};void onBeginLoading(const string& url, int statusCode, const wstring& mimeType){cout << "onBeginLoading" << endl;};void onFinishLoading(){cout << "onFinishLoading" << endl;Dirty = true;};void onCallback(const string& name, const JSArguments& args){cout << "onCallback" << endl;};void onReceiveTitle(const wstring& title){cout << "onRecieveTitle" << endl;string Temp(title.begin(), title.end());Temp.assign(title.begin(), title.end());Title = Temp;};void onChangeTooltip(const wstring& tooltip){cout << "onChangeTooltip" << endl;};#if defined(_WIN32)void onChangeCursor(const HCURSOR& cursor){cout << "onChangeCursor" << endl;};#endifvoid onChangeKeyboardFocus(bool isFocused){cout << "onChangeKeyboardFocus" << endl;};};As you can see, the constructor I'm using does nothing.But a blank constructor shouldn't be a problem, should it?Thanks for your help so far!- Sput   