mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] linking to libboost_thread_win32-mt.a


From: Mark Brand
Subject: Re: [Mingw-cross-env-list] linking to libboost_thread_win32-mt.a
Date: Tue, 29 May 2012 10:18:13 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120428 Firefox/12.0 SeaMonkey/2.9.1


        I'm trying to use the boost_thread libraries in my program and
        are having troubles linking to the library. Im using autotools
        to build my project and I keep getting the error
        
/home/deadpickle/mxe/usr/lib/gcc/i686-pc-mingw32/4.7.0/../../../../i686-pc-mingw32/bin/ld:
        cannot find -lboost_thread_win32-mt.a
        So far I have tried setting the LDFLAG in my configure call
        and specifying -llibboost_thread_win32-mt.a and none of these
        seem to be working. Any ideas?


    The flag "-lboost_thread_win32-mt" corresponds to the file
    "usr/i686-pc-mingw32/lib/libboost_thread_win32-mt.a". In other
    words, in your linker flag, omit the "lib" prefix and the ".a" suffix.


hope im understanding your reply correctly.
in configure.ac <http://configure.ac> i removed the -l and a.
LIBS="$LIBS libboost_thread_win32-mt"
then ran
./configure --prefix=/home/deadpickle/hprcc_terminal/win32 --host=i686-pc-mingw32 LDFLAGS='-L/home/deadpickle/mxe/usr/i686-pc-mingw32/lib/'
but still received the error
i686-pc-mingw32-g++: error: libboost_thread_win32-mt: No such file or directory

Don't omit the "-l" flag. Do omit the "lib" prefix and the ".a" suffix.

Mark




reply via email to

[Prev in Thread] Current Thread [Next in Thread]