[PRO*C] Problème de compilation
Bonjour,
Je suis sous fedora core 13 (linux) avec Middleware fusion 11g d'installé.
Je souhaite pré compiler à l'aide de l'outil $oracle_home/bin/proc et ensuite compilé avec l'utilitaire gcc.
Voilà la première ligne de commande:
Citation:
./proc code=c iname=dtesys.pc oname=dtesys.c userid=log/pass@SID
Après cet execution j'obtient aucune erreur dans le *.list généré et mon dtesys.c ext bien présent.
Ensuite j'utilise la commande suivante :
Citation:
gcc -c dtesys.c
Mais là j'ai une erreur:
error: expected identifier or '(' before string constant
Voilà la partie du code qui pose problème (ligne avec --->):
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| // Prototypes
--->extern "C" {
void sqlcxt (void **, unsigned int *,
struct sqlexd *, const struct sqlcxp *);
void sqlcx2t(void **, unsigned int *,
struct sqlexd *, const struct sqlcxp *);
void sqlbuft(void **, char *);
void sqlgs2t(void **, char *);
void sqlorat(void **, unsigned int *, void *);
}
// Forms Interface
static const int IAPSUCC = 0;
static const int IAPFAIL = 1403;
static const int IAPFTL = 535;
---->extern "C" { void sqliem(unsigned char *, signed int *); } |
Je ne sais vraiment pas ce qui pose problème