在DOS下用gcc mysock5.c出现错误:
C:\DOCUME~1\Shellmy\LOCALS~1\Temp/ccILaaaa.o(.text+0x705):mysock5.c: undefined r
eference to
C:\DOCUME~1\Shellmy\LOCALS~1\Temp/ccILaaaa.o(.text+0x743):mysock5.c: undefined r
eference to
C:\DOCUME~1\Shellmy\LOCALS~1\Temp/ccILaaaa.o(.text+0x802):mysock5.c: undefined r
eference to
C:\DOCUME~1\Shellmy\LOCALS~1\Temp/ccILaaaa.o(.text+0x836):mysock5.c: undefined r
eference to
C:\DOCUME~1\Shellmy\LOCALS~1\Temp/ccILaaaa.o(.text+0x872):mysock5.c: undefined r
eference to
C:\DOCUME~1\Shellmy\LOCALS~1\Temp/ccILaaaa.o(.text+0x8c8):mysock5.c: undefined r
eference to
C:\DOCUME~1\Shellmy\LOCALS~1\Temp/ccILaaaa.o(.text+0x950):mysock5.c: undefined r
eference to
C:\DOCUME~1\Shellmy\LOCALS~1\Temp/ccILaaaa.o(.text+0xa85):mysock5.c: undefined r
eference to
C:\DOCUME~1\Shellmy\LOCALS~1\Temp/ccILaaaa.o(.text+0xb78):mysock5.c: undefined r
eference to
C:\DOCUME~1\Shellmy\LOCALS~1\Temp/ccILaaaa.o(.text+0xc46):mysock5.c: undefined r
eference to
C:\DOCUME~1\Shellmy\LOCALS~1\Temp/ccILaaaa.o(.text+0xcc6):mysock5.c: undefined r
eference to
改为 gcc mysock5.c -lws2_32就行了
阅读(1820) | 评论(0) | 转发(0) |