Bonsoir à toutes et à tous,
je compile mon analyseur de langage qui utilise est codé en C/C++ et lors de la génération de l'executable final j'obtiens de très nombreuses erreurs :
Est-ce que quelqu'un pourrait me dire d'ou cela provient ?
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 _wk/parse_bis.o: In function `yy_flush_buffer(yy_buffer_state*)': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1448: multiple definition of `yy_flush_buffer(yy_buffer_state*)' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1448: first defined here _wk/parse_bis.o: In function `yy_flush_buffer(yy_buffer_state*)': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1452: multiple definition of `yytext' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1452: first defined here _wk/parse_bis.o: In function `yy_flush_buffer(yy_buffer_state*)': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1448: multiple definition of `yyin' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1448: first defined here _wk/parse_bis.o: In function `yyget_lineno()': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1687: multiple definition of `yyget_lineno()' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1687: first defined here _wk/parse_bis.o:(.data+0x0): multiple definition of `yylineno' _wk/test1_flex.o:(.data+0x0): first defined here _wk/parse_bis.o: In function `yyget_in()': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1696: multiple definition of `yyget_in()' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1696: first defined here _wk/parse_bis.o: In function `yyget_out()': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1704: multiple definition of `yyget_out()' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1704: first defined here _wk/parse_bis.o: In function `yy_flush_buffer(yy_buffer_state*)': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1449: multiple definition of `yyout' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1449: first defined here _wk/parse_bis.o: In function `yyget_leng()': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1712: multiple definition of `yyget_leng()' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1712: first defined here _wk/parse_bis.o: In function `yy_flush_buffer(yy_buffer_state*)': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1448: multiple definition of `yyleng' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1448: first defined here _wk/parse_bis.o: In function `yyget_text()': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1721: multiple definition of `yyget_text()' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1721: first defined here _wk/parse_bis.o: In function `yyset_lineno(int)': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1730: multiple definition of `yyset_lineno(int)' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1730: first defined here _wk/parse_bis.o: In function `yyset_in(_IO_FILE*)': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1742: multiple definition of `yyset_in(_IO_FILE*)' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1742: first defined here _wk/parse_bis.o: In function `yyset_out(_IO_FILE*)': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1747: multiple definition of `yyset_out(_IO_FILE*)' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1747: first defined here _wk/parse_bis.o: In function `yyget_debug()': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1752: multiple definition of `yyget_debug()' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1752: first defined here _wk/parse_bis.o: In function `yy_flush_buffer(yy_buffer_state*)': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1458: multiple definition of `yy_flex_debug' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1458: first defined here _wk/parse_bis.o: In function `yyset_debug(int)': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1757: multiple definition of `yyset_debug(int)' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1757: first defined here _wk/parse_bis.o: In function `yyfree': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1853: multiple definition of `yyfree(void*)' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1853: first defined here _wk/parse_bis.o: In function `yy_delete_buffer(yy_buffer_state*)': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1397: multiple definition of `yy_delete_buffer(yy_buffer_state*)' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1397: first defined here _wk/parse_bis.o: In function `yypop_buffer_state()': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1507: multiple definition of `yypop_buffer_state()' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1507: first defined here _wk/parse_bis.o: In function `yylex_destroy()': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1791: multiple definition of `yylex_destroy()' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1791: first defined here _wk/parse_bis.o: In function `yyrealloc': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1841: multiple definition of `yyrealloc(void*, unsigned int)' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1841: first defined here _wk/parse_bis.o: In function `yyalloc': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1836: multiple definition of `yyalloc(unsigned int)' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1836: first defined here _wk/parse_bis.o: In function `yypush_buffer_state(yy_buffer_state*)': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1477: multiple definition of `yypush_buffer_state(yy_buffer_state*)' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1477: first defined here _wk/parse_bis.o: In function `yy_switch_to_buffer(yy_buffer_state*)': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1324: multiple definition of `yy_switch_to_buffer(yy_buffer_state*)' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1324: first defined here _wk/parse_bis.o: In function `yy_scan_buffer(char*, unsigned int)': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1575: multiple definition of `yy_scan_buffer(char*, unsigned int)' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1575: first defined here _wk/parse_bis.o: In function `yy_scan_bytes(char const*, int)': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1625: multiple definition of `yy_scan_bytes(char const*, int)' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1625: first defined here _wk/parse_bis.o: In function `yy_scan_string(char const*)': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1612: multiple definition of `yy_scan_string(char const*)' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1612: first defined here _wk/parse_bis.o: In function `yy_create_buffer(_IO_FILE*, int)': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1369: multiple definition of `yy_create_buffer(_IO_FILE*, int)' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1369: first defined here _wk/parse_bis.o: In function `yyrestart(_IO_FILE*)': /home/liszto/Documents/TEsting/_wk/test1_flex.c:1307: multiple definition of `yyrestart(_IO_FILE*)' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:1307: first defined here _wk/parse_bis.o: In function `yylex()': /home/liszto/Documents/TEsting/_wk/test1_flex.c:685: multiple definition of `yylex()' _wk/test1_flex.o:/home/liszto/Documents/TEsting/_wk/test1_flex.c:685: first defined here collect2: ld returned 1 exit status
Sachant que le fichier responsable de ces erreur est généré automatiquement par flex et donc je ne peux pas le modifier à la main mais par contre je peux agir sur le fichier .l (flex)
Est-ce que mes includes dans mes divers fichiers .cpp / .h / .l (flex) / .y (bison) peuvent y etre pour quelque chose ?
Est-ce que mon makefile peut y etre pour quelque chose également ?
Est-ce que quelqu'un pourrait me tirer de ce mauvais pas que je n'arrive pas à résoudre depuis 2 jours maintenant :/
Si besoin de plus de chose pour me répondre me le dire, je fournirais n'importe quelle chose nécessaire pour pouvoir tirer cela au clair...
Partager