我的英语不是最好的,所以我很抱歉。我想使用 fuse 构建自己的文件系统。是否可以在 Eclipse 中执行此项目?尝试执行此操作时遇到一些问题。我已经添加pkg-config fuse --cflags --libs
到“编译器调用参数”,但它没有帮助。请帮忙,克里斯
3 回答
转到Project Properties -> C/C++ Build -> Settings -> Tool Settings并尝试添加到GCC C++ Compiler以及GCC C Compiler Miscellaneous`pkg-config fuse --cflags`
中的“ Other flags ”编辑框。确保不要忘记 ` 反引号!
然后,您应该在 Linker Miscellanous 部分添加`pkg-config fuse --libs`
.
我没有尝试过,但我希望这有效。
我没有在 Eclipse 中编写我的项目,但我发现了在 fuse 中调试项目的有用方法。详情见以上链接:
http://www.cs.hmc.edu/~geoff/classes/hmc.cs135.201001/homework/fuse/fuse_doc.html#compiling
打开项目的属性并转到C/C++ Build → Settings → Tool settings。确保配置设置为[ All configurations ]
。现在转到GCC C Compiler → Miscellaneous并添加`pkg-config fuse --cflags`
到Other flags字段,然后点击Apply。接下来转到GCC C Linker并添加`pkg-config fuse --libs`
到命令行模式的末尾(在Expert settings下),然后单击Apply and close。您的 FUSE 项目现在应该可以正确编译了。