Hello, the error I obtain is "'undefined reference to __gnat_eh_personality'" and I obtain it once the .a is formed using, first the ada library and later the c library including the ada library. The final link, with the main program finds the problem. It seems like an internal reference created during the compilation was not correctly added to the .a, so the final link is impossible. I know the way of doing everything is not the most accurate, I mean to Ada to get a library and then build a new library in C with an Ada library embedded, but it is the exact structure I need. Thanks Amittai Aviram wrote: > > On Jul 29, 2009, at 4:51 AM, Rau wrote: > >> >> Hello, I want to compile a project consisting on an Ada body file >> (and its >> specification), an C body file (and its specification) and a C file >> with the >> main entry to the program. >> >> [...] > >> Maybe am I missing a flag when binding the Ada code ... >> >> Can somebody help me ... >> >> Thanks. >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-link-an-ADA-and-C-library-tp24715044p24715044.html > > > What kind of error messages are you getting? > > Amittai Aviram > Graduate Student in Computer Science > Yale University > 646 483 2639 > amittai.aviram@xxxxxxxx > http://www.amittai.com > > > > > -- View this message in context: http://www.nabble.com/How-to-link-an-ADA-and-C-library-tp24715044p24728793.html Sent from the gcc - Help mailing list archive at Nabble.com.