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,733d3008a29a0c63,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.germany.com!news.space.net!news.m-online.net!news1.nefonline.de!not-for-mail From: "Alexander Camek" Newsgroups: comp.lang.ada Subject: Using Functions of Executable Date: Thu, 22 Nov 2007 10:18:09 +0100 Organization: NEFkom - Mnet Telekommunikations GmbH Message-ID: NNTP-Posting-Host: pleione.3soft.de X-Trace: news1.nefonline.de 1195723082 17308 212.114.211.8 (22 Nov 2007 09:18:02 GMT) X-Complaints-To: usenet@news1.nefonline.de NNTP-Posting-Date: Thu, 22 Nov 2007 09:18:02 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-NNTP-Posting-Host: 10.1.1.39 Xref: g2news1.google.com comp.lang.ada:18560 Date: 2007-11-22T10:18:09+01:00 List-Id: Hi all, I have got an executable generated with gnatmake. And a lot of modules using some functions of the executable. Now all these modules are generated as libraries and used during run-time. Okay this works fine under Linux, but under Windows i got stucked. My Problem is that I can't export the functions given in my executable, although all exported functions in the executable are decorated with pragma Export(C, , ). What I have tried is to use -Wl,--export-dynamics,--out-implib,.lib, but with this option i don't get any .lib file to link my Dll against. And if i use the opiton -Wl,--export-all-symbols every symbol even not from libraries my executable is linked against. I also combined the last option with -Wl,--exclude-libs,ALL but that doesn't help. Extend to that I now, that all works fine with .gpr files, there i only use the first linker option. But I don't want to use them anymore, to make the build more transparent. Anybody an idea. I am really stucked. Thanks to all. Greetings Alexander