Hi Davide,

On Thu, 2004-09-09 at 06:11, Davide Pasquini wrote:
> This is my program :
> 
> #include <iostream>
> #include <OpenSG/OSGLog.h>
>
> int main(int argc, char * argv[])
> {
> std::cout<<"HALLO OPENSG\n";
> exit(0); 
> }
> 
> now: 
> 
> if I compile this program, this is the log of Visual studio.net 2003:
> 
> ExrstereoViewer2 fatal error LNK1120: 1 esterni non risolti
> ExrstereoViewer2 error LNK2019: reference to external simbol 
> "__declspec(dllimport) public: void __thiscall
> _STL::basic_ostream<char,class _STL::char_traits<char>
> >::_M_put_nowiden(char const *)"
> ([EMAIL PROTECTED]@[EMAIL PROTECTED]@_STL@@@_STL@@[EMAIL PROTECTED]) not 
> resolved in the function "class _STL::basic_ostream<char,class 
> _STL::char_traits<char> > & __cdecl _STL::operator<<<class 
> _STL::char_traits<char> >(class _STL::basic_ostream<char,class 
> _STL::char_traits<char> > &,char const *)" ([EMAIL 
> PROTECTED]@_STL@@@_STL@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@@[EMAIL 
> PROTECTED]@[EMAIL PROTECTED])

In general, it's much more useful to get the complete build log, not
just the error message. The error message doesn't tell us anything about
the libraries linked (or not linked), and the options used to compile.
Look into the Output window, at the bottom there is a line saying 'Build
log was saved at "file://c:\..."' (or the equivalent in italian. ;), and
attach that to the message, please.

> if I comment the opensSG include like this:
> 
> #include <iostream>
> 
> //#include <OpenSG/OSGLog.h>
>
> int main(int argc, char * argv[])
> {
> std::cout<<"HALLO OPENSG\n";
> 
> exit(0); 
> }
> 
> the program compile and link perfectly.
>
> I have used the porting of stl suggested in this thread:
> 
> http://sourceforge.net/mailarchive/forum.php?thread_id=5520685&forum_id=2633
> 
> can you help me please??

I can only guess, but my guess would be you're not linking with the
STLPort library, therefore it can't find some of the symbols that are
used when OSGLog.h includes fstream. Or you are linking with the
library, but you're still using the old headers.

        Dirk




-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to