Re: Developing linux Applications_eric harlow Ch8
- From: acano systec com
- To: jc signbrowser org uk
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Developing linux Applications_eric harlow Ch8
- Date: Fri, 22 Sep 2000 17:21:57 -0500
On Thu, 21 Sep 2000 14:39:17 +0100, jonathan chetwynd <jc signbrowser org uk> wrote:
This is a multi-part message in MIME format.
--------------226C0076217203FDA025341B
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
If anyone has used this excellent book I have found one or two problems.
Just now I'd like to use the gnotepad out of the box with my clients,
yet it will not make.
Ideas please
I just added
#include <stdio.h>
to notepad.c and it compiles (although you still get a lot of warnings)
--
jonathan chetwynd
jc signbrowser org uk
IT teacher (learning difficulties)
& accessibility consultant
--------------226C0076217203FDA025341B
Content-Type: text/plain; charset=us-ascii;
name="ch8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="ch8"
[jonathan localhost ch8.notepad]$ make
gcc -Wall -O `gtk-config --cflags` -c -g notepad.c
notepad.c: In function `ImportFile':
notepad.c:74: warning: implicit declaration of function `strcat'
notepad.c:76: warning: implicit declaration of function `ConvertRTF'
notepad.c: In function `LoadFile':
notepad.c:93: `FILE' undeclared (first use in this function)
notepad.c:93: (Each undeclared identifier is reported only once
notepad.c:93: for each function it appears in.)
notepad.c:93: `infile' undeclared (first use in this function)
notepad.c:93: warning: statement with no effect
notepad.c:94: parse error before `struct'
notepad.c:104: `fileStatus' undeclared (first use in this function)
notepad.c:105: `fileLen' undeclared (first use in this function)
notepad.c:110: warning: implicit declaration of function `fopen'
notepad.c:116: warning: implicit declaration of function `fread'
notepad.c:119: warning: implicit declaration of function `ftell'
notepad.c:131: warning: implicit declaration of function `fclose'
notepad.c: In function `SaveFile':
notepad.c:150: `FILE' undeclared (first use in this function)
notepad.c:150: `outfile' undeclared (first use in this function)
notepad.c:150: warning: statement with no effect
notepad.c:151: parse error before `char'
notepad.c:162: `buffer' undeclared (first use in this function)
notepad.c:168: `nchars' undeclared (first use in this function)
notepad.c:168: warning: implicit declaration of function `fwrite'
make: *** [notepad.o] Error 1
--------------226C0076217203FDA025341B--
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]