开发者

Boost XCode i386

开发者 https://www.devze.com 2023-04-11 14:31 出处:网络
I need to use i386 with Boost because of another SDK I\'m using. I tried building Boost with ./b2 开发者_开发知识库toolset=darwin architecture=x86 address-model=32

I need to use i386 with Boost because of another SDK I'm using. I tried building Boost with

./b2 开发者_开发知识库toolset=darwin architecture=x86 address-model=32

to get the 32-bit version, but it's giving me a linker error:

ld: symbol(s) not found for architecture i386

I've also tried using

port install boost

but only get the x86_64 version of boost that way.

Is there another way to build Boost so that I can compile using i386 in Xcode?


I was able to compile the i386 version using macports by editing the macports config file located at

/opt/local/etc/macports/macports.conf

and uncommenting this line

build_arch  i386

After that I just called

sudo port install boost

and voilà, now it's working!

0

精彩评论

暂无评论...
验证码 换一张
取 消