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,186be114d7875a3a X-Google-Attributes: gid103376,public From: jerry@jvdsys.nextjk.stuyts.nl (Jerry van Dijk) Subject: Re: new problems with win32ada Date: 1998/07/30 Message-ID: #1/1 X-Deja-AN: 376567008 References: <35C02D65.9DFF59E9@newtech.it> Organization: * JerryWare *, Leiden, Holland Newsgroups: comp.lang.ada Date: 1998-07-30T00:00:00+00:00 List-Id: Alessandro (busato@newtech.it) wrote: : I've compiled win32ada with patch and renaming win32ada.a to : libwin32ada.a, gnatlink gives me a lot of "undefined reference : to " (examples undefinite reference to sendmessage, invalidaterect etc.) : etc.. Why? The Windows/NT operating system is build up of DLL's. The most basic one, kernel32.dll, is automatically linked in. Others need to be linked in specifically. The Win32 documentation will tell you in what DLL a given function is located. Than you need to link with the import library for that DLL to use it. Note that to compile a GUI program, you also have to add specific linker instructions. If you download the basic Win32ada example from my homepage you can see how this is done. -- -- Jerry van Dijk | email: jdijk@acm.org -- Leiden, Holland | member Team-Ada -- Ada & Win32: http://stad.dsl.nl/~jvandyk