🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Problema con regexp()

#14297
From: Jesús Carrete Montaña
Date: Mon, 20 Nov 2000 00:00
44 lines
2164 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hola a todos.
	Estoy intentado usar regexp() en un programa. Las �nicas tres l�neas
que la usan de momento son:

	#include *regexp.h
	regexp *Test;
	Test=regcomp("([^:]+):([^:]*)");

	Al intentar compilar esto, me dice:

gcc -o gcamel.o -c gcamel.c -I/usr/lib/glib/include -I/usr/X11R6/include -O3
 -ffast-math 
In file included from gcamel.c:23:
/usr/include/regexp.h: In function `compile':
/usr/include/regexp.h:114: parse error before `regex_t'
/usr/include/regexp.h:128: `__expr_ptr' undeclared (first use in this function)
/usr/include/regexp.h:128: (Each undeclared identifier is reported only once
/usr/include/regexp.h:128: for each function it appears in.)
gcamel.c: In function `ArgumentsAreSane':
gcamel.c:156: `regexp' undeclared (first use in this function)
gcamel.c:156: `Test' undeclared (first use in this function)
gcamel.c:163: warning: passing arg 1 of `regcomp' from incompatible pointer 
type
gcamel.c:163: too few arguments to function `regcomp'
make: *** [gcamel.o] Error 1

Un saludo y gracias mil.
- -- 
    .~.     |/    ,_|-.|
    /V\     |\L|(||||_||<() @ escomposlinux.org
   // \\    Linux Registered User #158442
  /(   )\   Public PGP Key avaliable via e-mail
   ^`~'^    and pgp.rediris.es
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6GVX8fUtQQKOnZ1IRAiHjAJ4o4YCU4UN/yrwdGMdsbiY/iTN89gCfX4dJ
xWeQXfe/Spjqv865kpVwTLg=
=gypD
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <slrn91ilfd.jc.kuantiko@relativistic.homeip.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,692596c1afaa7d13,start
X-Google-Attributes: gidf86c8,public
From: kuantiko@escomposlinux.org (Jesús Carrete Montaña)
Subject: Problema con regexp()
Date: 2000/11/20
Message-ID: <slrn91ilfd.jc.kuantiko@relativistic.homeip.net>
X-Deja-AN: 695818536
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1
X-Trace: fu-berlin.de 974739975 4341024 62.83.49.17 (16 [54696])
Mime-Version: 1.0
User-Agent: slrn/0.9.6.2 (Linux)
Reply-To: kuantiko@escomposlinux.org
Newsgroups: es.comp.os.linux.programacion