salut tous le monde !!merci a tous les membres pour le grand travail que vous fassiez ici!!

je suis tjrs en train de migrer un produit de AIX vers linux en utilisant gcc comme compilateur et pro*C comme precompilateur .

je dois lancer des makefiles déja préparer pour la compilation et la précompilation!!
dans l'un de ces makefile il y un truc étrange
1-il lance la commande cpp sur un fichier .pc
2-le resultat de cette commande est stocké sur un fichier ..._tmp.pc
3-précompiler le fichier résultant ..._tmp.pc avec pro*C

en lançant la commande cpp je tiens ça :
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
# 19 "su_lgm.h" 2
# 1 "/home/oracle/Open2/syu/inc/su_logclass.h" 1
# 21 "/home/oracle/Open2/syu/inc/su_logclass.h"
static char logclass_h[]="@(#)$Workfile:   su_logclass.h  $,$Revision: 2.1 $,$Modtime:   05 Feb 2003 11:39:48  $";
static char su_logclass_h[] = "@(#)## su_logclass.h 02.01.01 07/10/97 $Revision: 2.1 $";
# 20 "su_lgm.h" 2
#include "/usr/include/stdio.h"
#include "/usr/include/features.h" 
#include "/usr/include/sys/cdefs.h"
#include "/usr/include/bits/wordsize.h 
#include/usr/include/gnu/stubs.h"
 
 
 
# 1 "/usr/include/bits/wordsize.h" 1 3 4
# 5 "/usr/include/gnu/stubs.h" 2 3 4
 
 
# 1 "/usr/include/gnu/stubs-32.h" 1 3 4
# 8 "/usr/include/gnu/stubs.h" 2 3 4
# 353 "/usr/include/features.h" 2 3 4
# 29 "/usr/include/stdio.h" 2 3 4
 
 
 
 
 
# 1 "/usr/lib/gcc/i386-redhat-linux/4.1.1/include/stddef.h" 1 3 4
# 214 "/usr/lib/gcc/i386-redhat-linux/4.1.1/include/stddef.h" 3 4
typedef unsigned int size_t;
# 35 "/usr/include/stdio.h" 2 3 4
 
# 1 "/usr/include/bits/types.h" 1 3 4
# 28 "/usr/include/bits/types.h" 3 4
# 1 "/usr/include/bits/wordsize.h" 1 3 4
# 29 "/usr/include/bits/types.h" 2 3 4
 
 
# 1 "/usr/lib/gcc/i386-redhat-linux/4.1.1/include/stddef.h" 1 3 4
# 32 "/usr/include/bits/types.h" 2 3 4
 
 
typedef unsigned char __u_char;
typedef unsigned short int __u_short;
typedef unsigned int __u_int;
typedef unsigned long int __u_long;
 
 
typedef signed char __int8_t;
typedef unsigned char __uint8_t;
typedef signed short int __int16_t;
typedef unsigned short int __uint16_t;
typedef signed int __int32_t;
typedef unsigned int __uint32_t;
...
aprés lorsque la précompilation se lace il me donne ces erreurs:
Pro*C/C++: Release 9.2.0.4.0 - Production on Thu Sep 24 13:21:37 2009

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

Error at line 0, column 0 in file su_lgm_lib_commit_tmp.pc
PCC-F-02102, Fatal error while doing C preprocessing
Error at line 44, column 30 in file su_lgm_lib_commit_tmp.pc
44 # 1 "/usr/include/stdio.h" 1 3 4
44 .............................1
44 PCC-S-02014, Encountered the symbol "3" when expecting one of the follo
wing:

newline,

Error at line 45, column 31 in file su_lgm_lib_commit_tmp.pc
45 # 28 "/usr/include/stdio.h" 3 4
45 ..............................1
45 PCC-S-02014, Encountered the symbol "4" when expecting one of the follo
wing:

newline,

Error at line 46, column 33 in file su_lgm_lib_commit_tmp.pc
46 # 1 "/usr/include/features.h" 1 3 4
46 ................................1
46 PCC-S-02014, Encountered the symbol "3" when expecting one of the follo
wing:

newline,

Error at line 47, column 35 in file su_lgm_lib_commit_tmp.pc
47 # 329 "/usr/include/features.h" 3 4
47 ..................................1
47 PCC-S-02014, Encountered the symbol "4" when expecting one of the follo
wing:

newline,

Error at line 48, column 34 in file su_lgm_lib_commit_tmp.pc
48 # 1 "/usr/include/sys/cdefs.h" 1 3 4
48 .................................1
48 PCC-S-02014, Encountered the symbol "3" when expecting one of the follo
wing:

newline,

Error at line 49, column 36 in file su_lgm_lib_commit_tmp.pc
49 # 313 "/usr/include/sys/cdefs.h" 3 4
49 ...................................1
49 PCC-S-02014, Encountered the symbol "4" when expecting one of the follo
wing:

newline,

Error at line 50, column 38 in file su_lgm_lib_commit_tmp.pc
50 # 1 "/usr/include/bits/wordsize.h" 1 3 4
50 .....................................1
50 PCC-S-02014, Encountered the symbol "3" when expecting one of the follo
wing:

newline,

Error at line 51, column 36 in file su_lgm_lib_commit_tmp.pc
51 # 314 "/usr/include/sys/cdefs.h" 2 3 4
51 ...................................1
51 PCC-S-02014, Encountered the symbol "3" when expecting one of the follo
wing:

newline,

Error at line 52, column 35 in file su_lgm_lib_commit_tmp.pc
52 # 330 "/usr/include/features.h" 2 3 4
52 ..................................1
52 PCC-S-02014, Encountered the symbol "3" when expecting one of the follo
wing:

newline,
a ce que vous voyez c'est clair que le compilateur ne comprend pas les chiffres 1 2 3.. devant les librairies .h alors j'ai supprimé cela et j'ai ajouté include ça a fait disparaitre les erreurs mais c'est pas evident a ce que je vois

alors j'ai essayé de précompiler le fichier .pc directement et ça a marché mais je doute bien de ça parce que lorsque le produit a été compiler sur AIX la compilation a été fait avec ces makefiles et je crois qu'ils ont mis cett commande de cpp juste comme ça!!

alors si vous pouvez m'aidez avec vos idées je serai reconnaissant!!