IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Interfaces de programmation Oracle Discussion :

[OCILIB] Problème de compilation


Sujet :

Interfaces de programmation Oracle

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Inscrit en
    Février 2003
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Février 2003
    Messages : 18
    Par défaut [OCILIB] Problème de compilation
    Bonjour,
    j'essaye de compiler sans succès OCILIB
    Je travaille sur une Fedora Core 4 (mais j'ai exactement le même soucis sous une Centos 4) .
    Le configure passe mais quand je lance le make c'est le drame :

    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
    25
    26
    27
    28
    29
     
     
    [oracle@fr-31-01-06-820 ocilib-3.4.0]$ make
    make  all-recursive
    make[1]: Entering directory `/home/oracle/ocilib-3.4.0'
    Making all in doc/html
    make[2]: Entering directory `/home/oracle/ocilib-3.4.0/doc/html'
    make[2]: Rien Ã* faire pour « all ».
    make[2]: Leaving directory `/home/oracle/ocilib-3.4.0/doc/html'
    Making all in src
    make[2]: Entering directory `/home/oracle/ocilib-3.4.0/src'
    /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/opt/oracle/920/rdbms/public -I../include   -DOCI_IMPORT_LINKAGE -DOCI_CHARSET_ANSI   -g -O2 -MT libocilib_la-bind.lo -MD -MP -MF .deps/libocilib_la-bind.Tpo -c -o libocilib_la-bind.lo `test -f 'bind.c' || echo './'`bind.c
    mkdir .libs
     gcc -DHAVE_CONFIG_H -I. -I.. -I/opt/oracle/920/rdbms/public -I../include -DOCI_IMPORT_LINKAGE -DOCI_CHARSET_ANSI -g -O2 -MT libocilib_la-bind.lo -MD -MP -MF .deps/libocilib_la-bind.Tpo -c bind.c  -fPIC -DPIC -o .libs/libocilib_la-bind.o
    In file included from ocilib_defs.h:39,
                     from ocilib_types.h:39,
                     from ocilib_internal.h:38,
                     from bind.c:35:
    oci_import.h:49:17: error: oci.h: No such file or directory
    oci_import.h:50:18: error: orid.h: No such file or directory
    oci_import.h:51:20: error: oci8dp.h: No such file or directory
    In file included from ocilib_internal.h:38,
                     from bind.c:35:
    ocilib_types.h:81: error: syntax error before 'ub4'
    ocilib_types.h:81: warning: no semicolon at end of struct or union
    ocilib_types.h:83: error: syntax error before '}' token
    ocilib_types.h:94: error: syntax error before 'ub1'
     
    (... ca continue pendant 3 pages..)
    Une piste? il me manque un prérequis?

    Merci d'avance

  2. #2
    Rédacteur
    Avatar de Vincent Rogier
    Profil pro
    Inscrit en
    Juillet 2007
    Messages
    2 373
    Détails du profil
    Informations personnelles :
    Âge : 47
    Localisation : France

    Informations forums :
    Inscription : Juillet 2007
    Messages : 2 373
    Par défaut
    oci_import.h:49:17: error: oci.h: No such file or directory
    cela signifie que les fichiers d'entête OCI ne sont pas trouvé par le compilateur...

    Fais une recherche du répertoire ou se trouve oci.h...
    Vincent Rogier.

    Rubrique ORACLE : Accueil - Forum - Tutoriels - FAQ - Livres - Blog

    Vous voulez contribuer à la rubrique Oracle ? Contactez la rubrique !

    OCILIB (C Driver for Oracle)

    Librairie C Open Source multi-plateformes pour accéder et manipuler des bases de données Oracle

  3. #3
    Membre averti
    Inscrit en
    Février 2003
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Février 2003
    Messages : 18
    Par défaut
    un petit find . -name 'oci.h' dans le $ORACLE_HOME me donne :
    ./rdbms/demo/oci.h

  4. #4
    Rédacteur
    Avatar de Vincent Rogier
    Profil pro
    Inscrit en
    Juillet 2007
    Messages
    2 373
    Détails du profil
    Informations personnelles :
    Âge : 47
    Localisation : France

    Informations forums :
    Inscription : Juillet 2007
    Messages : 2 373
    Par défaut
    bon, c'est de l'oracle 9.2 qui selon les plateformes avait les headers dans rdbms/demo au lieu de /rdbms/public...

    refait un configure comme ceci :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    ./configure --with-oracle-headers-path=$ORACLE_HOME/rdbms/demo
    Vincent Rogier.

    Rubrique ORACLE : Accueil - Forum - Tutoriels - FAQ - Livres - Blog

    Vous voulez contribuer à la rubrique Oracle ? Contactez la rubrique !

    OCILIB (C Driver for Oracle)

    Librairie C Open Source multi-plateformes pour accéder et manipuler des bases de données Oracle

  5. #5
    Membre averti
    Inscrit en
    Février 2003
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Février 2003
    Messages : 18
    Par défaut
    c'est fait.

    l'erreur change

    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
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
     
    Making check in src
    make[1]: Entering directory `/home/oracle/ocilib-3.4.0/src'
    /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/opt/oracle/920/rdbms/demo -I../include   -DOCI_IMPORT_LINKAGE -DOCI_CHARSET_ANSI   -g -O2 -MT libocilib_la-bind.lo -MD -MP -MF .deps/libocilib_la-bind.Tpo -c -o libocilib_la-bind.lo `test -f 'bind.c' || echo './'`bind.c
    mkdir .libs
     gcc -DHAVE_CONFIG_H -I. -I.. -I/opt/oracle/920/rdbms/demo -I../include -DOCI_IMPORT_LINKAGE -DOCI_CHARSET_ANSI -g -O2 -MT libocilib_la-bind.lo -MD -MP -MF .deps/libocilib_la-bind.Tpo -c bind.c  -fPIC -DPIC -o .libs/libocilib_la-bind.o
    In file included from oci_import.h:49,
                     from ocilib_defs.h:39,
                     from ocilib_types.h:39,
                     from ocilib_internal.h:38,
                     from bind.c:35:
    /opt/oracle/920/rdbms/demo/oci.h:2159:21: error: ociextp.h: No such file or directory
    In file included from /opt/oracle/920/rdbms/demo/oci.h:2164,
                     from oci_import.h:49,
                     from ocilib_defs.h:39,
                     from ocilib_types.h:39,
                     from ocilib_internal.h:38,
                     from bind.c:35:
    /opt/oracle/920/rdbms/demo/ociap.h:192:17: error: nzt.h: No such file or directory
    In file included from /opt/oracle/920/rdbms/demo/oci.h:2164,
                     from oci_import.h:49,
                     from ocilib_defs.h:39,
                     from ocilib_types.h:39,
                     from ocilib_internal.h:38,
                     from bind.c:35:
    /opt/oracle/920/rdbms/demo/ociap.h:6607: error: syntax error before 'nzttWallet'
    /opt/oracle/920/rdbms/demo/ociap.h:6611: error: syntax error before 'nzttWallet'
    /opt/oracle/920/rdbms/demo/ociap.h:6619: error: syntax error before 'nzttWallet'
    /opt/oracle/920/rdbms/demo/ociap.h:6630: error: syntax error before 'nzttPersona'
    /opt/oracle/920/rdbms/demo/ociap.h:6635: error: syntax error before 'nzttPersona'
    /opt/oracle/920/rdbms/demo/ociap.h:6639: error: syntax error before 'nzttPersona'
    /opt/oracle/920/rdbms/demo/ociap.h:6643: error: syntax error before 'nzttPersona'
    (...)
    /opt/oracle/920/rdbms/demo/ociap.h:6884: error: syntax error before 'nzttIdentity'
    In file included from /opt/oracle/920/rdbms/demo/oci.h:2179,
                     from oci_import.h:49,
                     from ocilib_defs.h:39,
                     from ocilib_types.h:39,
                     from ocilib_internal.h:38,
                     from bind.c:35:
    /opt/oracle/920/rdbms/demo/ocixad.h:73: error: syntax error before 'OCIExtProcContext'
    /opt/oracle/920/rdbms/demo/ocixad.h:78: error: syntax error before 'OCIExtProcContext'
    /opt/oracle/920/rdbms/demo/ocixad.h:83: error: syntax error before 'OCIExtProcContext'
    /opt/oracle/920/rdbms/demo/ocixad.h:89: error: syntax error before 'OCIExtProcContext'
    /opt/oracle/920/rdbms/demo/ocixad.h:92: error: syntax error before 'OCIExtProcContext'
    /opt/oracle/920/rdbms/demo/ocixad.h:95: error: syntax error before 'OCIExtProcContext'
    /opt/oracle/920/rdbms/demo/ocixad.h:98: error: syntax error before 'OCIExtProcContext'
    /opt/oracle/920/rdbms/demo/ocixad.h:102: error: syntax error before 'OCIExtProcContext'
    /opt/oracle/920/rdbms/demo/ocixad.h:143: error: syntax error before 'OCIExtProcContext'
    make[1]: *** [libocilib_la-bind.lo] Erreur 1
    make[1]: Leaving directory `/home/oracle/ocilib-3.4.0/src'
    make: *** [check-recursive] Erreur 1
    le fichiers manquants dont dans rdbms/public, je les copie dans démo

  6. #6
    Membre averti
    Inscrit en
    Février 2003
    Messages
    18
    Détails du profil
    Informations forums :
    Inscription : Février 2003
    Messages : 18
    Par défaut
    bon, ca a compilé :-D

    reste plus qu'à tester...

    je dois faire des exports en fichier plats hyper performants (pour remplacer du cobol existant)

  7. #7
    Rédacteur
    Avatar de Vincent Rogier
    Profil pro
    Inscrit en
    Juillet 2007
    Messages
    2 373
    Détails du profil
    Informations personnelles :
    Âge : 47
    Localisation : France

    Informations forums :
    Inscription : Juillet 2007
    Messages : 2 373
    Par défaut
    bon, ta config orcle aurait besoin des deux dossiers public et demo ??

    le plus simple serait d'ajouter les deux répertoires dans l'environnement car le configure de ocilib ne prend q'une seul répertoire...
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    export CFLAGS="$CFLAGS -I$ORACLE_HOME/rdbms/public -I$ORACLE_HOME/rdbms/demo" 
    ./configure
    Vincent Rogier.

    Rubrique ORACLE : Accueil - Forum - Tutoriels - FAQ - Livres - Blog

    Vous voulez contribuer à la rubrique Oracle ? Contactez la rubrique !

    OCILIB (C Driver for Oracle)

    Librairie C Open Source multi-plateformes pour accéder et manipuler des bases de données Oracle

  8. #8
    Membre averti
    Homme Profil pro
    Architecte technique
    Inscrit en
    Août 2009
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 58
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Architecte technique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Août 2009
    Messages : 12
    Par défaut Compilation de OCILIB 3.4.0
    Bonjour, j'essaie de compiler la lib OCILIB 3.4.0 sur un AIX 5.2.0 avec Oracle 10.2.0.4 mais en vain pour l'instant!

    Dans un premier, je souhaite compiler et linker la librairie en mode debug et 32bits. Plus tard, j'aurais également besoin de disposer de la même librairie en mode release et 64bits.
    Ci dessous le détail des opérations menées :

    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
    25
    26
    27
    28
    29
     
    Environnement Oracle :
    ORACLE_BASE=/oracle
    ORACLE_HOME=/oracle/product/10.2.0.4
    ORACLE_SID=OSSBAI4S
     
    <<<@!1!@>>>
     
    Environnement système :
    LIBPATH=/usr/lib (sur AIX, cette variable joue le même rôle que LD_LIBRARY_PATH sous Solaris ou Linux)
     
    Compilateur C = gcc
    gcc (GCC) 3.3.2
    Copyright (C) 2003 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     
    Compilateur C++ = g++
    g++ (GCC) 3.3.2
    Copyright (C) 2003 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     
    Decompression de la librairie :
    gzip -dc ./ocilib-3.4.0-gnu.tar.gz | tar xf -
     
    Configuration de la librairie
    cd ./ocilib-3.4.0
    ./configure --with-oracle-headers-path=$ORACLE_HOME/rdbms/public --prefix=/home/axservf1/AI4S/libs
    Détail du configure ci-dessous :
    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
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    checking for a BSD-compatible install... config/install-sh -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... config/install-sh -c -d
    checking for gawk... no
    checking for mawk... no
    checking for nawk... nawk
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking for a BSD-compatible install... config/install-sh -c
    checking build system type... powerpc-ibm-aix5.2.0.0
    checking host system type... powerpc-ibm-aix5.2.0.0
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... no
    checking for /usr/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking whether ln -s works... yes
    checking how to recognize dependent libraries... pass_all
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking dependency style of g++... gcc3
    checking how to run the C++ preprocessor... g++ -E
    checking for g77... g77
    checking whether we are using the GNU Fortran 77 compiler... yes
    checking whether g77 accepts -g... yes
    checking the maximum length of command line arguments... 18432
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC...
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... aix5.2.0.0 ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... no
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    checking for ld used by g++... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... no
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking for g++ option to produce PIC...
    checking if g++ static flag -static works... yes
    checking if g++ supports -c -o file.o... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... aix5.2.0.0 ld.so
    checking how to hardcode library paths into programs... immediate
    appending configuration tag "F77" to libtool
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    checking for g77 option to produce PIC...
    checking if g77 static flag -static works... yes
    checking if g77 supports -c -o file.o... yes
    checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... aix5.2.0.0 ld.so
    checking how to hardcode library paths into programs... immediate
    checking for ranlib... (cached) ranlib
    checking for OCILIB install path... /home/axservf1/AI4S/libs
    checking for OCILIB version... v3.4.0
    checking for OCILIB options... import: linkage, charset = ansi
    checking for Oracle home... defined by environment : /oracle/product/10.2.0.4
    checking for Oracle OCI headers location... /oracle/product/10.2.0.4/rdbms/public
    checking for Oracle OCI shared lib location... /oracle/product/10.2.0.4/lib32
    checking for Oracle OCI shared lib name... libclntsh.so
    checking for OCI shared lib existence... yes
    configure: creating ./config.status
    config.status: creating README
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating doc/html/Makefile
    config.status: creating demo/Makefile
    config.status: creating demo/Makefile_demo
    config.status: creating config.h
    config.status: executing depfiles commands
    Et enfin, le résultat du make, je liste uniquement le début qui a mon est utile, le reste n'étant que des erreurs "induites" par la première:
    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
     
    rs42:/home/axservf1/AI4S/tools/ocilib-3.4.0> make
            make  all-recursive
    Making all in doc/html
    Target "all" is up to date.
    Making all in src
            /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/oracle/product/10.2.0.4/rdbms/public -I../include   -DOCI_IMPORT_LINKAGE -DOCI_CHARSET_ANSI   -g -O2 -MT libocilib_la-bind.lo -MD -MP -MF .deps/libocilib_la-bind.Tpo -c -o libocilib_la-bind.lo `test -f 'bind.c' || echo './'`bind.c
    mkdir .libs
     gcc -DHAVE_CONFIG_H -I. -I.. -I/oracle/product/10.2.0.4/rdbms/public -I../include -DOCI_IMPORT_LINKAGE -DOCI_CHARSET_ANSI -g -O2 -MT libocilib_la-bind.lo -MD -MP -MF .deps/libocilib_la-bind.Tpo -c bind.c  -DPIC -o .libs/libocilib_la-bind.o
    bind.c:35:29: ocilib_internal.h: Invalid argument
    bind.c:45: error: parse error before "OCI_BindFree"
    bind.c:45: error: parse error before '*' token
    bind.c: In function `OCI_BindFree':
    bind.c:47: error: `bnd' undeclared (first use in this function)
    bind.c:47: error: (Each undeclared identifier is reported only once
    bind.c:47: error: for each function it appears in.)
    bind.c:47: error: `TRUE' undeclared (first use in this function)
    Quelqu'un aurait une idée ?

  9. #9
    Rédacteur
    Avatar de Vincent Rogier
    Profil pro
    Inscrit en
    Juillet 2007
    Messages
    2 373
    Détails du profil
    Informations personnelles :
    Âge : 47
    Localisation : France

    Informations forums :
    Inscription : Juillet 2007
    Messages : 2 373
    Par défaut
    le compilo ne trouve pas le symbole OCI_Bind..

    Celui ci est definit dans ocilib.h... qui devrait être touvé par le compilo car on voit "-I../include" dans la ligne de commande .....

    hum... fait un cleanup et ressaie ?
    Vincent Rogier.

    Rubrique ORACLE : Accueil - Forum - Tutoriels - FAQ - Livres - Blog

    Vous voulez contribuer à la rubrique Oracle ? Contactez la rubrique !

    OCILIB (C Driver for Oracle)

    Librairie C Open Source multi-plateformes pour accéder et manipuler des bases de données Oracle

  10. #10
    Membre averti
    Homme Profil pro
    Architecte technique
    Inscrit en
    Août 2009
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 58
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Architecte technique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Août 2009
    Messages : 12
    Par défaut J'avais déjà essayé
    J'avais déjà essayer ce truc sans succès. Rien ne change :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
    rs42:/home/axservf1/AI4S/tools/ocilib-3.4.0/src> make all
            /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/oracle/product/10.2.0.4/rdbms/public -I../include   -DOCI_IMPORT_LINKAGE -DOCI_CHARSET_ANSI   -g -O2 -MT libocilib_la-bind.lo -MD -MP -MF .deps/libocilib_la-bind.Tpo -c -o libocilib_la-bind.lo `test -f 'bind.c' || echo './'`bind.c
    mkdir .libs
     gcc -DHAVE_CONFIG_H -I. -I.. -I/oracle/product/10.2.0.4/rdbms/public -I../include -DOCI_IMPORT_LINKAGE -DOCI_CHARSET_ANSI -g -O2 -MT libocilib_la-bind.lo -MD -MP -MF .deps/libocilib_la-bind.Tpo -c bind.c  -DPIC -o .libs/libocilib_la-bind.o
    bind.c:35:29: ocilib_internal.h: Invalid argument
    bind.c:45: error: parse error before "OCI_BindFree"
    bind.c:45: error: parse error before '*' token
    Peut-être que je me trompe, mais j'ai une lecture un peu différente, ce que le compilo ne comprend pas se situe au niveau de la ligne 29 du fichier ocilib_internal.h.
    Seul hic, à cet endroit le seul truc approchant c'est des fichiers include....

  11. #11
    Membre averti
    Homme Profil pro
    Architecte technique
    Inscrit en
    Août 2009
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 58
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Architecte technique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Août 2009
    Messages : 12
    Par défaut Je m'en suis sorti...
    Quelle est la version minimum de gcc requise pour compiler ?
    Parce qu'il me semble que la v3.3.2 ( je sais c'est vieux...) ne convient pas.

    J'ai juste exporté CC=cc pour utiliser le compilateur IBM et la ça a marché. Toujours est-il que là encore, c'est pas du tout neuf, C for AIX Compiler, Version 6...

    M'enfin, je vais faire avec ...

    Sinon, pour le reste du projet je vais utiliser g++ sur un code massivement multi-threadé j'espère que je n'aurais pas d'ennui de compatibilité...

    L'objectif du projet est super simple: insérer dans x tables le contenu de x fichiers et ce le plus vite possible. Pour l'instant, la maquette du projet fonctionne sous Windows, on va voir ce qu'on est capable d'obtenir sous AIX...

  12. #12
    Rédacteur
    Avatar de Vincent Rogier
    Profil pro
    Inscrit en
    Juillet 2007
    Messages
    2 373
    Détails du profil
    Informations personnelles :
    Âge : 47
    Localisation : France

    Informations forums :
    Inscription : Juillet 2007
    Messages : 2 373
    Par défaut
    si tu compiles ocilib avec gcc pour que ocilib soit utilisé avec g++ et que tu génères des exceptions c++ depuis les callbacks d'erreurs ocilib, il faut compiler la lib avec l'option -fexceptions...
    Sinon gcc ne génèrera pas le code machine necéssaire...
    Vincent Rogier.

    Rubrique ORACLE : Accueil - Forum - Tutoriels - FAQ - Livres - Blog

    Vous voulez contribuer à la rubrique Oracle ? Contactez la rubrique !

    OCILIB (C Driver for Oracle)

    Librairie C Open Source multi-plateformes pour accéder et manipuler des bases de données Oracle

Discussions similaires

  1. [OCILIB] Problème de compilation avec code::blocks
    Par dbqg7322 dans le forum Interfaces de programmation
    Réponses: 2
    Dernier message: 11/01/2013, 13h21
  2. problème de compil devc++ socket
    Par stefdem dans le forum Autres éditeurs
    Réponses: 2
    Dernier message: 11/12/2003, 11h33
  3. Réponses: 1
    Dernier message: 29/10/2003, 12h16
  4. Problème de compilation de la DLL du XMLRad
    Par [DreaMs] dans le forum XMLRAD
    Réponses: 2
    Dernier message: 16/04/2003, 16h46
  5. Réponses: 1
    Dernier message: 27/05/2002, 01h44

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo