Hi Dirk, i found the error, my unistd.h was empty.
I reinstalled the libc6-dev package and fixed the other 2 errors (http://www.mail-archive.com/[email protected]/msg05059.html and http://www.mail-archive.com/[email protected]/msg04169.html) and now, OpenSG compiles with many warnigs ;-) Thanks Klaus Dirk Reiners schrieb: > Hi Klaus, > > Klaus Schwarzkopf wrote: >> Hello opensg-user list, >> >> wenn i try to compile the source code with g++ on my Linux Debian Etch >> machine, i get some errors. I tried version 1.8.0 (scons/make) and >> 1.6.0(make) and i get everytime the same error. >> > ... >> Source/Base/Base/OSGFileSystem.inl: In function 'osg::Char8* >> osg::Directory::getCurrent()': >> Source/Base/Base/OSGFileSystem.inl:210: error: 'getcwd' was not declared >> in this scope >> Source/Base/Base/OSGFileSystem.inl: In function 'bool >> osg::Directory::setCurrent(const osg::Char8*)': >> Source/Base/Base/OSGFileSystem.inl:238: error: 'chdir' was not declared >> in this scope > > That is surprising, as those functions should be part of unistd.h, which is > included. > > Can you tell us where those functions are Debian? man 3 getcwd and man 2 > chdir > should tell you at the top. > > Thanks > > Dirk > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Opensg-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/opensg-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
