🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #15400

Re: problema compilación

#15400
From: Oscar Renalias
Date: Thu, 06 Jul 2000 00:00
43 lines
1848 bytes
Julio Baixauli wrote:
> 
>         Estoy intentando compilar un .c que incluye un .h, pero me sale:
> 
> archivo.h: warning: no semicolon at end of struct or union
> archivo.h: parse error before '.'
> archivo.h: parse error before '}'
> 
>         El archivo .h contiene la definición de una estructura y de una
> función:
> 
> -------------inicio
> archivo.h------------------------------------------------
> struct my_ip6_hdr
> {
>         //u_char    ip6_class:4,
>         //          ip6_ver:4;
>         u_char    ip6_ver:4,
>                   ip6_class:4;
>         u_int     ip6_flow:24;
>         u_short   ip6_paylen;
>         u_char    ip6_nh;
>         u_char    ip6_hl;
>         struct in6_addr ip6_src, ip6_dst;
> };

Claro que no va... Ademas, el error te lo da el mismo compilador: 
"archivo.h: warning: no semicolon at end of struct or union"
Quitale el ';' del final del struct.
Creo que deberia ser eso.

Salu2!
-- 
"The less you know, the more you believe" (U2, Staring at the sun)
Oscar Renalias - oscare@fib.upc.es
Technical Details
Message-ID: <39646F8D.7716D0F2@fib.upc.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <395A25C8.8E9278CF@mat.upc.es>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,6a7269cefc1e46ce
X-Google-Attributes: gidf86c8,public
From: Oscar Renalias <oscare@fib.upc.es>
Subject: Re: problema compilación
Date: 2000/07/06
Message-ID: <39646F8D.7716D0F2@fib.upc.es>
X-Deja-AN: 642996485
Distribution: es
Content-Transfer-Encoding: quoted-printable
References: <395A25C8.8E9278CF@mat.upc.es>
X-Accept-Language: en
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: newsmngr@upc.es
X-Trace: defalla.upc.es 962876297 10734 147.83.58.149 (6 Jul 2000 09:38:17 GMT)
Organization: Universitat Politecnica de Catalunya
Mime-Version: 1.0
NNTP-Posting-Date: 6 Jul 2000 09:38:17 GMT
Newsgroups: es.comp.os.linux.programacion