Hi forum,

I have developed some tiny applications with some old release. Now i am trying 
to port them to the new version 3.0 .


And i am getting the following compile error that left me without much clue to 
proceed. Probably you might be able be give some useful hint.


Code:

sajjad@sajjad-G74Sx:~/Documents/realtimerendering/terrainShader$ make
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_GUI_LIB -DQT_CORE_LIB 
-DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore 
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I/usr/local/include/osg 
-I/usr/local/include/osgAnimation -I/usr/local/include/osgDB 
-I/usr/local/include/osgGA -I/usr/local/include/osgManipulator 
-I/usr/local/include/osgViewer -I/usr/local/include/osgUtil -I. -o main.o 
main.cpp
In file included from /usr/local/include/osgDB/Output:20:0,
                 from /usr/local/include/osgDB/DotOsgWrapper:21,
                 from /usr/local/include/osgDB/Registry:26,
                 from Scene.h:1,
                 from main.cpp:2:
/usr/local/include/osgDB/fstream:32:1: error: invalid use of incomplete type 
‘std::fstream {aka struct std::basic_fstream<char>}’
/usr/include/c++/4.6/iosfwd:119:11: error: declaration of ‘std::fstream {aka 
struct std::basic_fstream<char>}’
/usr/local/include/osgDB/fstream:44:1: error: invalid use of incomplete type 
‘std::ifstream {aka struct std::basic_ifstream<char>}’
/usr/include/c++/4.6/iosfwd:113:11: error: declaration of ‘std::ifstream {aka 
struct std::basic_ifstream<char>}’
/usr/local/include/osgDB/fstream:56:1: error: invalid use of incomplete type 
‘std::ofstream {aka struct std::basic_ofstream<char>}’
/usr/include/c++/4.6/iosfwd:116:11: error: declaration of ‘std::ofstream {aka 
struct std::basic_ofstream<char>}’
make: *** [main.o] Error 1




 

Thank you!

Cheers,
Sajjadul

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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to