|
|
The linker wrote: |
---|
In function `main': [Linker error] C:\Users\Vilim\Desktop\New folder/main.cpp:10: undefined reference to `__imp___ZN5boost6thread4joinEv'1 In function `thread<main(int, char**)::<lambda()> >': [Linker error] C:/Program Files/MinGW/lib/gcc/mingw32/4.7.0/include/c++/myBoost/boost/thread/detail/thread.hpp:186: undefined reference to `__imp___ZN5boost6thread12start_threadEv'2 In function `_ZN5boost6threadD1Ev'3: [Linker error] C:/Program Files/MinGW/lib/gcc/mingw32/4.7.0/include/c++/myBoost/boost/thread/detail/thread.hpp:174: undefined reference to `__imp___ZN5boost6thread6detachEv' 4 C:\Users\Vilim\Desktop\New folder\collect2.exe [Error] ld returned 1 exit status C:\Users\Vilim\Desktop\New folder\Makefile.win [Error] [ThreadsTest.exe] Error 1 (if this is the only error: please check your library includes) |
The only difference between using an -l option and specifying a file name is that -l surrounds library with `lib' and `.a' and searches several directories. |