Bonjour Vincent, voila mon petit soucis.

J'ai crée un fichier oracle.c avec le code suivant (exemple dans votre doc):

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
int main(int argc, char* argv[])
{
  OCI_Connection *cn;
 
  if (!OCI_Initialize(NULL, NULL, OCI_ENV_DEFAULT))
    return EXIT_FAILURE;
 
  cn = OCI_ConnectionCreate("db", "usr", "pwd", OCI_SESSION_DEFAULT);
 
  if (cn != NULL)
  {
    printf(OCI_GetVersionServer(cn));
    printf("Server major version : %i\n", OCI_GetServerMajorVersion(cn));
    printf("Server minor version : %i\n", OCI_GetServerMinorVersion(cn));
    printf("Server revision version : %i\n", OCI_GetServerRevisionVersion(cn));
    printf("Connection version : %i\n", OCI_GetVersionConnection(cn));
    OCI_ConnectionFree(cn);
  }
 
  OCI_Cleanup();
 
  return EXIT_SUCCESS;
}
Ma ligne de compilation est la suivante:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
/usr/vacpp/bin/xlC_r -qlanglvl=extc89 -+ -O -g  -I/applis/dsgu/datastage/data/lib/fgu/ocilib-3.1.0/doc_lib/include -DOCI_IMPORT_LINKAGE -DOCI_CHARSET_ANSI -L/produits/oracle/10204/products/lib32 -lclntsh  -L/applis/dsgu/datastage/data/lib/fgu/ocilib-3.1.0/doc_lib/lib -locilib -c oracles.c -o oracles.o
et 
/usr/vacpp/bin/xlC_r -qlanglvl=extc89 -G -qmkshrobj=1000 oracles.o -o oracles
J'ai installé le produit avec les options suivantes:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
./configure --prefix='/applis/dsgu/datastage/data/lib/fgu/ocilib-3.1.0/doc_lib' '--with-oracle-home=/produits/oracle/10204/products' '--with-oracle-headers-path=/produits/oracle/10204/products/rdbms/public' '--with-oracle-lib-path=/produits/oracle/10204/products/lib32' '--with-oracle-lib64=no' '--with-oracle-lib-path=/produits/oracle/10204/products/lib32'
A priori tout s'est correctement déroulé.
Le binaire oracle généré renvoie l'erreur suivante:
exec(): 0509-036 Cannot load program oracles because of the following errors:
0509-151 The program does not have an entry point or
the o_snentry field in the auxiliary header is invalid.
0509-194 Examine file headers with the 'dump -ohv' command.

J'ai l'impression que mes lignes de compilations (à l'édition de lien) ne sont pas bonnes.

Merci pour votre aide.
Cdt.
Farid.