gnupic: Re: [gnupic] making xwisp2 more UNIX compliant


Previous by date: 26 Oct 2005 03:53:41 +0100 Re: [gnupic] making xwisp2 more UNIX compliant, Jeff
Next by date: 26 Oct 2005 03:53:41 +0100 Re: [gnupic] making xwisp2 more UNIX compliant, easy-b.freesurf.ch
Previous in thread: 26 Oct 2005 03:53:41 +0100 Re: [gnupic] making xwisp2 more UNIX compliant, Jeff
Next in thread: 26 Oct 2005 03:53:41 +0100 Re: [gnupic] making xwisp2 more UNIX compliant, easy-b.freesurf.ch

Subject: RE: [gnupic] making xwisp2 more UNIX compliant
From: Chen Xiao Fan ####@####.####
Date: 26 Oct 2005 03:53:41 +0100
Message-Id: <3B8AEFFADD3DD4118F8100508BACEC2C0A289356@spex>

>From: Jeff
>Sent: Wednesday, October 26, 2005 10:36 AM
>
>xwisp2_gu.mak in version 8121 is broken in Linux. "No rule to 
>make target `xwisp2cfg.o'".
>
>Using xwisp2_gu.mak from version 8120 works ok.
>
>Jeff

There is a typo in line 15. "wisp2cfg.o" is wrong. It
should be "xwisp2cfg.o".

I also figured out a way to modify compiler.h so that 
it can also be built under Windows with GCC/MinGW/Msys.
Rob will include it in the next release of xwisp2.
Perhaps this can be adapted to Linux as well to 
cross-compile for Windows.

To add Win32/MinGW GCC configuration, change compiler.h and
include the following in compiler.h file.

#elif defined(__GNUC__) && defined(__WIN32__)             // GCC + WIN32
  #define compiler_name     "GCC"
  #define compiler_version  (__GNUC__)
  #define compiler_minor    (__GNUC_MINOR__)
  #define max(x,y) ((x > y) ? (x) : (y))                // missing ..
  #define min(x,y) ((x < y) ? (x) : (y))                // .. functions
  #define __W32__
  #define strnicmp strncasecmp                          // alias
  #define stricmp  strcasecmp                           // alias

Regards,
Xiaofan

Previous by date: 26 Oct 2005 03:53:41 +0100 Re: [gnupic] making xwisp2 more UNIX compliant, Jeff
Next by date: 26 Oct 2005 03:53:41 +0100 Re: [gnupic] making xwisp2 more UNIX compliant, easy-b.freesurf.ch
Previous in thread: 26 Oct 2005 03:53:41 +0100 Re: [gnupic] making xwisp2 more UNIX compliant, Jeff
Next in thread: 26 Oct 2005 03:53:41 +0100 Re: [gnupic] making xwisp2 more UNIX compliant, easy-b.freesurf.ch


Powered by ezmlm-browse 0.20.