Re: RE: [PIC] Mini Howto: Microchip tools under Linux with Wine

Jeff <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.gnupic
Message-ID <[email protected]>
On Saturday 10 September 2005 04:27 am, Rob Hamerling wrote:
>
> Today I have released XWisp2 version 1.7.00.
> Major enhancement: runs now also under Linux besides OS/2 eComStation
> and Windows.
>

It may run under Linux, but it won't compile in Linux.

Your makefile seems to be for OS2 (?). I made a Makefile for Linux, and gcc 
goes berserk when attempting to compile the code.

Some C files include "xwisp2.h", others include "XWisp2.h". Includes in Linux 
are case sensitive. After fixing that, I get a multitude of error messages 
regarding object types. Gcc is quite picky about proper typing (which is a 
Good Thing), and treats such things as passing a char pointer when it expects 
a const char pointer as an error, not a warning.

There may be gcc flags that will force gcc to compile such lines anyway, but 
IMHO, using such features is not a good idea. It makes debugging more 
difficult, and some logical errors in the code can remain undetected for a 
long time.

Jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.