Hi, I am also getting a similar error for another lib, although I have added it 
at the linker input, when I build I get:

libboost_system-vc90-mt.lib(error_code.obj) : error LNK2019: unresolved 
external symbol __imp___invalid_parameter_noinfo referenced in function 
"public: virtual class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > __thiscall `anonymous 
namespace'::system_error_category::message(int)const " 
(?message@system_error_category@?A0xa386b881@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z)

I found somewhere that this can be solved if we remove the msvcrt.lib from the 
Ignore Specific Library in Linker Input. I did that, but then although it 
builds, and I just get a warning:
warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use 
/NODEFAULTLIB:library

But my project throws an exception:
Unhandled exception at 0x7c812afb in Template.exe: Microsoft C++ exception: 
std::bad_alloc at memory location 0x0012f32c..

And breaks at the file malloc.c at the command:
return HeapAlloc(_crtheap, 0, size ? size : 1);

I also found somewhere else to check the C/C++ -> Code Generation ->Runtime 
Library to be set Multi-threaded Debug DLL (/MDd) for Debug Mode and the 
equivalent for Release, and checked both my project, and the OSG installation 
project I used, and they are both set the same as this, so it's not that...

Does anyone have any other idea of how I could solve this error LNK2019: 
unresolved external symbol ?

Thank you!

Anastasia

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=38470#38470





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to