I have the following problem:
The following very short example program I have written under
Eclipse/CDT with mingw32/gcc as "Managed Make C++ Project" compiles, but
it does not build:
ATest1.cpp:
#include <osg/Matrixd>
int main(int argc, char* argv[])
{
osg::Vec3d mapTrans(0., 0., 5.);
osg::Matrixd driverTrans;
driverTrans.makeTranslate(mapTrans);
return (0);
}
This is the output:
make -k all
'Building target: ATest1.exe'
'Invoking: GCC C++ Linker'
g++ -L"D:/OSG_OP_OT-1.2/OpenThreads/lib"
-L"D:/OSG_OP_OT-1.2/OpenSceneGraph/lib" -o"ATest1.exe" ./Atest1.o
-losgd
./Atest1.o: In function
`main':D:/SMPL_ECLIPSE/Programs/ATest1/Debug/../Atest1.cpp:41: undefined
reference to `_imp___ZN3osg7Matrixd13makeTranslateERKNS_5Vec3dE'
:D:/SMPL_ECLIPSE/Programs/ATest1/Debug/../Atest1.cpp:35: undefined
reference to `_imp___ZN3osg7Matrixd12makeIdentityEv'
collect2: ld returned 1 exit status
make: *** [ATest1.exe] Error 1
make: Target `all' not remade because of errors.
As you can see I already linked to osgd.lib (libosgd.a does not exist,
because I used the binary distribution of OpenSceneGraph. In addition I
tried linking with -lopengl32 and -lOpenThreadsWin32 or -losg...
Nothing helps!
Where is the clue?
Ciao, Julian
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/