Jump to content
Eternal Lands Official Forums
Sign in to follow this  
Leeloo

C99

Recommended Posts

$ make
make -f Makefile.linux 'CFLAGS=-march=i686 -O3 -fomit-frame-pointer -ffast-math -pipe -DLINUX -DELC  -I/usr/local/include/SDL -D_REENTRANT -I/usr/local/include/libxml2'
make[1]: Entering directory `/home/kfr/c/eternal-lands/elc'
cc -march=i686 -O3 -fomit-frame-pointer -ffast-math -pipe -DLINUX -DELC  -I/usr/local/include/SDL -D_REENTRANT -I/usr/local/include/libxml2   -c -o widgets.o widgets.c
widgets.c: In function `text_field_set_buf_pos':
widgets.c:1199: parse error before `*'
widgets.c:1205: `tf' undeclared (first use in this function)
widgets.c:1205: (Each undeclared identifier is reported only once
widgets.c:1205: for each function it appears in.)
make[1]: *** [widgets.o] Error 1
make[1]: Leaving directory `/home/kfr/c/eternal-lands/elc'
make: *** [release] Error 2

Share this post


Link to post
Share on other sites

My bad, will fix.

 

EDIT: fixed, and added -Wdeclaration-after-statement to compiler flags.

Edited by Grum

Share this post


Link to post
Share on other sites

FYI: This option is only available with gcc-3.4 and above. On gentoo this release is still marked as unstable and has in fact caused a lot of problems lately (with kde compiling against 'old' libraries that were compiled with gcc-3.3). So if anyone of you has still libraries used by EL installed which were compiled with gcc-3.3 or below, be careful, as this might cause trouble, both compile-time as well as run-time related.

Share this post


Link to post
Share on other sites

Well, if the compiler doesn't support this flag, it'll complain, and it's easily removed. Besides, I urge everyone to keep their own Makefile anyway. I wouldn't recommend upgrading the compiler to suit the Makefile btw, please do it the other way around :P

 

On Mandrake everything's compiled with 3.4, so I don't have problems with it.

Share this post


Link to post
Share on other sites

No, I won't use gcc-3.4 for now. I have it already installed, but use it only for mono which requires it. As long as nearly all my libs are compiled with gcc-3.3 I won't switch for EL. I just wanted to point this out, so other people could get aware of it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×