|
gcc -c hell.o时,ok
用gcc hell.o时,error
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o(.text+0x18): undefined reference to `main'
/tmp/ccwFeNWT.o: In function `HelloWinProc':
/tmp/ccwFeNWT.o(.text+0x24): undefined reference to `BeginPaint'
/tmp/ccwFeNWT.o(.text+0x40): undefined reference to `TextOutLen'
/tmp/ccwFeNWT.o(.text+0x51): undefined reference to `EndPaint'
/tmp/ccwFeNWT.o(.text+0x61): undefined reference to `DestroyMainWindow'
/tmp/ccwFeNWT.o(.text+0x6f): undefined reference to `PostQuitMessage'
/tmp/ccwFeNWT.o(.text+0x8c): undefined reference to `DefaultMainWinProc'
/tmp/ccwFeNWT.o: In function `InitCreateInfo':
/tmp/ccwFeNWT.o(.text+0xd3): undefined reference to `GetSystemCursor'
/tmp/ccwFeNWT.o(.text+0x11d): undefined reference to `SysPixelIndex'
/tmp/ccwFeNWT.o: In function `MiniGUIMain':
/tmp/ccwFeNWT.o(.text+0x156): undefined reference to `SetDesktopRect'
/tmp/ccwFeNWT.o(.text+0x174): undefined reference to `CreateMainWindow'
/tmp/ccwFeNWT.o(.text+0x199): undefined reference to `GetMessage'
/tmp/ccwFeNWT.o(.text+0x1ae): undefined reference to `DispatchMessage'
/tmp/ccwFeNWT.o(.text+0x1be): undefined reference to `MainWindowThreadCleanup'
collect2: ld returned 1 exit status |
|