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

Christian Kunz christian.kunz83 at gmail.com
Wed Jun 24 15:24:29 PDT 2015


Hi everyone,

I try to build a release version of my program with Qt Creator.
In debug mode everything compiles just fine. But when I switch to Release
mode I got several of these errors:

robotnodecallback.obj:-1: error: LNK2001: unresolved external symbol ""__declspec(dllimport) public: unsigned int __cdecl OpenThreads::Atomic::operator++(void)" (__imp_??EAtomic at OpenThreads@@QEAAIXZ)".

I used VS2013 and OSG 3.2.1. Compilation of sources worked fine. Looks like everything ok with that. I had no errors.

I am not using Openthreads in my program. Neither did I checked the option USE OPENTHREADS WITH QT in cmake.

So what could be the problem?

Thanks for your help.

... 


Thank you!

Cheers,
Christian

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








More information about the osg-users mailing list