473,320 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Missing Header File

Hi,

I have writen a C programme that uses regular expresions and imports a file
called regex.h. On the uni computers the programme compiles fine but at
home on my own PC the compiler complains that it can't find the file. I'm
not usre which compiler they use at uni but it's on Red Hat Linux, at home I
am using the windows port of GCC (mingw).

Any help would be appreciated.
Thanks,
Jamie
Nov 13 '05 #1
8 3857
"Jamie Cockburn" <ja****@blueyonder.co.uk> writes:
I have writen a C programme that uses regular expresions and imports a file
called regex.h. On the uni computers the programme compiles fine but at
home on my own PC the compiler complains that it can't find the file. I'm
not usre which compiler they use at uni but it's on Red Hat Linux, at home I
am using the windows port of GCC (mingw).


regex.h isn't a standard header. You'll have to find an
implementation of its associated library for your platform. You
should ask about that in a newsgroup associated with your
platform, because in comp.lang.c we only discuss standard C,
which excludes platform-specific issues like this.
--
"Some programming practices beg for errors;
this one is like calling an 800 number
and having errors delivered to your door."
--Steve McConnell
Nov 13 '05 #2
Jamie Cockburn wrote:
I have writen a C programme that uses regular expresions and imports a file
called regex.h. On the uni computers the programme compiles fine but at
home on my own PC the compiler complains that it can't find the file. I'm
not usre which compiler they use at uni but it's on Red Hat Linux, at home I
am using the windows port of GCC (mingw).


regexp support is not a standard C feature; the GNU C library supports
this as an add-on but mingw uses another C library (newlib?), so that's
why it doesn't work. Since regexp-support is not standard C, you're not
likely to get a more useful answer than this in comp.lang.c (which is
only concerned with standard C).

Best regards,

Sidney

Nov 13 '05 #3
In that case, is there a library for regular expresions in standard C?

Jamie

"Sidney Cadot" <si****@jigsaw.nl> wrote in message
news:bo**********@news.tudelft.nl...
regexp support is not a standard C feature; the GNU C library supports
this as an add-on but mingw uses another C library (newlib?), so that's
why it doesn't work. Since regexp-support is not standard C, you're not
likely to get a more useful answer than this in comp.lang.c (which is
only concerned with standard C).

Best regards,

Sidney

Nov 13 '05 #4
Jamie Cockburn wrote:
I have written a C program that uses regular expressions
and imports a file called regex.h.
On the University computers, the program compiles fine but, at home
on my own PC, the compiler complains that it can't find the file.
I'm not sure which compiler they use at University
but it's on Red Hat Linux.
At home, I am using the windows port of GCC (mingw).


I used Google

http://www.google.com/

to search for

+"regex" +"windows"

and found lots of stuff including

http://ftp.uni-kl.de/pub/windows/cygwin/release/regex/

Nov 13 '05 #5
Jamie Cockburn wrote:
In that case, is there a library for regular expresions in standard C?


The problem isn't that there is no regex package written in standard C.
The problem is that standard C does not provide one (e.g., as part of
the standard library.)

/david

--
"As a scientist, Throckmorton knew that if he were ever to break wind in
the echo chamber, he would never hear the end of it."

Nov 13 '05 #6
Jamie Cockburn wrote:
"Sidney Cadot" <si****@jigsaw.nl> wrote in message
regexp support is not a standard C feature; the GNU C library
supports this as an add-on but mingw uses another C library
(newlib?), so that's why it doesn't work. Since regexp-support
is not standard C, you're not likely to get a more useful
answer than this in comp.lang.c (which is only concerned with
standard C).


In that case, is there a library for regular expresions in
standard C?


He just told you, no. You can probably find one that is written
in standard C, however.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 13 '05 #7
In article <tx*********************@twister.nyc.rr.com>,
fu******@warpmail.net says...
Jamie Cockburn wrote:
In that case, is there a library for regular expresions in standard C?
The problem isn't that there is no regex package written in standard C.


How do you know this to be true? I don't know of anything in the standard
that precludes it being done.
The problem is that standard C does not provide one (e.g., as part of
the standard library.)


True.

--
Randy Howard _o
2reply remove FOOBAR \<,
______________________()/ ()______________________________________________
SCO Spam-magnet: po********@sco.com
Nov 13 '05 #8
in comp.lang.c i read:
In article <tx*********************@twister.nyc.rr.com>,
fu******@warpmail.net says...
Jamie Cockburn wrote:
> In that case, is there a library for regular expresions in standard C?


The problem isn't that there is no regex package written in standard C.


How do you know this to be true? I don't know of anything in the standard
that precludes it being done.


so far as i am aware henry spencer's regex code is standard c.

--
a signature
Nov 13 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Tintax | last post by:
I'm trying to get a child DIV tag to overlap the border of it's parent DIV tag in order to create an effect as follows: +----------------------------------------------------------+ | ...
3
by: Tobias | last post by:
Hallo, I have a strange problem here: I a VC++6 project that compiles without any errors. If i now include a certain header file from my project into a header file of a certain dialog class i get...
11
by: sonajain | last post by:
Hi, The database transaction log file is full. I cannot delete the log file. when I try to take backup it throws error. Any other way so that I can write more transaction without any problem....
0
by: Sean Howard | last post by:
I have a strange problem linking tab delimited text files in Access 2000 (I am running Windows XP), please try this and let me know if I am going mad. Step 1. Create the tab-delimited text...
1
by: jacek.dziedzic | last post by:
Hi! I have a program that #includes a header file of an external library. If the environment is set-up correctly, this file is found in the include path and everything works. Now, assume...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.