[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] windows compiling cmodule.c
From: |
Greg Freemyer |
Subject: |
Re: [rdiff-backup-users] windows compiling cmodule.c |
Date: |
Tue, 30 Dec 2003 13:11:05 -0500 |
On Mon, 2003-12-29 at 23:45, David Kempe wrote:
> Hi,
> I am trying to compile 0.13.3 on wndows using mingw32 instead of cygwin.
> I can get pretty far, but get stuck at the point where gcc complains about
> the cmodule.c file.
> here is the output:
>
> building 'rdiff_backup.C' extension
> c:\work\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ic:\work\python23\incl
> ude
> -Ic:\work\python23\PC -c cmodule.c -o build\temp.win32-2.3\Release\cmodule.o
> cmodule.c: In function `c_make_file_dict':
> cmodule.c:93: warning: implicit declaration of function `lstat'
<snip lots of errors>
>
> thanks
>
> dave
>
>
This looks strange. Much more than a simple cygwin/ming32 difference.
Try the normal cygwin gcc without the -mno-cygwin option. If that works
then at least you know you have good source files.
Then try just adding the -mno-cygwin option to the standard compiler.
That should make it compile a ming32 like executable. (ie. cygwin.dll
is not required to run the produced exe.)
I have never tried to directly call ming32, I have only used the
-mno-cygwin option to emulate it behind the scenes. (not sure how that
happens.)
Greg
--
Greg Freemyer