|
我想单独编译生成一个.o文件,.c文件里包含了若干头文件,一些是系统的
一些是自己写的。
在make 是,指定生成.o文件,但是却出现了连接错误:错误如下:
cast
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:77: undefined reference to `main'
/tmp/cc77v0i6.o(.text+0x91): In function `CstExit':
: undefined reference to `RedFailover'
/tmp/cc77v0i6.o(.text+0x96): In function `CstExit':
: undefined reference to `RedExit'
/tmp/cc77v0i6.o(.text+0x9b): In function `CstExit':
: undefined reference to `CtrlGetCustomSettings'
............
请指教。先谢了。 |
|