Hi NG!

Just wanted to set OpenSG's logs to wxWindows's like this:
void logCallback(const osg::Char8 *data, osg::Int32 size, void *clientData)
{
   wxLogDebug( data);
}


bool Application::OnInit()
{
   ...
//wxTextCtrl* outputText = XRCCTRL(*this, "output_textctrl", wxTextCtrl); wxTextCtrl* logWindow = XRCCTRL( *_mainFrame, "ID_LOG_WINDOW", wxTextCtrl);
   wxLogChain *logChain = new wxLogChain(new wxLogTextCtrl(logWindow ));

   OSG::initLog();
   OSG::LogBuf& logBuf = OSG::osgLogP->getLogBuf();
   logBuf.setCallback( logCallback);
   logBuf.setEnabled();
wxLogDebug("This is a wxLog Message.");
   FDEBUG(("This is the OpenSG log."));
}

With the last line I get strange compiler warnings complaining about stlp_std::list<_Tp>' and some dll-interface ?? These seem to be the cause for the linker errors. So I thought, I'd recompile OpenSG, just to make sure everything is correct, but I can't get it to compile. I did it once, but don't remember having changed anything. I get these STL-related errors, when tying to compile with MS Visual Studio .Net 2003. This comes for 1.4 and the current cvs version. I included the stlport coming with OpenSG as first directory, and also tried to use another version of stlport.
What's wrong ?

Thanx,
Tobias


When building my App:

lib\OpenSG\include\OpenSG\OSGLog.h(200) : warning C4251: 'osg::LogBuf::_chunkBag': class 'stlp_std::list<_Tp>' erfordert eine DLL-Schnittstelle, die von Clients von class 'osg::LogBuf' verwendet wird
       with
       [
           _Tp=osg::LogBuf::Chunk *
       ]
application.obj : error LNK2019: Nicht aufgel÷stes externes Symbol '"__declspec(dllimport) public: class stlp_std::basic_ostream<char,class stlp_std::char_traits<char> > & __thiscall osg::Log::nilstream(void)" ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@@stlp_std@@XZ)', verwiesen in Funktion '"class stlp_std::basic_ostream<char,class stlp_std::char_traits<char> > & __cdecl osg::osgStartLog(bool,enum osg::LogLevel,char const *,char const *,unsigned int)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@@stlp_std@@[EMAIL PROTECTED]@[EMAIL PROTECTED])' application.obj : error LNK2019: Nicht aufgel÷stes externes Symbol '"__declspec(dllimport) public: class stlp_std::basic_ostream<char,class stlp_std::char_traits<char> > & __thiscall osg::Log::stream(enum osg::LogLevel)" ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@@stlp_std@@[EMAIL PROTECTED]@@Z)', verwiesen in Funktion '"class stlp_std::basic_ostream<char,class stlp_std::char_traits<char> > & __cdecl osg::osgStartLog(bool,enum osg::LogLevel,char const *,char const *,unsigned int)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@@stlp_std@@[EMAIL PROTECTED]@[EMAIL PROTECTED])' application.obj : error LNK2019: Nicht aufgel÷stes externes Symbol '"__declspec(dllimport) public: class stlp_std::basic_ostream<char,class stlp_std::char_traits<char> > & __thiscall osg::Log::doHeader(enum osg::LogLevel,char const *,char const *,unsigned int)" ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@@stlp_std@@[EMAIL PROTECTED]@[EMAIL PROTECTED])', verwiesen in Funktion '"class stlp_std::basic_ostream<char,class stlp_std::char_traits<char> > & __cdecl osg::osgStartLog(bool,enum osg::LogLevel,char const *,char const *,unsigned int)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@@stlp_std@@[EMAIL PROTECTED]@[EMAIL PROTECTED])'

// in short these are the things defined in OsgLog.inl...



When building OpenSG:

d:\OpenSG\OpenSG\Source\Base\Base\OSGBaseFunctions.inl(542) : error C2039: 'abs': Ist kein Element von '_STL' d:\OpenSG\OpenSG\include\stlport\stdexcept(149): Siehe Verweis auf Instanziierung der kompilierten Klassenvorlage '_STL::basic_string<_CharT,_Traits,_Alloc>'
       with
       [
           _CharT=char,
           _Traits=_STL::char_traits<char>,
           _Alloc=_STL::allocator<char>
       ]


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to