[osg-users] [build] Compile on Release error: LNK2001 OpenThreads::Atomic::operator++

Jannik Heller scrawl at baseoftrash.de
Wed Jun 24 17:30:29 PDT 2015


Hi,

AFAIK all OSG applications must link to OpenThreads. Even if you are not using it directly, you might be calling an inlined OSG function that uses OpenThreads.

Are you using CMake in your project? If you do, then ${OPENSCENEGRAPH_LIBRARIES} should include the OpenThreads library by default.

Cheers,
Jannik

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








More information about the osg-users mailing list