Hello, je suis en train de porter un soft en ada de linux à macosx. La partie ada c'est bon, j'ai eu quelques petites choses à modifier, entre autres à cause de la différence entre adaopengl osx et linux.
J'ai obtenu que la compilation se fasse sans problème, le linking aussi. Mais lorsque je lance le programme, la fenêtre opengl se referme aussitôt..... Il n'y a aucune erreur ni warning à la compile.
En compilant par terminal avec gcc j'obtiens ça:
<font class="small">Code:</font><hr /><pre> /var/tmp//ccc9KqjL.s:1375:non-relocatable subtraction expression, "_p_maquette__display__fenetreTKE" minus "L00000000014$pb"
/var/tmp//ccc9KqjL.s:1375:symbol: "_p_maquette__display__fenetreTKE" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:1374:non-relocatable subtraction expression, "_p_maquette__display__fenetreTKE" minus "L00000000014$pb"
/var/tmp//ccc9KqjL.s:1374:symbol: "_p_maquette__display__fenetreTKE" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:76:non-relocatable subtraction expression, "_p_maquette__display__fenetreTKE" minus "L00000000001$pb"
/var/tmp//ccc9KqjL.s:76:symbol: "_p_maquette__display__fenetreTKE" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:75:non-relocatable subtraction expression, "_p_maquette__display__fenetreTKE" minus "L00000000001$pb"
/var/tmp//ccc9KqjL.s:75:symbol: "_p_maquette__display__fenetreTKE" can't be undefined in a subtraction expression
No code generated for file p_maquette-display.ads (package spec)
/var/tmp//ccc9KqjL.s:31784:non-relocatable subtraction expression, "_p_maquette__agrandirfenetre" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31784:symbol: "_p_maquette__agrandirfenetre" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:31783:non-relocatable subtraction expression, "_p_maquette__agrandirfenetre" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31783:symbol: "_p_maquette__agrandirfenetre" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:31779:non-relocatable subtraction expression, "_p_maquette__cpt_locos" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31779:symbol: "_p_maquette__cpt_locos" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:31778:non-relocatable subtraction expression, "_p_maquette__cpt_locos" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31778:symbol: "_p_maquette__cpt_locos" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:31760:non-relocatable subtraction expression, "_p_maquette__cpt_locos" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31760:symbol: "_p_maquette__cpt_locos" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:31759:non-relocatable subtraction expression, "_p_maquette__cpt_locos" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31759:symbol: "_p_maquette__cpt_locos" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:31748:non-relocatable subtraction expression, "_p_maquette__cpt_locos" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31748:symbol: "_p_maquette__cpt_locos" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:31747:non-relocatable subtraction expression, "_p_maquette__cpt_locos" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31747:symbol: "_p_maquette__cpt_locos" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:31745:non-relocatable subtraction expression, "_p_maquette__cpt_locos" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31745:symbol: "_p_maquette__cpt_locos" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:31742:non-relocatable subtraction expression, "_p_maquette__cpt_locos" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31742:symbol: "_p_maquette__cpt_locos" can't be undefined in a subtraction expression
No code generated for file p_maquette.ads (package spec)
/var/tmp//ccc9KqjL.s:112918:non-relocatable subtraction expression, "_p_section__bool_io__default_widthX" minus "L00000000063$pb"
/var/tmp//ccc9KqjL.s:112918:symbol: "_p_section__bool_io__default_widthX" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:112917:non-relocatable subtraction expression, "_p_section__bool_io__default_widthX" minus "L00000000063$pb"
/var/tmp//ccc9KqjL.s:112917:symbol: "_p_section__bool_io__default_widthX" can't be undefined in a subtraction expression </pre><hr />
On me dit qu'il faut que je sorte la partie opengl de mes packages et que je la mette dans le programme principal, mais je ne pense pas que ce soit lameilleure solution. J'ai pu faire tourner ce programe sur une debian i686 sans aucun problème... qqun a une idée?
J'ai obtenu que la compilation se fasse sans problème, le linking aussi. Mais lorsque je lance le programme, la fenêtre opengl se referme aussitôt..... Il n'y a aucune erreur ni warning à la compile.
En compilant par terminal avec gcc j'obtiens ça:
<font class="small">Code:</font><hr /><pre> /var/tmp//ccc9KqjL.s:1375:non-relocatable subtraction expression, "_p_maquette__display__fenetreTKE" minus "L00000000014$pb"
/var/tmp//ccc9KqjL.s:1375:symbol: "_p_maquette__display__fenetreTKE" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:1374:non-relocatable subtraction expression, "_p_maquette__display__fenetreTKE" minus "L00000000014$pb"
/var/tmp//ccc9KqjL.s:1374:symbol: "_p_maquette__display__fenetreTKE" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:76:non-relocatable subtraction expression, "_p_maquette__display__fenetreTKE" minus "L00000000001$pb"
/var/tmp//ccc9KqjL.s:76:symbol: "_p_maquette__display__fenetreTKE" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:75:non-relocatable subtraction expression, "_p_maquette__display__fenetreTKE" minus "L00000000001$pb"
/var/tmp//ccc9KqjL.s:75:symbol: "_p_maquette__display__fenetreTKE" can't be undefined in a subtraction expression
No code generated for file p_maquette-display.ads (package spec)
/var/tmp//ccc9KqjL.s:31784:non-relocatable subtraction expression, "_p_maquette__agrandirfenetre" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31784:symbol: "_p_maquette__agrandirfenetre" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:31783:non-relocatable subtraction expression, "_p_maquette__agrandirfenetre" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31783:symbol: "_p_maquette__agrandirfenetre" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:31779:non-relocatable subtraction expression, "_p_maquette__cpt_locos" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31779:symbol: "_p_maquette__cpt_locos" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:31778:non-relocatable subtraction expression, "_p_maquette__cpt_locos" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31778:symbol: "_p_maquette__cpt_locos" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:31760:non-relocatable subtraction expression, "_p_maquette__cpt_locos" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31760:symbol: "_p_maquette__cpt_locos" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:31759:non-relocatable subtraction expression, "_p_maquette__cpt_locos" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31759:symbol: "_p_maquette__cpt_locos" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:31748:non-relocatable subtraction expression, "_p_maquette__cpt_locos" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31748:symbol: "_p_maquette__cpt_locos" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:31747:non-relocatable subtraction expression, "_p_maquette__cpt_locos" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31747:symbol: "_p_maquette__cpt_locos" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:31745:non-relocatable subtraction expression, "_p_maquette__cpt_locos" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31745:symbol: "_p_maquette__cpt_locos" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:31742:non-relocatable subtraction expression, "_p_maquette__cpt_locos" minus "L00000000075$pb"
/var/tmp//ccc9KqjL.s:31742:symbol: "_p_maquette__cpt_locos" can't be undefined in a subtraction expression
No code generated for file p_maquette.ads (package spec)
/var/tmp//ccc9KqjL.s:112918:non-relocatable subtraction expression, "_p_section__bool_io__default_widthX" minus "L00000000063$pb"
/var/tmp//ccc9KqjL.s:112918:symbol: "_p_section__bool_io__default_widthX" can't be undefined in a subtraction expression
/var/tmp//ccc9KqjL.s:112917:non-relocatable subtraction expression, "_p_section__bool_io__default_widthX" minus "L00000000063$pb"
/var/tmp//ccc9KqjL.s:112917:symbol: "_p_section__bool_io__default_widthX" can't be undefined in a subtraction expression </pre><hr />
On me dit qu'il faut que je sorte la partie opengl de mes packages et que je la mette dans le programme principal, mais je ne pense pas que ce soit lameilleure solution. J'ai pu faire tourner ce programe sur une debian i686 sans aucun problème... qqun a une idée?