From: Nathan R. <zer...@ho...> - 2013-07-06 21:37:16
|
> Using John's suggestion of adding the LIBS environment variable I was > able to get an exe. Unfortunately when I try to launch it I get a > complaint that the dlls aren't found. Clearly the system is trying to > dynamically link, whereas I would like a statically linked build. Is > this a job for MinGW per se or do I need to go ask the boost folks > what's up? There are a bunch of posts on StackOverflow complaining > about trying to statically link boost with MinGW, each containing > somewhat varying information. If someone here has actually done it, > please advise. I accomplish this by using the "link=static" option on the b2 command line when I build boost. This way, dynamic libraries aren't built at all, and all clients of boost will link it statically. Regards, Nate |