Reputation: 2231
I've look around google and StackOverflow but can't seem to ask the right question to get a useful answer.
I have an application program that compiles on Ubuntu 10.04 and links in the Boost::serialization library. When I tried to run my code on another machine, it won't run saying it can't find the Boost library...
How do I alter my gcc/g++ compile params to tell the compiler to include the Boost libs in my executable? That is, how do I compile to get a fully transportable program?
Do I need to change anything in my C++ if I do this?
Upvotes: 1
Views: 881
Reputation: 2231
So my coworker found this page: http://ubuntuforums.org/showthread.php?t=491455
From that, he found that we have to use these flags: -Wl,-Bstatic -lboost_serialization -Wl,-Bdynamic
Upvotes: 1
Reputation: 447
Are you sure that you've used static linking to compile your app?
Upvotes: 0