Hi,

Good, damn fussy compiler some times ;-).

Glad you got it work.

 

Martin.

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jan Waterman
Sent: 15 May 2006 09:18
To: [email protected]
Subject: RE: [osg-users] Linking error: #include <osgDB/ReadFile>,problems with std:: operations?

 

Geesh, I know it had to be something small. That solved it, thnx! Accidentally had it set for Multithreaded (/MT)...


From: "Martin Naylor" <[EMAIL PROTECTED]>
Reply-To: osg users <[email protected]>
To: "'osg users'" <[email protected]>
Subject: RE: [osg-users] Linking error: #include <osgDB/ReadFile>,problems with std:: operations?
Date: Fri, 12 May 2006 15:00:48 +0100

Hi Jan,

Try this:

Goto the project properties then c/c++ -> Code Generation and change runtime libarary to multi threaded Dll debug if its not already?

 

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jan Waterman
Sent: 12 May 2006 14:51
To: [email protected]
Subject: RE: [osg-users] Linking error: #include <osgDB/ReadFile>,problems with std:: operations?

 

Hey Martin,

Yes, I did add lots of additional libraries to make sure the OSG related stuff worked. It was an empty project though, not a console project. A console project gives me an internal compiler error... These are the libraries:

freetype219.lib gdal_i.lib glslang.lib glut32.lib libjpeg.lib liblua.lib liblualib.lib libpng.lib libtiff.lib libungif.lib OpenThreadsWin32.lib osg.lib osgDB.lib osgFX.lib osgGA.lib osgIntrospection.lib osgParticle.lib osgProducer.lib osgSim.lib osgTerrain.lib osgText.lib osgToy.lib osgUtil.lib osgVRPN.lib Producer.lib vrpn.lib zlib.lib


From: "Martin Naylor" <[EMAIL PROTECTED]>
Reply-To: osg users <[email protected]>
To: "'osg users'" <[email protected]>
Subject: RE: [osg-users] Linking error: #include <osgDB/ReadFile>,problems with std:: operations?
Date: Fri, 12 May 2006 14:41:17 +0100

Hi,

I have just tried a simple win32 console project (VS2005 Pro) and pasted your code into it and it seems to work just fine?

No additional libs or anything was added to the project?

 

 

Martin.

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jan Waterman
Sent: 12 May 2006 12:37
To: [email protected]
Subject: [osg-users] Linking error: #include <osgDB/ReadFile>,problems with std:: operations?

 

Hi everybody,

I'm very new to all of this, and I'm studying some simple examples to understand OSG. It seems to me that using #include <osgDB/ReadFile> gives some problems with outputting messages (std:err for example). I have this code (left out all OSG related stuff because it's irrelevant, commenting out the "std:cerr" line gets rid of the error):

#include <iostream>
#include <osgDB/ReadFile>
#include <osgUtil/Optimizer>
#include <osgProducer/Viewer>
int main (int argc, char* argv[])
{
    std::cerr << "Usage: ";
}

And I'm getting this link error:

pyramide.obj : error LNK2001: unresolved external symbol "public: class std::basic_ostream<char,struct std::char_traits<char> > * __thiscall std::basic_ios<char,struct std::char_traits<char> >::tie(void)const " ([EMAIL PROTECTED]@[EMAIL PROTECTED]@std@@@std@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@@[EMAIL PROTECTED])

pyramide.obj : error LNK2001: unresolved external symbol "public: void __thiscall std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@std@@@std@@$$FQAEXXZ)

pyramide.obj : error LNK2001: unresolved external symbol "public: char __thiscall std::basic_ios<char,struct std::char_traits<char> >::fill(void)const " ([EMAIL PROTECTED]@[EMAIL PROTECTED]@std@@@std@@$$FQBEDXZ)

D:\OSG Probeersels\Pyramide\Release\Pyramide.exe : fatal error LNK1120: 3 unresolved externals

I've included all lib files from the OSG lib dir. Can anyone tell me what's wrong here?

// Jan

 

>_______________________________________________
>osg-users mailing list
>[email protected]
>http://openscenegraph.net/mailman/listinfo/osg-users
>http://www.openscenegraph.org/

 

>_______________________________________________
>osg-users mailing list
>[email protected]
>http://openscenegraph.net/mailman/listinfo/osg-users
>http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to