[Mono-list] RE: build error

Dick Porter dick@ximian.com
05 Nov 2002 10:16:03 +0000


On Tue, 2002-11-05 at 03:51, Piyush, Garyali (IE10) wrote:
> I wanted to know what does "-mno-cygwin" do because I could not find it
> anywhere in the info pages of gcc??

It tells gcc to build executables that don't rely on the cygwin dll. 
You need to have the mingw packages installed.

> 
> There was one more issue. Even after finding Boehm GC i.e
> 
> #define HAVE_BOEHM_GC 1 it still showed
> #undef HAVE_GC_GC_H
> So it had to be changed to "1".
> 
> Apart from that the <gc/gc.h> in os/gc_wrapper.h couldn't be linked and had
> to be changed to "/usr/local/include/gc/gc.h"

You could try adding /usr/local/include to the line in the script that
sets CPPFLAGS.  (CPPFLAGS="$CPPFLAGS -I$here/install/include
-I/usr/local/include")

The script assumes that it will install libgc, and sets the parameters
accordingly.  Did you build libgc yourself under cygwin?  I'm not sure
if that produces a working library.  (The libgc binaries we distribute
were build with vc++.)

- Dick