Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <39DCDC6C.63D69792@studserv.uni-stuttgart.de> Date: Thu, 05 Oct 2000 21:54:20 +0200 From: Gerhard DOT Utz AT t-online DOT de (Tilman Utz) Reply-To: tilman DOT utz AT studserv DOT uni-stuttgart DOT de X-Mailer: Mozilla 4.7 [de] (Win98; I) X-Accept-Language: de MIME-Version: 1.0 To: Earnie Boyd CC: cygwin Mailing , mingw-users AT lists DOT sourceforge DOT net Subject: Re: -mno-cygwin question References: <20001004142446 DOT 6992 DOT qmail AT web124 DOT yahoomail DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Sender: 0717143775-0001 AT t-dialin DOT net 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 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 AT yahoo DOT com > > --- --- > --- Cygwin: POSIX on Windows --- > --- Minimalist GNU for Windows --- > > __________________________________________________ > Do You Yahoo!? > Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! > http://photos.yahoo.com/ > _______________________________________________ > MinGW-users mailing list > MinGW-users AT lists DOT sourceforge DOT 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 AT sourceware DOT cygnus DOT com