Hello Johannes,

Schaefer Johannes wrote:
> I am trying to use OpenSG 1.8 with STLport under Windows. My scons command is 
> scons compiler=msvc90 qt4="C:\Qt\2009.03\qt" type=opt exr=no 
> stlport="D:\STLport-5.2.1".
> I am using the recent STLport version 5.2.1 (boost is disabled).
> After compiling the linker cannot link against the libs.
> 
> OSGSocketAddress.obj : error LNK2019: Verweis auf nicht aufgelöstes externes 
> Symbol ""__declspec(dllimport) public: class 
> stlpd_std::basic_string<char,class stlpd_std::char_traits<char>,class 
> stlpd_std::allocator<char> > & __thiscall stlpd_std::basic_string<char,class 
> stlpd_std::char_traits<char>,class stlpd_std::allocator<char> 
> >::operator=(char const *)" 
> (__imp_??4?$basic_str...@dv?$char_traits@d...@stlpd_std@@v?$alloca...@d@2@@stlpd_std@@qaeaa...@pbd@Z)"
>  in Funktion ""public: class stlpd_std::basic_string<char,class 
> stlpd_std::char_traits<char>,class stlpd_std::allocator<char> > __thiscall 
> osg::SocketAddress::getHostByName(void)const " 
> (?gethostbyn...@socketaddress@osg@@qbe?av?$basic_str...@dv?$char_traits@d...@stlpd_std@@v?$alloca...@d@2@@stlpd_std@@XZ)".
> OSGSocketException.obj : error LNK2019: Verweis auf nicht aufgelöstes 
> externes Symbol ""public: static class stlp_std::basic_string<char,class 
> stlp_std::char_traits<char>,class stlp_std::allocator<char> > __cdecl 
> osg::Socket::getErrorStr(void)" 
> (?geterror...@socket@osg@@sa?av?$basic_str...@dv?$char_traits@d...@stlp_std@@v?$alloca...@d@2@@stlp_std@@XZ)"
>  in Funktion ""public: __thiscall osg::SocketError::SocketError(char const 
> *)" (??0socketer...@osg@@q...@pbd@Z)".
> OSGSocketException.obj : error LNK2019: Verweis auf nicht aufgelöstes 
> externes Symbol ""public: static class stlp_std::basic_string<char,class 
> stlp_std::char_traits<char>,class stlp_std::allocator<char> > __cdecl 
> osg::Socket::getHostErrorStr(void)" 
> (?gethosterror...@socket@osg@@sa?av?$basic_str...@dv?$char_traits@d...@stlp_std@@v?$alloca...@d@2@@stlp_std@@XZ)"
>  in Funktion ""public: __thiscall osg::SocketHostError::SocketHostError(char 
> const *)" (??0sockethoster...@osg@@q...@pbd@Z)".
> Build\win32-msvc90\Source\Base\OSGBase.dll : fatal error LNK1120: 73 nicht 
> aufgelöste externe Verweise.
> scons: building terminated because of errors.
> 
> In the STLport lib-dir are the right files (stlport.5.2.lib, stlportd.5.2.lib 
> and  stlportstld.5.2.lib).
> Has anybody a solution for this problem?

do the correct libs show up on the linker command lines? Have you 
checked if string::operator = (const char *) is present in these libs?
Are debug/release settings consistent or do you have any #defines in 
effect that could influence the header contents/function signatures of 
STLport pieces?

Does it make a difference if you change OSGSocketAddress.cpp:230 
(SocketAddress::getHostByName()) :
from result=hent->h_name; to result.assign(hent->h_name); ?

        Cheers,
                Carsten

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to