小编Aks*_*589的帖子

C:对地板的未定义参考

我在Ubuntu上使用Eclipse来编写/编译/运行C代码.我正在尝试构建我的项目.以下是Eclipse控制台中的输出.

22:18:31 **** Build of configuration Debug for project Project1 ****
make all 
Building file: ../project1.c
Invoking: GCC C Compiler
gcc -I/lib/i386-linux-gnu -O0 -g3 -Wall -c -fmessage-length=0 -pthread -lm -MMD -MP -MF"project1.d" -MT"project1.d" -o "project1.o" "../project1.c"
../project1.c: In function ‘main’:
../project1.c:146:6: warning: unused variable ‘this_thread_id’ [-Wunused-variable]
../project1.c: In function ‘_pre_init’:
../project1.c:126:1: warning: control reaches end of non-void function [-Wreturn-type]
Finished building: ../project1.c

Building file: ../scheduler.c
Invoking: GCC C Compiler
gcc -I/lib/i386-linux-gnu -O0 -g3 -Wall -c -fmessage-length=0 -pthread -lm -MMD -MP …
Run Code Online (Sandbox Code Playgroud)

c gcc eclipse-cdt math.h ubuntu-12.04

4
推荐指数
1
解决办法
9446
查看次数

标签 统计

c ×1

eclipse-cdt ×1

gcc ×1

math.h ×1

ubuntu-12.04 ×1