我想知道在Xcode上运行这个Hello World程序的配置。我安装了MacOSXFUSE。用命令
gcc -Wall hello.c `pkg-config osxfuse --cflags --libs` -o hello然后用
./hello outputdrive -f -s我能够成功地安装驱动器输出驱动器。
我有环境变量declare set as -x PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
MacOSXFUSE安装在/usr/local/include/osxfuse/中
更多信息:
/usr/local/lib/pkgconfig/osxfuse.pc
此文件中的数据为
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: fuse
Description: OSXFUSE
Version: 2.7.3
Libs: -L${libdir} -losxfuse -pthread -liconv
Cflags: -I${includedir}/osxfuse/fuse -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE一点点进步,
我是在终点站做的,
pkg-config osxfuse --cflags --libs在xocde中粘贴下面的“其他c#标志”
-D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE -I/usr/local/include/osxfuse/fuse -L/usr/local/lib -losxfuse -pthread -liconv 现在我得到了下面的错误,
Undefined symbols for architecture i386:
"_fuse_main_real", referenced from:
_main in main.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)如果需要更多的细节,请告诉我。
发布于 2015-06-25 18:42:50
您需要将/usr/local/lib放在"Library搜索路径“中,将库"libosxfuze”放到“链接框架和库”中。
它从命令行编译吗?g++ hello.i/usr/local/include/osx引信/fuse -D_FILE_OFFSET_BITS=64 -v -L/usr/local/lib -losxfuse
https://stackoverflow.com/questions/24751926
复制相似问题