This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: -mno-cygwin question


Hi,
thanks for the PW32 hint, looks quite good.
Anyway, I made another attempt with the -mno-cygwin flag, I tried to compile the
whole library wirh the flag (ok,ok, I should have done this earlier, my fault)
first of all (as described in the HowTo I wrote of):
export CPPFLAGS="-I/usr/local/mingw/include -mno-cygwin"
export CXXFLAGS="-I/usr/local/mingw/include -mno-cygwin"
export LDFLAGS="-L/usr/local/mingw/include -mno-cygwin"
then ./configure, went ok
then make
after a while of compiling without problems, I got the following error
c++ -I/usr/local/mingw/include -mno-cygwin -I/usr/local/mingw/include -mno-cygwi
n -I../include -I../include -I../include -I../include -I./base -I../include -I..
/include -I./base -Ibase -c ./base/random/cl_random_from.cc
./base/random/cl_random_from.cc: In method `cl_random_state::cl_random_state()':
./base/random/cl_random_from.cc:84: implicit declaration of function `int getpid
(...)'
which I'm not 'used' to (I used to encounter undefined reference errors in the
past...)
Without the above compilerflags, i.e. without -mno-cygwin I don't get any errors,
are there any ideas why?

T. Utz

Earnie Boyd schrieb:

> --- Tilman Utz <Gerhard.Utz@t-online.de> wrote:
> > Trying to give more information.
> > You wrote:"In terms of writing programs which do not need the cygwin.dll,
> > that is what mingw is all about."
> > My problem about this was: Of the library I need I just had the headers,
> > some .cpp and a configure script, which created the makefiles (The name of
> > the library is GiNaC, a lib for symbolic computation, see  www.ginac.de
> > for more information and if this is of any interest). As I somewhere read
> > that "porting ``Unix-type'' code is not necessarily trivial." I decided to
> > stick to cygwin 'cause it provided the POSIX functionality.
>
> If you need POSIX, you can't use -mno-cygwin.
>
> > I hoped the
> > -mno-cygwin flag would allow to build cygwin.dll independent executables
> > (The institute I work for just uses WinNT...).
>
> What is the reason for Non-Cygwin executables.
>
> > Unfortunately I didn't read
> > or understand the HowTo I wrote of in my last mail (
> > http://www.xraylith.wisc.edu/~khan/software/gnu-win32/mno-cygwin-howto.txt
> > ).
> > The author describes that one needs the mingw headers and libs to use the
> > -mno-cygwin and, well, it seems, I don't have these because I built the
> > library with the cygwin gcc.
>
> Well, yes you do.  They are provided in the gcc/binutils distributions.
>
> > Unfortunately no workaround was given in the
> > HowTo so does anyone else have an idea how to make it work anyway.
> > eg would it be worth trying to build the whole library with the flag, or
> > should I better switch to Mingw32 (If yes has anybody information about
> > porting from POSIX to winpaths etc)
>
> It is a lot of work and is the reason Cygwin was created.
>
> > or UWIN.
> >
>
> Don't know anything about UWIN but you might try http://pw32.sourceforge.net if
> your opposed to including Cygwin in your executables.
>
> Cheers,
>
> =====
> Earnie Boyd
> mailto:earnie_boyd@yahoo.com
>
> ---         <http://earniesystems.safeshopper.com>         ---
> --- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
> ---   Minimalist GNU for Windows <http://www.mingw.org/>   ---
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
> http://photos.yahoo.com/
> _______________________________________________
> MinGW-users mailing list
> MinGW-users@lists.sourceforge.net
>
> You may change your MinGW Account Options at:
> http://lists.sourceforge.net/mailman/listinfo/mingw-users


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]