LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 982|回复: 2

minigui的程序编译不能通过!

[复制链接]
发表于 2003-5-5 22:23:09 | 显示全部楼层 |阅读模式
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
发表于 2003-5-6 23:01:54 | 显示全部楼层
没有指定库
 楼主| 发表于 2003-5-8 13:19:14 | 显示全部楼层
谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表