[TRE-general] cygwin problem

skaller skaller at users.sourceforge.net
Thu May 11 19:28:06 EEST 2006


On Thu, 2006-05-11 at 09:26 +0300, Ville Laurikari wrote:
> On Thu, May 11, 2006 at 12:09:51PM +1000, skaller wrote:
> > Can I just say
> > CC=gcc -mnocygwin ./configure
> > 
> > Or on linux
> > CC=/usr/something/i686-mingw/bin/gcc ./configure
> > 
> > and expect a windows DLL to be generated??
> > So what option do I use? There has to be a way to
> > identify the target environment.
> 
> Ah, I thought you were aware of the --host option for configure (it's
> explained in the INSTALL file).

No, please excuse me but I'm ignorant of unix in general
and gnu tools in particular. I don't use most of these
tools myself, and tend to install binaries (apt-get), or just
go './configure && make && make install' for sources.

If that doesn't work I usually give up, because that's what
my clients will do.

> Cross compiling on Cygwin for MinGC works like this:
>   ./configure CC="gcc -mno-cygwin" --host=i686-pc-mingw32
> 
> and cross compiling on Linux for MinGW probably something like
>   ./configure CC=/usr/something/i686-mingw/bin/gcc --host=i686-pc-mingw32

Ok, thanks!

> 
> > BTW: I'm using the darcs head on Linux. 

> I suggest you read the documentation:

What? RTFM? No .. surely not! Who ever reads manuals?? :)

> Yes, I've been thinking about this.  Probably some sort of combinator
> API to build regexps would be good.

I always thought the way to do this would be:

	posix --xlat-> combinator -> compiled form
	pcre --xlat ->
	...

so you could just write 'parsers' to generate the 
regexp data structures. (Pity regexps themselves
aren't regular!)


-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net



More information about the TRE-general mailing list