🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

problema compilación

#15461
From: Julio Baixauli
Date: Wed, 28 Jun 2000 00:00
45 lines
1773 bytes
	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;
};


int siit_4to6(struct ip *ip4, struct my_ip6_hdr *ip6);
-------------fin
archivo.h----------------------------------------------------


	�Hay algo mal? No s� d�nde est� el fallo... pero est� en el struct,
porque si lo quito va bien.

	Una ayudita por favor. Gracias.



-- 
********************************************

	Julio Baixauli Garreta
	baixauli@mat.upc.es

********************************************
Technical Details
Message-ID: <395A25C8.8E9278CF@mat.upc.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,6a7269cefc1e46ce,start
X-Google-Attributes: gidf86c8,public
From: Julio Baixauli <baixauli@mat.upc.es>
Subject: problema compilación
Date: 2000/06/28
Message-ID: <395A25C8.8E9278CF@mat.upc.es>
X-Deja-AN: 640205780
Distribution: es
Content-Transfer-Encoding: 8bit
X-Accept-Language: en
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: newsmngr@upc.es
X-Trace: defalla.upc.es 962208356 4160 147.83.39.211 (28 Jun 2000 16:05:56 GMT)
Organization: Universitat Politecnica de Catalunya
Mime-Version: 1.0
NNTP-Posting-Date: 28 Jun 2000 16:05:56 GMT
Newsgroups: es.comp.os.linux.programacion