Article View: fr.comp.lang.c
Article #15585Erreur à la compilation !!!
From: dab
Date: Fri, 16 Sep 2005 16:01
Date: Fri, 16 Sep 2005 16:01
67 lines
2775 bytes
2775 bytes
Bonjour à tous
Je ne suis pas complétement nouveau ici, j'avais posté il y a
quelques annèes,
mais je suis partit pour y revenir plus souvent :)
J'ai une erreur de compil sur laquelle je me suis cassé la tête et le
nez.
Voici mon problème:
gcc -g -Wall -ansi -pedantic -c main.c
gcc -g -Wall -ansi -pedantic -c file_sorted_table.c
gcc -g -Wall -ansi -pedantic -c tree_sorted_table.c
gcc -g -Wall -ansi -pedantic -c typedef_parser.c
In file included from typedef_parser.h:5,
from typedef_parser.c:5:
tree_sorted_table.h:11: parse error before `*'
tree_sorted_table.h:23: parse error before `*'
tree_sorted_table.h:27: parse error before `*'
tree_sorted_table.h:30: parse error before `*'
*** Error code 1
make: Fatal error: Command failed for target `typedef_parser.o'
Le debut de mon fichier typedef_parser.c :
#include <stdio.h>
#include <strings.h>
#include <stdlib.h>
#include "typedef_parser.h"
...
Le debut de mon fichier typedef_parser.h :
#ifndef __TYPEDEF_PARSER_H
#define __TYPEDEF_PARSER_H
#include "def.h"
#include "tree_sorted_table.h"
...
Le debut de mon fichier tree_sorted_table.h :
#ifndef __TREE_SORTED_TABLE_H
#define __TREE_SORTED_TABLE_H
#include "typedef_parser.h"
#define DEBUG4 0
#define MAX_TREE_TABLE_SIZE 1024
/* delete all allocated strings */
void deleteAllTree(t_TypeNode* table[], int nbElem);
...
Mon fichier def.h:
#ifndef __DEF_H
#define __DEF_H
#define LITTLE_BUF_SIZE 256
#define BIG_BUF_SIZE 1024
#endif
Je n'arrive pas à comprendre pourquoi le compilo me jette ainsi???
Si jamais vous avez un tuyau ou une piste, je suis partant.
David
Technical Details
Message-ID:
<1126886483.196010.157420@g44g2000cwa.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f9822,193af7ab8520b67d,start X-Google-Attributes: gidf9822,public X-Google-Language: FRENCH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mail From: dab@acri-st.fr Newsgroups: fr.comp.lang.c Subject: Erreur à la compilation !!! Date: 16 Sep 2005 09:01:23 -0700 Organization: http://groups.google.com Lines: 68 Message-ID: <1126886483.196010.157420@g44g2000cwa.googlegroups.com> NNTP-Posting-Host: 213.244.27.2 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1126886488 32401 127.0.0.1 (16 Sep 2005 16:01:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 16 Sep 2005 16:01:28 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g44g2000cwa.googlegroups.com; posting-host=213.244.27.2; posting-account=nfO__g0AAAB3e6qRD0Nckfeo-0DvYDH1