accès aux groupes de discussion, consultation et publication d'articles, recherche de "newsgroups"...
membres, identifiez-vous
é-mail Mot de passe
nouveau ? mot de passe oublié ?
Chargement... Chargement en cours...

Groupes français belges canadiens suisses internationaux Nétiquette
Échangez opinions et commentaires dans les forums de discussion.

Ada library for interfcaing Ada with C

 [  Nouvelle Discussion Nouvelle discussion  |  Répondre au groupe Répondre au groupe  |  fr.comp.lang.ada ] 

Retour : Accueil du site fr comp lang ada   charte stats de ce groupe


  Sujet:   Ada library for interfcaing Ada with C  
 De: david-mam...@hotmail.fr
 Groupes: fr.comp.lang.ada
 Organisation: http://groups.google.com
 Date: 18. Dec 2007, 05:02:14
Hello everybody !!!

I have to interface ADA with C and I would like to create an ADA
library.
I read the gnat manual and it is said that i can use gnatmake and a
project library.
So I use gnatmake:
$  gnatmake -Pmy_lib.gpr

I get the following message:

powerpc-eabispe-gnatbind -n -o b~lib.adb -Llib prog1.ali prog2.ali
powerpc-eabispe-gcc -c b~lib.adb

building static library for project my_lib
powerpc-eabispegnatmake:  powerpc-elf-ar not found in path.


In fact I haven't powerpc-elf-ar on my computer, so i created a link
to it with :
ln -s powerpc-eabispe-ar powerpc-elf-ar
But the problem is the same and all my PATH are good.

My project library my_lib.gpr

/******** Library project*****/
project My_Lib is
  for Source_Dirs use ("SRC");
  for Object_Dir use "CGN";
  for Library_Name use "lib";
  for Library_Dir use "LIB";
  for Library_Kind use "static";
end My_lib;



Because it didn't work, i tried to create a library with the following
command:
powerpc-eabispe-ar rc libmy_lib.a prog1.o prog2.o

but there is an other problem because gnatlink ask me to supply an ALI
file which has a corresponding bind file so I can't create an
executable.
Could you say me how must I use a library file with gnatlink (which
command use) ?

I forgot to say you I use Cygwin a Unix emulator.


DateSujet  Auteur
18.12.
o   Ada library for inte
david-mamour
Groups Explorer contact votre avis comment ça marche? rechercher un groupe suggérer un groupe abuse accueil du site   Imprimer cette page   Envoyer cette page à un(e) ami(e)