I know very little about OSG, which is why I'm a lurker - I'm learning. But I 
have fixed C++ compiler errors before.

For the first one I would add C:\Praktikum\OpenSceneGraph\OSG\include to your 
include path. It's just a list of directories the compiler will try, in order, 
each time it looks for a file to satisfy a #include directive (stops searching 
as soon as it finds an appropriately-named file). I specify OSG\include and not 
OSG\include\OpenThreads because you'll see the #include that was messing up the 
compiler actually specifies "OpenThreads/Config".

Moving the file around obviously does fix the problem, as you noticed, but it 
sometimes can cause new problems, as included files may include other files, 
and regardless of the include path you specify the compiler always tries the 
directory the file is already in to resolve a #include, so the file you're 
moving may have relied on its relative position to another file.

The next one isn't an error, it's a warning. It's warning you about using 
dynamic_cast (which requires rtti be turned on) with the compiler option /GR... 
verwendet. Sorry my German is horrible, and I'm not sure what that last word 
means. I'm guessing this is complaining that you're (or a header you're 
including is) using RTTI without enabling it - /GR enables it:
http://msdn.microsoft.com/en-us/library/we6hfdy0(VS.80).aspx
If you're not controlling the command-line directly (makefile, ant script, 
manual compiles) but rather through the IDE, you should be able to find 
something about enabling RunTimeTypeInformation somewhere in some sort of 
Project Settings. It's been a while since I've worked with MS stuff in 
particular, but I'm sure it's findable.

The last one is a linker error, and I'm guessing a translation would be 
something like:
undefined external symbol: "FullyQualifiedNameOfAFunction" 
(MangledNameThatFunctionNeedsToHaveInAnObjectFileOrLibrary)
Go find that function's implementation (file that gets compiled, be it .cpp, 
.cc, whatever) compile it and link it in. In an IDE this translates to "Add it 
to the project". Linking With/Adding a library with the function would also do 
the job.

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to