我正在以下持久性錯誤的嘗試調試在Eclipse朱諾C程序在我的Mac:麻煩的約塞米蒂
Building target: TimeStamps Invoking: MacOS X C Linker gcc -v -o "TimeStamps" ./graphic/arrow.o ./graphic/axesdraw.o . . . Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.1.0 Thread model: posix "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.10.0 -o Undefined symbols for architecture x86_64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [TimeStamps] Error 1
所以,我感到困惑如何在Eclipse中解決這個問題。主路由是在timestamp_test.c 我有-g -v作爲編譯器標誌,-v作爲鏈接器標誌。 沒有.o文件。
然後,如果我嘗試調試它,我只是得到Java和JUnit測試的選擇 – 2015-03-30 19:15:41
'timestamp_test.c'是否有'main'函數? – braindf 2015-03-30 19:18:34