My GCC version is:
Code: Select all
gcc (TDM-2 mingw32) 4.4.1
Code: Select all
c:\Bayes\smile/smile.h:26:6: error: #error SMILE : in debug build the runtime li
brary must be set to Multi-threaded Debug DLL
Code: Select all
#ifdef _WIN32
#if (_MSC_VER >= 1400) && defined(NDEBUG) && (!defined(_SECURE_SCL) || _SECURE_SCL != 0)
#error SMILE : in release build _SECURE_SCL must be defined and set to zero for VS.NET 2005 or later
#endif
#ifndef SMILE_VC_NO_AUTOLINK
// automatically link with SMILE library
#ifdef NDEBUG
#ifdef _DLL
#pragma comment(lib, "smile_dyn")
#else
#pragma comment(lib, "smile")
#endif
#else
#ifdef _DLL
#pragma comment(lib, "smile_dbg")
#else
#error SMILE : in debug build the runtime library must be set to Multi-threaded Debug DLL
#endif
#endif
#endif
#endif
Code: Select all
g++ -D_DLL -I C:\Bayes -o c:\Bayes\bayes.exe c:\Bayes\bayes.cpp
Code: Select all
C:\DOCUME~1\Quirijn\LOCALS~1\Temp\ccJKOTuf.o:bayes.cpp:(.text$_ZN11DSL_idArrayD1
Ev[DSL_idArray::~DSL_idArray()]+0xb): undefined reference to `vtable for DSL_idA
rray'
C:\DOCUME~1\Quirijn\LOCALS~1\Temp\ccJKOTuf.o:bayes.cpp:(.rdata$_ZTV18DSL_sysCoor
dinates[vtable for DSL_sysCoordinates]+0x8): undefined reference to `DSL_object:
:CleanUp(int)'
collect2: ld returned 1 exit status
Thanks in advance for the help!