Re: [Tuxpaint-devel] Well organized and commented code of my animation application
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: Schrijvers L. <Be...@sk...> - 2008-04-18 12:19:53
|
Hi there,
same problem wiht the case sensitive problem in ZETA(BeOS), aside from
that, quite some parse errors (gcc 2.95.3) in a few files, after I added
the {} the compiles goes ahead but when it finishes it doesn't seem to
compile the binarie (maybe it stops somewhere but I don't have any real
output in the Terminal).
$ LC_ALL=C gcc -I /boot/home/config/include/SDL -lSDL -lSDL_ttf AniMe.c
-o AniMe
In file included from /boot/home/Desktop/commented code/AniMe.c:9:
/boot/home/Desktop/commented code/main.h:9: warning: parameter names
(without types) in function declaration
/boot/home/Desktop/commented code/AniMe.c:63: `close' redeclared as
different kind of symbol
/boot/develop/headers/posix/unistd.h:18: previous declaration of `close'
Regards,
Luc aka Begasus
On vr, 2008-04-18 at 13:15 +0200, Pere Pujal i Carabantes wrote:
> Hi Ajay!
>
> El dc 16 de 04 de 2008 a les 20:52 +0530, en/na Ajay Kumar va escriure:
>
> > The commented code is uploaded here.
> > http://www.uploadcomet.com/download.php?file=6b7e2d553a76f09fca38eafba762e0c6. The necessary images, configuration files, fonts and character file are also included. I have compiled this edited code on my system. It is getting compiled without any errors. Please take a took at my commented code, i hope it makes sense as it is commented.
>
> Some problems I've find compling under linux:
>
> pere@hola:/tmp/commented code$ LC_ALL=C gcc -I /usr/include/SDL -lSDL
> -lSDL_ttf AniMe.c -o Anime
> AniMe.c:6:21: error: SDL_TTF.h: No such file or directory
> In file included from AniMe.c:9:
> main.h:9: warning: parameter names (without types) in function
> declaration
> In file included from AniMe.c:15:
> rendering.h: In function 'drawText':
> rendering.h:5: error: 'TTF_Font' undeclared (first use in this function)
> rendering.h:5: error: (Each undeclared identifier is reported only once
> rendering.h:5: error: for each function it appears in.)
> rendering.h:5: error: 'font' undeclared (first use in this function)
> rendering.h:9: warning: initialization makes pointer from integer
> without a cast
> AniMe.c: In function 'main':
> AniMe.c:3348: error: 'TTF_Quit' undeclared (first use in this function)
>
> It seems a case sensitive problem, in linux I have a SDL_ttf.h
> under /usr/include/SDL, so just correcting the spelling in AniMe.c
> solves this.
>
>
> Next problem, itoa function seems not be available in linux.
>
> pere@hola:/tmp/commented code$ LC_ALL=C gcc -I /usr/include/SDL -l SDL
> -l SDL_ttf AniMe.c -o Anime
> In file included from AniMe.c:9:
> main.h:9: warning: parameter names (without types) in function
> declaration
> /tmp/ccTA5ioG.o: In function `cursor_pos':
> AniMe.c:(.text+0x12755): undefined reference to `itoa'
> AniMe.c:(.text+0x12772): undefined reference to `itoa'
> collect2: ld returned 1 exit status
>
> Googling for this, seems that it should be replaced by sprintf or
> snprintf. I am unable to compile further.
>
>
>
>
> Hope this helps
> Pere
>
> Note, since you are developing under windows, you migth want to check
> those pages about compiling tuxpaint under windows:
>
> http://johnnypops.demon.co.uk/mingw/index.html
> http://johnnypops.demon.co.uk/mingw-old/index.html
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Tuxpaint-devel mailing list
> Tux...@li...
> https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel
|