简体   繁体   中英

XCode and expat XML parser

Expat has a .la file for the lib. I am trying to link against it with XCode.

What I have done is to set the target's "Other link flags" to libexpat.la and the "library search path to where the .la file exists.

I get a link error.

Is this an expat installation error or my usage of XCode?

You also need to add the library to the "Link Binary with Libraries" build phase under your target. Here's what it looks like in Xcode 3:

免费Xcode 3屏幕截图

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM