Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Xcode 6中添加静态库_Xcode_Xcode6_Static Libraries - Fatal编程技术网

在Xcode 6中添加静态库

在Xcode 6中添加静态库,xcode,xcode6,static-libraries,Xcode,Xcode6,Static Libraries,我正在使用Xcode 6.0.1,需要在我的C项目中添加一个库libpt.a。我不知道如何将它正确地集成到我的项目中。我已经将二进制文件链接到库,但仍然会出现以下错误: Undefined symbols for architecture x86_64: "_pt_add_xpage", referenced from: _main in main.o ld: symbol(s) not found for architecture x86_64 clang: error: li

我正在使用Xcode 6.0.1,需要在我的C项目中添加一个库
libpt.a
。我不知道如何将它正确地集成到我的项目中。我已经将二进制文件链接到库,但仍然会出现以下错误:

Undefined symbols for architecture x86_64:
  "_pt_add_xpage", referenced from:
      _main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我假设上述错误意味着库没有正确集成。我已经添加了头文件
pt.h
,并包含在我的项目中。我做错了什么