This is the mail archive of the 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]
Other format: [Raw text]

Re: Help cross compiling for MingW32 standalone executables.

Here is a specific example:

$ cat test.c
#include <math.h>
#include <stdlib.h>
int main()  {
  void *s=sin;
  return (size_t)s;

$ gcc -mno-cygwin -o test.exe test.c -lm

$ strings test.exe |grep dll

It turns out this example works fine, if I leave off -lm.  If there is a
flag I can set so a "configure" script will think -lm does not exist, my
problem would be solved.


----- Original Message ----- 
From: "Bill C. Riemers" <>
To: <>
Sent: Tuesday, May 13, 2003 7:35 PM
Subject: Help cross compiling for MingW32 standalone executables.

> I've been attempting to build mingw32 standalone executables by cross
> compiling with the -mno-cygwin option.  I thought it was working
> until I handed off the execuables to someone without cygwin.  It turns out
> the executables still link in cygwin1.dll.  Does anyone know what flag I
> should use to get a true standalone excutable?
>                                             Bill

Unsubscribe info:
Problem reports:

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