public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* POXIX regexp and i686-pc-mingw32-g++
@ 2014-04-30 23:51 Jim Reisert AD1C
  2014-05-01  1:28 ` Duncan Roe
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jim Reisert AD1C @ 2014-04-30 23:51 UTC (permalink / raw)
  To: cygwin

Can anyone help me to use the POSIX regexp library (header regex.h)
with the i686-pc-mingw32-g++ compiler?  I've searched through google
and I can't find any example of this.

If this won't work, does anyone have a practical example of PCRE and
this compiler?  It seems that there's a 64-bit Cygwin package, but no
32-bit package.

Thanks - Jim

-- 
Jim Reisert AD1C, <jjreisert@alum.mit.edu>, http://www.ad1c.us

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: POXIX regexp and i686-pc-mingw32-g++
  2014-04-30 23:51 POXIX regexp and i686-pc-mingw32-g++ Jim Reisert AD1C
@ 2014-05-01  1:28 ` Duncan Roe
  2014-05-01 13:38 ` Jim Reisert AD1C
  2014-05-02  6:01 ` Yaakov (Cygwin/X)
  2 siblings, 0 replies; 5+ messages in thread
From: Duncan Roe @ 2014-05-01  1:28 UTC (permalink / raw)
  To: cygwin

On Wed, Apr 30, 2014 at 05:50:45PM -0600, Jim Reisert AD1C wrote:
> Can anyone help me to use the POSIX regexp library (header regex.h)
> with the i686-pc-mingw32-g++ compiler?  I've searched through google
> and I can't find any example of this.
>
> If this won't work, does anyone have a practical example of PCRE and
> this compiler?  It seems that there's a 64-bit Cygwin package, but no
> 32-bit package.
>
> Thanks - Jim
>
Does "man 3 regex" not work for you? It does for me (Cygwin 64-bit),

Cheers ... Duncan.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: POXIX regexp and i686-pc-mingw32-g++
  2014-04-30 23:51 POXIX regexp and i686-pc-mingw32-g++ Jim Reisert AD1C
  2014-05-01  1:28 ` Duncan Roe
@ 2014-05-01 13:38 ` Jim Reisert AD1C
  2014-05-01 14:11   ` Jim Reisert AD1C
  2014-05-02  6:01 ` Yaakov (Cygwin/X)
  2 siblings, 1 reply; 5+ messages in thread
From: Jim Reisert AD1C @ 2014-05-01 13:38 UTC (permalink / raw)
  To: cygwin

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

#include <regex.h>


results in:

# i686-pc-mingw32-g++ -g -Wall -I../../library -c -o csv2adif.o csv2adif.cpp

csv2adif.cpp:12:19: fatal error: regex.h: No such file or directory


/usr/include/regex.h
/usr/lib/gcc/i686-pc-cygwin/4.8.2/include/c++/bits/regex.h
/usr/lib/gcc/i686-pc-mingw32/4.7.3/include/c++/bits/regex.h


What am I doing wrong?


-- 
Jim Reisert AD1C, <jjreisert@alum.mit.edu>, http://www.ad1c.us

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: POXIX regexp and i686-pc-mingw32-g++
  2014-05-01 13:38 ` Jim Reisert AD1C
@ 2014-05-01 14:11   ` Jim Reisert AD1C
  0 siblings, 0 replies; 5+ messages in thread
From: Jim Reisert AD1C @ 2014-05-01 14:11 UTC (permalink / raw)
  To: cygwin

On Thu, May 1, 2014 at 7:38 AM, Jim Reisert AD1C wrote:

> #include <stdarg.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <ctype.h>
>
> #include <regex.h>
>
>
> results in:
>
> # i686-pc-mingw32-g++ -g -Wall -I../../library -c -o csv2adif.o csv2adif.cpp
>
> csv2adif.cpp:12:19: fatal error: regex.h: No such file or directory
>
>
> /usr/include/regex.h
> /usr/lib/gcc/i686-pc-cygwin/4.8.2/include/c++/bits/regex.h
> /usr/lib/gcc/i686-pc-mingw32/4.7.3/include/c++/bits/regex.h


I should have mentioned:

Change "i686-pc-mingw32-g++" to simply "g++" and there is no problem.

-- 
Jim Reisert AD1C, <jjreisert@alum.mit.edu>, http://www.ad1c.us

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: POXIX regexp and i686-pc-mingw32-g++
  2014-04-30 23:51 POXIX regexp and i686-pc-mingw32-g++ Jim Reisert AD1C
  2014-05-01  1:28 ` Duncan Roe
  2014-05-01 13:38 ` Jim Reisert AD1C
@ 2014-05-02  6:01 ` Yaakov (Cygwin/X)
  2 siblings, 0 replies; 5+ messages in thread
From: Yaakov (Cygwin/X) @ 2014-05-02  6:01 UTC (permalink / raw)
  To: cygwin

On 2014-04-30 18:50, Jim Reisert AD1C wrote:
> Can anyone help me to use the POSIX regexp library (header regex.h)
> with the i686-pc-mingw32-g++ compiler?  I've searched through google
> and I can't find any example of this.

mingw64-i686-libgnurx is available in Ports.


Yaakov


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-05-02  6:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-30 23:51 POXIX regexp and i686-pc-mingw32-g++ Jim Reisert AD1C
2014-05-01  1:28 ` Duncan Roe
2014-05-01 13:38 ` Jim Reisert AD1C
2014-05-01 14:11   ` Jim Reisert AD1C
2014-05-02  6:01 ` Yaakov (Cygwin/X)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).