[AWS] Libraries

Dmitriy Anisimkov anisimkov at ada-ru.org
Fri Aug 11 13:01:48 CEST 2006


Jessica Fléchet wrote:

> I would really appreciate help concerning my linker problem. I am
> using GNAT PRO 5.01a and AWS2.0 and here is my output when I compile
> my program:
>
> gnatbind -aO./ -Ic:\projects\AWS\lib -Ic:\projects\AWS\components
> -Ic:\projects\AWS\include -I- -x awsuls.ali
> gnatlink awsuls.ali -Lc:\projects\AWS\lib -Lc:\projects\AWS\components
> -Lc:\projects\AWS\include -lwsock32 -laws
> c:\projects\AWS\lib/libaws.a(poll.o)(.text+0x24c):poll.adb: undefined
> reference to `select at 20'
> c:\projects\AWS\lib/libaws.a(poll.o)(.text+0x2aa):poll.adb: undefined
> reference to `__WSAFDIsSet at 8'
> c:\projects\AWS\lib/libaws.a(poll.o)(.text+0x2f8):poll.adb: undefined
> reference to `__WSAFDIsSet at 8'
> c:\projects\AWS\lib/libaws.a(poll.o)(.text+0x33a):poll.adb: undefined
> reference to `__WSAFDIsSet at 8'
> C:\GNATPRO\5.01a\lib\gcc-lib\pentium-mingw32msv\3.2.3\adalib\libgnat.a(g-socthi.o)(.text+0x83d):g-socthi.adb:
> undefined reference to `WSASetLastError at 4'
> C:\GNATPRO\5.01a\lib\gcc-lib\pentium-mingw32msv\3.2.3\adalib\libgnat.a(g-socthi.o)(.text+0x8ef):g-socthi.adb:
> undefined reference to `select at 20'
> C:\GNATPRO\5.01a\lib\gcc-lib\pentium-mingw32msv\3.2.3\adalib\libgnat.a(g-socket.o)(.text+0x11f2):g-socket.adb:
> undefined reference to `ioctlsocket at 12'
> C:\GNATPRO\5.01a\lib\gcc-lib\pentium-mingw32msv\3.2.3\adalib\libgnat.a(g-socket.o)(.text+0x12dd):g-socket.adb:
> undefined reference to `getsockname at 12'
> C:\GNATPRO\5.01a\lib\gcc-lib\pentium-mingw32msv\3.2.3\adalib\libgnat.a(g-socket.o)(.text+0x1618):g-socket.adb:
> undefined reference to `gethostbyaddr at 12'
> C:\GNATPRO\5.01a\lib\gcc-lib\pentium-mingw32msv\3.2.3\adalib\libgnat.a(g-socket.o)(.text+0x174e):g-socket.adb:
> undefined reference to `gethostbyname at 4'
> C:\GNATPRO\5.01a\lib\gcc-lib\pentium-mingw32msv\3.2.3\adalib\libgnat.a(g-socket.o)(.text+0x184d):g-socket.adb:
> undefined reference to `getpeername at 12'
> C:\GNATPRO\5.01a\lib\gcc-lib\pentium-mingw32msv\3.2.3\adalib\libgnat.a(g-socket.o)(.text+0x1989):g-socket.adb:
> undefined reference to `getservbyname at 8'
> C:\GNATPRO\5.01a\lib\gcc-lib\pentium-mingw32msv\3.2.3\adalib\libgnat.a(g-socket.o)(.text+0x1a76):g-socket.adb:
> undefined reference to `getservbyport at 8'
> C:\GNATPRO\5.01a\lib\gcc-lib\pentium-mingw32msv\3.2.3\adalib\libgnat.a(g-socket.o)(.text+0x1b80):g-socket.adb:
> undefined reference to `getsockname at 12'
> C:\GNATPRO\5.01a\lib\gcc-lib\pentium-mingw32msv\3.2.3\adalib\libgnat.a(g-socket.o)(.text+0x1d7d):g-socket.adb:
> undefined reference to `getsockopt at 20'
> C:\GNATPRO\5.01a\lib\gcc-lib\pentium-mingw32msv\3.2.3\adalib\libgnat.a(g-socket.o)(.text+0x202e):g-socket.adb:
> undefined reference to `gethostname at 8'
> C:\GNATPRO\5.01a\lib\gcc-lib\pentium-mingw32msv\3.2.3\adalib\libgnat.a(socket.o)(.text+0xff):socket.c:
> undefined reference to `__WSAFDIsSet at 8'
> gnatmake: *** link failed.
>
>
> Can someone tell me what command line he enters?

He !?
You should ask him about command line. I could help to fix wrong command
line. But I could not guess wrong command line for such error.



More information about the AWS mailing list