tags:

views:

57

answers:

1

I have a reasonably simple C++ program that I can successfully compile on OSX 10.6 using:

g++ -O3 -funroll-loops -I /usr/local/include/boost-1_39/ myfile.cpp -o build/myfile

However, a user on OSX 10.5 gets the error:

dyld: unknown required load command

A support forum post suggests adding

-isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5

However adding this seems to mess with my include paths and gives me tons of errors. Is there an easy way to compile a binary that will work on OSX 10.5 and 10.6?

+1  A: 

This questions has been solved, I believe, using the suggested command.

Tristan