On Thu, 2004-12-16 at 10:05, Andreas Zieringer wrote: > Hi Rasmus, > > did you add the OSG_COMPILEMYLIB define to your compile line? The VS7.0 > compiler is quite bad you can try to add the missing symbols in a .def > file (like OpenSG/Source/System/FieldContainer/lib.def.cl.net.ms_stl.sym) > and link this file with -def:bla.def
What exactly are you doing in that file? Telling the linker that the symbols are defined elsewhere, so it shouldn't complain about them? I'll try this as soon as I get time (and my hands on a windows development box). Thanks /Rasmus > Andreas > > > Hi > > > > I'm trying to compile my animation library on Windows using Cygwin and > > VS7. During linkage I get some errors concerning unresolved external > > symbols involving MField and getBinSize of some of my FCs. > > > > If I give you my compile line and the error output from the linker, can > > anyone tell me what my problem is? > > > > > > Here's my compile line: > > > > "/cygdrive/c/Program Files/Microsoft Visual Studio .NET/Vc7/bin/link.exe" > > -dll -map > > -out:"C:/cygwin/home/rasta/libOpenSGVRMLAnimation/lib/opt/cygwin/OSGVRMLAnimation.dll" > > -NODEFAULTLIB > > -LIBPATH:"C:\cygwin\home\rasta\OpenSG\src\OpenSG\dist\win\supportlibs\lib" > > -LIBPATH:"C:\cygwin\home\rasta\OpenSG/lib" [many .obj files] > > > > > > Here are the errors: > > > > Creating library > > C:/cygwin/home/rasta/libOpenSGVRMLAnimation/lib/opt/cygwin/OSGVRMLAnimation.lib > > and object > > C:/cygwin/home/rasta/libOpenSGVRMLAnimation/lib/opt/cygwin/OSGVRMLAnimation.exp > > > > OSGKeyFrameInterpolatorBase.obj : error LNK2019: unresolved external symbol > > "__declspec(dllimport) public: unsigned int __thiscall osg::MField<class > > osg::NodePtr,0>::getBinSize(void)const " ([EMAIL PROTECTED]@[EMAIL > > PROTECTED]@@$0A@@osg@@QBEIXZ) referenced in function "public: virtual > > unsigned int __thiscall osg::KeyFrameInterpolatorBase::getBinSize(unsigned > > __int64 const &)" ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]) > > > > OSGSensorBase.obj : error LNK2001: unresolved external symbol > > "__declspec(dllimport) public: unsigned int __thiscall osg::MField<class > > osg::NodePtr,0>::getBinSize(void)const " ([EMAIL PROTECTED]@[EMAIL > > PROTECTED]@@$0A@@osg@@QBEIXZ) > > > > OSGAudioClipBase.obj : error LNK2019: unresolved external symbol > > "__declspec(dllimport) public: unsigned int __thiscall osg::MField<class > > osg::NodePtr,0>::getBinSize(void)const " ([EMAIL PROTECTED]@[EMAIL > > PROTECTED]@@$0A@@osg@@QBEIXZ) referenced in function "protected: __thiscall > > osg::FCPtr<class osg::AttachmentContainerPtr,class > > osg::NodeCore>::FCPtr<class osg::AttachmentContainerPtr,class > > osg::NodeCore>(class osg::NodeCore const *,unsigned short,unsigned short)" > > ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@@osg@@[EMAIL PROTECTED]@[EMAIL > > PROTECTED]@Z) > > > > OSGSoundBase.obj : error LNK2001: unresolved external symbol > > "__declspec(dllimport) public: unsigned int __thiscall osg::MField<class > > osg::NodePtr,0>::getBinSize(void)const " ([EMAIL PROTECTED]@[EMAIL > > PROTECTED]@@$0A@@osg@@QBEIXZ) > > > > C:/cygwin/home/rasta/libOpenSGVRMLAnimation/lib/opt/cygwin/OSGVRMLAnimation.dll: > > fatal error LNK1120: 1 unresolved externals > > > > > > Thanks in advance > > /Rasmus > > -- Rasmus Agerholm Research Assistant VR Media Lab (+45) 9635 8792 Niels Jernes Vej 14 DK-9220 Aalborg Phone: (+45) 9635 8784 Fax: (+45) 9815 2444 http://www.vrmedialab.dk/~rasta ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
