简体   繁体   中英

How to use msgpack in xcode project?

I installed msgpack with brew and can compile the sample code with gcc msgpacktest.c -lmsgpack in the command line. But when I add the header in test.m , a class in my iOS project and add -lmsgpack in Compile Sources of Build Phases, I still get the error msgpack.h file not found . I am a new programmer and this is confusing me. What am I missing?

You need to tell Xcode where to find the header. In Build Settings, under Search Paths, add the path under User Header Search Paths.

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