comp.lang.ada
 help / color / mirror / Atom feed
* GNAT 2009, Windows and system libraries
@ 2010-02-10 11:13 Maciej Sobczak
  2010-02-10 11:40 ` Hibou57 (Yannick Duchêne)
  2010-02-10 15:21 ` Maciej Sobczak
  0 siblings, 2 replies; 5+ messages in thread
From: Maciej Sobczak @ 2010-02-10 11:13 UTC (permalink / raw)


I have a problem writing a proper .gpr file for a project that is
composed of Ada and C++ code and that uses Windows socket API.
I have no problem linking Ada with the C++ library, the problem is
with system library known as Ws2_32.lib.

When compiling a similar project with a C++ compiler, it is enough to
add Ws2_32.lib to the compiler invocation command and it just works.
I cannot, however, find a proper way of doing it with Ada projects.

This is my try (Ws2_32.gpr):

project Ws2_32 is
   for Externally_Built use "true";
   for Source_Dirs use ();
   for Library_Dir use "C:\Program Files\Microsoft SDKs\Windows\v6.0A
\Lib";
   for Library_Name use "Ws2_32";
   for Library_Kind use "dynamic";
end Ws2_32;

This .gpr file is "withed" by the project file of the final Ada
program. This approach works for my own libraries, but is ineffective
with the system library and gnatlink reports zillions of unresolved
references.

Any feedback is welcome.

--
Maciej Sobczak * www.msobczak.com * www.inspirel.com



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-10 15:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-10 11:13 GNAT 2009, Windows and system libraries Maciej Sobczak
2010-02-10 11:40 ` Hibou57 (Yannick Duchêne)
2010-02-10 15:21 ` Maciej Sobczak
2010-02-10 15:35   ` Maciej Sobczak
2010-02-10 15:45     ` Ludovic Brenta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox