From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,90bac00a68db7545,start X-Google-Attributes: gid103376,public From: "Frans Bouwmans" Subject: linking problem when using sockets with gnat 3.10p1 for NT Date: 1998/07/22 Message-ID: <6p5k11$iof$1@cadmium.aware.nl>#1/1 X-Deja-AN: 373965232 Organization: NL-NIC X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Newsgroups: comp.lang.ada Date: 1998-07-22T00:00:00+00:00 List-Id: I'm trying to use sockets in ada with gnat 3.10 I used glade as an example for calling to windows socket calls however I get problems with linking This is a part of the code showing the problem -- with interfaces.c; pragma Linker_Options ("-lwsock32"); procedure test_sock is package c renames interfaces.c; package net is function C_Listen (S, Backlog : C.int) return C.int; private pragma Import (C, C_Listen, "listen"); end net; s,backlog,result : C.int; begin result := net.C_Listen(s,backlog); end test_sock; -- this program compiles correctly but does not link it gives the following error: gnatlink test_sock.ali -lwsock32 ./test_sock.o: In function `ada_test_sock': //C/USR/ada/l11/test_sock.adb:17: undefined reference to `listen' the linker can find the libwsock32.a because when i change the name it cannot find it Frans