Re: [Boost-users] boost builds dll's on mingw, can't use
Imran,
Is the problem not the extensions (.dll/.lib vs .so/.a)? Why didn't boost name them properly when I specified mingw?
.dll is for shared libraries on Windows. .lib is for static libraries on Windows. .so and .a are for shared/static on Unix/Linux. It shouldn't matter whether you are using GNU make or not. MinGW uses g++ to do the linking, and it's g++ that has the file ordering requirement on the command line. On the other hand, if you aren't using g++ (or gcc, which calls g++), then maybe your linker doesn't have the ordering problem. Is the error you are getting about unresolved references? Merrill
Thanks Merrill,
The error i'm getting is:
.....mingw32\bin\ld.exe: cannot find -lboost_thread
I am using gcc, but I'm not sure I understand your response - does it matter
what the prefix is and if there's a lib prefix? Was I right in changing
those to match the unix style?
Thanks,
Imran
On 12/15/05, Merrill Cornish
Imran,
Is the problem not the extensions (.dll/.lib vs .so/.a)? Why didn't boost name them properly when I specified mingw?
.dll is for shared libraries on Windows. .lib is for static libraries on Windows. .so and .a are for shared/static on Unix/Linux.
It shouldn't matter whether you are using GNU make or not. MinGW uses g++ to do the linking, and it's g++ that has the file ordering requirement on the command line.
On the other hand, if you aren't using g++ (or gcc, which calls g++), then maybe your linker doesn't have the ordering problem.
Is the error you are getting about unresolved references?
Merrill _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Imran Akbar
-
Merrill Cornish