Chris Dodd
Chris Dodd

Reputation: 126110

Using boost on MacOS with MacPorts

I'm trying to build some software on MacOS that uses boost (specifically boost_system). It all appears to configure and build ok, but when it goes to link it gives the error:

ld: library 'boost_system' not found

Looking at the boost libraries that MacPorts installed, they all appear to have a -mt suffix -- I find /opt/local/lib/libboost_system-mt.dylib. If I change the Makefile.am file to use -lboost_system-mt instead, then everything works, but of course that is both very painful and would break any other build.

Anyone know what is going on here? Where does this -mt suffix come from? Is this a problem with MacPorts or something else?

Upvotes: 1

Views: 183

Answers (0)

Related Questions