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=0.6 required=5.0 tests=BAYES_00,FROM_WORDY,XPRIO autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1e18e59d68dcb061,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed-0.progon.net!progon.net!newsfeed.freenet.de!news.osn.de!diablo1.news.osn.de!noris.net!news1.nefonline.de!not-for-mail From: "Alexander Camek" Newsgroups: comp.lang.ada Subject: Undefined reference to glib_E Date: Mon, 26 Mar 2007 12:35:36 +0200 Organization: NEFkom - Mnet Telekommunikations GmbH Message-ID: NNTP-Posting-Host: pleione.3soft.de X-Trace: news1.nefonline.de 1174905335 7393 212.114.211.8 (26 Mar 2007 10:35:35 GMT) X-Complaints-To: usenet@news1.nefonline.de NNTP-Posting-Date: Mon, 26 Mar 2007 10:35:35 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original X-NNTP-Posting-Host: 10.1.1.39 Xref: g2news1.google.com comp.lang.ada:14639 Date: 2007-03-26T12:35:36+02:00 List-Id: Hi all, currently I am porting a linux application to windows. Under Linux all compiles fine, but during compilation or better linking I get always a undefined reference to glib_E under windows. I use the gpl version dated to 2006 in order to compile the project with commandline argument: gnatmake -Pimages.gpr The project file looks like this: -- -*- mode: Ada;-*- with "common"; with "framework"; project images is for Library_Name use "images"; for Library_Dir use "lib"; for Object_Dir use "obj"; for Library_Kind use "dynamic"; for Source_Dirs use (".", "bind"); for Languages use ("Ada", "C"); for Library_Interface use ("base_images", "generic_images", "images"); package Linker renames Common.Linker; package Compiler renames Common.Compiler; package Builder renames Common.Builder; package Ide renames Common.Ide; end images; When I do a static linking, everything works fine, but the dynamic linkage has this undefined reference. The Ada_Project_Path, Ada_Include_Path and Ada_Objects_Path is set to point to the .a files of GtkAda and the GtkAda\bin path is set before the Gnat\bin path in the enviroment PATH. Also other project files using Gtkada are compiling correct, but they only use "for Languages use ("Ada")". The common project contains the gtkada project. Did I forget to set some switch? Or have i set something wrong? What I am confused about is that in the user manual of gnat it is set: "F.10 Building DLLs with GNAT Project files There is nothing specific to Windows in this area" Thanks for any information you can give me in order to point me to the right direction. Greetings Alexander