Bonjour,

je cherche à me connecter à une base oracle 9 distante à partir de mon poste (Windows XP). J'ai récupérer ocilib-3.11.1-windows.zip et le code minimaliste afin de m'exercer suivant

Code C : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "ocilib.h"
 
int main()
{
    if (!OCI_Initialize(NULL, NULL, OCI_ENV_DEFAULT))
        return EXIT_FAILURE;
 
    /* ... application code here ... */
 
    OCI_Cleanup();
 
 
    return EXIT_SUCCESS;
}

Je compile avec code::blocks 12.11 et j'obtiens le résultat ci-dessous

-------------- Clean: Debug in essai (compiler: GNU GCC Compiler)---------------

Cleaned "essai - Debug"

-------------- Build: Debug in essai (compiler: GNU GCC Compiler)---------------

mingw32-gcc.exe -Wall -g -IC:\MinGW\ocilib\include -c C:\MinGW\msys\1.0\home\X2006570\essai\main.c -o obj\Debug\main.o
mingw32-g++.exe -LC:\MinGW\ocilib\lib32 -o bin\Debug\essai.exe obj\Debug\main.o -lociliba
obj\Debug\main.o: In function `main':
C:/MinGW/msys/1.0/home/X2006570/essai/main.c:5: undefined reference to `OCI_Initialize'
C:/MinGW/msys/1.0/home/X2006570/essai/main.c:10: undefined reference to `OCI_Cleanup'
collect2: ld a retourné 1 code d'état d'exécution
Process terminated with status 1 (0 minutes, 0 seconds)
2 errors, 0 warnings (0 minutes, 0 seconds)

J'ai lu un certains nombre de post sur le forum, essayer en 32 et 64 bits...

Je comprends pas ou se situe mon erreur. Pouvez-vous m'indiquer quelques pistes ?