Page 1 of 1

Building from source in VS2010

Posted: 09 Aug 2011, 17:46
by azurex
Using the most recent build environment.
27 of the 87 projects fail with the
Error 3 error LNK2019: unresolved external symbol "public: static bool __cdecl OSThread::IsMainThread(void)" (?IsMainThread@OSThread@@SA_NXZ) referenced in function "public: class BCIError::OutStream & __thiscall BCIError::OutStream::operator()(char const *)" (??ROutStream@BCIError@@QAEAAV01@PBD@Z) C:\Users\AZX\Downloads\BCI2000src\BCI2000src\build\contrib\SignalSource\Neuroscan\getparams\BCIError.obj neurogetparams

error similar to the one show above.
\Also LNK1120: 1 unresolved externals for each time that the initial error appears.

using cmake 2.8.5 with no QT selected but MFC is.

Re: Building from source in VS2010

Posted: 09 Aug 2011, 17:53
by azurex
I fixed it by adding OSThread.cpp and OSthread.h to the project, but this should be updated in the CMAKE

Re: Building from source in VS2010

Posted: 15 Aug 2011, 07:57
by mellinger
Hi,

thanks for reporting the error. It has been fixed along with a number of changes in rev. 3459 (http://www.bci2000.org/tracproj/changeset/3459).

Regards,
Juergen