bonjour, j'ai installé OCILIB-3.0.1 sous redhat 4 et oracle 9.2, mais j'ai eu plain de problem d'environement, (j'ai triché en copiant les deux fichiers oci.h et orid.h dans ke dossier $HOME_ORACLE/rdbms/public/
en tout cas apparemment l'installation est bien terminée mais le problèmme d'environement n'est plus réglé:
ceci mon .bash_profile
ORACLE_BASE=/home/ora; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/OraHome1; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_ASSUME_KERNEL=2.4.19; export LD_ASSUME_KERNEL
ORACLE_OWNER=ora; export ORACLE_OWNER
ORACLE_SID=dborac; export ORACLE_SID
ORALIBPATH=$ORACLE_HOME/lib export OR ORALIBPATH
include=/usr/local/include/ export include
LD_LIBRARY_PATH=$ORACLE_HOME/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib; export CLASSPATH
et quand j'ai lancé le script de test qui se trouve sur :IV-A. Initialiser OCILIB dans http://vicenzo.developpez.com/tutoriels/c/ocilib/
#include "ocilib.h"
int main()
{
if (!OCI_Initialize(NULL, NULL, OCI_ENV_DEFAULT))
return EXIT_FAILURE;
/* ... application code here ... */
OCI_Cleanup();
return EXIT_SUCCESS;
}
il me renvoie:
/tmp/cc8HpDbg.o(.text+0x1a): In function `main':
: undefined reference to `OCI_Initialize'
/tmp/cc8HpDbg.o(.text+0x2f): In function `main':
: undefined reference to `OCI_Cleanup'
collect2: ld returned 1 exit status
quelqu'un peut m'aider ,
merci par avance
Partager