Boost with Eclipse and MinGW

Hi- Running the simple code with Boost Header libraries works perfectly fine. If I try to use any compiled library, then I run to hell. I am trying to use the thread library and I keep getting compiling errors like: undefined reference to boost::thread::!thread() I installed the package and selected VS8 even though, I am using Eclipse and I added the "C:\Program Files (x86)\boost\boost_1_38\lib" to the linker search libraries paths. -- -- Cheers -- -- Cheers

Bassem Bouguerra wrote:
Hi- Running the simple code with Boost Header libraries works perfectly fine. If I try to use any compiled library, then I run to hell. I am trying to use the thread library and I keep getting compiling errors like: undefined reference to boost::thread::!thread()
I installed the package and selected VS8 even though, I am using Eclipse and I added the "C:\Program Files (x86)\boost\boost_1_38\lib" to the linker search libraries paths.
If you specify the above path, the linker will be able to find Boost libraries if you ask it to link to them. Did you actually asked to link to boost.thread? See Eclipse CDT docs for how to do that, and look in the folder above for the names of libraries you might want. - Volodya

I ran into some problems recently with linking boost with minGW. The problem that I had was with linking static libraries: DLL's worked fine. It turns out that the problem was due to the boost builder. When it built all of my libraries, I believe that it recognized minGW as a Windows compiler/linker and named all libraries with a .lib extension, but minGW is a port of GNU C/C++ and expects .a libraries. What I had to do was go into my lib directory and rename all the .lib files to .a. Hope this helps. Del Bassem Bouguerra wrote:
Hi- Running the simple code with Boost Header libraries works perfectly fine. If I try to use any compiled library, then I run to hell. I am trying to use the thread library and I keep getting compiling errors like: undefined reference to boost::thread::!thread()
I installed the package and selected VS8 even though, I am using Eclipse and I added the "C:\Program Files (x86)\boost\boost_1_38\lib" to the linker search libraries paths.
-- -- Cheers
-- -- Cheers
------------------------------------------------------------------------
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
Bassem Bouguerra
-
Del
-
Vladimir Prus