Hi Robert,
Thanks for your quick response. I really appreciatte that.

So it happen that I fixed the problem just adding the following include:

#include<OpenThreads/Mutex>

How does this sound to you? Does it make sense?
Regards
Juan

El 04/11/2010 10:15, Robert Osfield escribió:
Hi Juan,

Using mingw with the OSG is not often done so you'll best testing
something that few others do so if you spot problems then you'll need
to pitch in to help resolve.

As a general note, this error with linking against OpenThreads points
to a an issue with how the OSG/OpenThreads was built and what the
example is linking against.  Normally the OSG is able to keep this all
consistent, but if you build the OpenThreads with one configuration,
change the configuration and build your application against that new
configuration but link against the OpenThreads with the old
configuration you might see problems.  The include/OpenThreads/Config
file is autogenerated and should be consistent.

Robert.

2010/11/3 "Juan S. Valverde García"<[email protected]>:
Hi,

Thank you very much in advance for any help!

So I'm trying to cast some shadows on my OSG virtual world. I started
looking for the osgshadow example and manual to have a clue about this.
When I try to compile the example, using mingww gcc 4.4.0, i get the
followeing error:

debug/osgshadow.o: In function `ViewData':

C:\devtools\projects\OSG\pruebas
ascensor\shadow/../../../../library/OpenSceneGraph-2.9.8/include/osgShadow/ViewDependentShadowTechnique:176:
undefined reference to `_imp___ZN11OpenThreads5MutexC1ENS0_9MutexTypeE'

C:\devtools\projects\OSG\pruebas
ascensor\shadow/../../../../library/OpenSceneGraph-2.9.8/include/osgShadow/ViewDependentShadowTechnique:176:
undefined reference to `_imp___ZN11OpenThreads5MutexD1Ev'

debug/osgshadow.o: In function `~ViewData':

C:\devtools\projects\OSG\pruebas
ascensor\shadow/../../../../library/OpenSceneGraph-2.9.8/include/osgShadow/ViewDependentShadowTechnique:152:
undefined reference to `_imp___ZN11OpenThreads5MutexD1Ev'

C:\devtools\projects\OSG\pruebas
ascensor\shadow/../../../../library/OpenSceneGraph-2.9.8/include/osgShadow/ViewDependentShadowTechnique:152:
undefined reference to `_imp___ZN11OpenThreads5MutexD1Ev'

collect2: ld returned 1 exit status


Of course, first thing I tried was understanding the problem. No way. Second
googled it. No trace of it in the www. So I came to the forum. Any clue
about it?
Again, any help would be much appreciated. My world is sad without a shadow!

Best regards
Juan


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


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


--
Juan S. Valverde García
Director Ejecución de Proyectos

virtualmech
Parque Científico y Tecnológico Cartuja'93
c/ Leonardo da Vinci 18
Planta 4ª, Módulo A.2
41092 Sevilla
web: www.virtualmech.com
email: [email protected]

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

Reply via email to