From: anon@anon.org (anon)
Subject: Re: Creating mixed language static libraries with gpr files?
Date: Tue, 03 Mar 2009 18:21:43 GMT
Date: 2009-03-03T18:21:43+00:00 [thread overview]
Message-ID: <Xyerl.45202$4m1.16570@bgtnsc05-news.ops.worldnet.att.net> (raw)
In-Reply-To: goiv0s$j58$1@nntp.ilk.net
-- This might work. It based on my design of a gpr to build libgnat
--
-- to build lib
-- gnatmake -Pfoo.gpr -x
--
--
project foo is
for Source_Dirs use ( "asrc", "csrc" ) ; -- for source in two dir
-- ada = asrc
-- c = csrc
for Object_Dir use "obj" ;
for Library_Dir use "./lib" ;
for Library_Name use "foo" ;
for Library_Kind use "static" ;
package Compiler is
for Default_Switches ( "Ada" ) use ( "" ) ;
for Default_Switches ( "C" ) use ( "" ) ;
end Compiler ;
end foo ;
In <goiv0s$j58$1@nntp.ilk.net>, Markus Schoepflin <nospam@no.spam> writes:
>Using gcc 4.3.3, I'm trying to create a static library that contains both
>object files created from Ada and C.
>
>The gpr file to create the library (only using the Ada parts) looks like this:
>
>---%<---
>project foo is
>
> for source_dirs use ("src");
> for object_dir use "obj";
>
> for library_name use "foo";
> for library_dir use "./lib";
> for library_kind use "static";
>
>end foo;
>--->%---
>
>Now I have a few object files built from C sources. Is it possibly to use
>the gnat project file to create the static library including those object
>files?
>
>Markus
next prev parent reply other threads:[~2009-03-03 18:21 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-03 9:58 Creating mixed language static libraries with gpr files? Markus Schoepflin
2009-03-03 12:07 ` Ludovic Brenta
2009-03-03 14:49 ` Markus Schoepflin
2009-03-03 15:06 ` Alex R. Mosteo
2009-03-03 15:35 ` Ludovic Brenta
2009-03-03 20:57 ` sjw
2009-03-04 10:55 ` Ludovic Brenta
2009-03-04 19:34 ` sjw
2009-03-04 19:44 ` Ludovic Brenta
2009-03-03 15:14 ` britt.snodgrass
2009-03-03 18:29 ` Ludovic Brenta
2009-03-03 18:21 ` anon [this message]
2009-03-04 8:37 ` Markus Schoepflin
2009-03-04 16:05 ` Robert A Duff
2009-03-04 8:41 ` Vadim Godunko
2009-03-04 16:58 ` anhvofrcaus
2009-03-04 18:10 ` Ludovic Brenta
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox