I'm trying to get boost::asio work.
I've built the boost with command
bjam toolset=gcc --build-type=complete --with-system --with-thre
ad --with-date_time --with-regex --with-serialization stage
My libboost_system
file is called libboost_system-mgw47-1_53.dll
. So I tried to compile an example program with command (tried both with slashes and back-slashes)
mingw32-g++ -ID:/boost_1_53_0 -LD:/boost_1_53_0/bin.v2/libs
main.cpp -libboost_system-mgw47-1_53
But I continue getting an error
ld.exe: cannot find -libboost_system-mgw47-1_53
The library file is present: D:\boost_1_53_0\bin.v2\libs\system\build\gcc-mingw-4.7.2\release\libboost_system-mgw47-1_53.dll
. What I'm doing wrong? I tell the compiler where to look for binaries. Why can't it find them?
P.S. building on a x64 Win7 with mingw 4.7