For some weird reason sf.net won't let me comment on my bug report :-(
Building with source 0.7.1 and the changes from a cvs checkout, which made all of the former errors went away but brought up "one" new one
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I. -I../include -I.. -I.. -I../include -I. -Wall -DDATADIR=\"/usr/local/share\" -DPREFIX=\"/usr/local\" -g -O2 -I/SDK/local/newlib/include/SDL -D_GNU_SOURCE=1 -MT ascii.o -MD -MP -MF .deps/ascii.Tpo -c -o ascii.o ascii.c
ascii.c: In function 'ascii_load_fixed_charset':
ascii.c:405: error: 'new' undeclared (first use in this function)
ascii.c:405: error: (Each undeclared identifier is reported only once
ascii.c:405: error: for each function it appears in.)
ascii.c:405: error: expected ';' before 'struct'
gmake[2]: *** [ascii.o] Error 1
gmake[2]: Leaving directory `/Development/Coding/Ports/nazghul-0.7.1/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/Development/Coding/Ports/nazghul-0.7.1'
gmake: *** [all] Error 2
Thanks a lot, i was nearly thinking you stopped working on Nazghul :-)
I replaced the 'new' in ascii.c and a few other .c files with something more C-friendly. However, there are cases where I have to use it for c++. If it continues to be a problem let me know.
Thank you Gordon, that did it...unfortunately just around the corner the next error popped up.
I know you got a lot of work on your hands and i hope you don't mind adding them one after the other on this item?
I don't want to create too much noise on your tracker.
The next error is:
g++ -DHAVE_CONFIG_H -I. -I.. -I/SDK/Local/include -I. -I../include -I.. -I.. -I../include -I. -mcrt=newlib -Wall -DDATADIR=\"/SDK/Local/share\" -DPREFIX=\"/SDK/Local\" -mcrt=newlib -I/SDK/local/newlib/include/SDL -D_GNU_SOURCE=1 -c astar.c
In file included from astar.c:22:
astar.h:47: error: expected specifier-qualifier-list before 'bool'
astar.c: In function 'astar_search':
astar.c:322: error: 'struct astar_search_info' has no member named 'limit_depth'
astar.c:322: error: 'struct astar_search_info' has no member named 'max_depth'
gmake[2]: *** [astar.o] Error 1
gmake[2]: Leaving directory `/Development/Coding/C++/nazghul/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/Development/Coding/C++/nazghul'
gmake: *** [all] Error 2
The astar.c error is gone (maybe i had a faulty SDK...rebuild it since) but i get one which is a little tricky to come over.
A double definition which i can't fix :-(
Maybe, if you got some time on your hands, you could take alook, please?
Thank you very much
gmake all-recursive
gmake[1]: Entering directory `/Development/Coding/Ports/nazghul-0.7.1'
Making all in src
gmake[2]: Entering directory `/Development/Coding/Ports/nazghul-0.7.1/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I. -I../include -I.. -I.. -I../include -I. -Wall -DDATADIR=\"/usr/local/share\" -DPREFIX=\"/usr/local\" -g -O2 -I/SDK/local/newlib/include/SDL -D_GNU_SOURCE=1 -MT menus.o -MD -MP -MF .deps/menus.Tpo -c -o menus.o menus.c
menus.c:1473: error: redefinition of 'struct option'
/SDK/newlib/include/getopt.h:52: error: previous definition of 'struct option'
menus.c:1508: error: too many initializers for 'option'
menus.c:1508: error: too many initializers for 'option'
menus.c:1508: error: too many initializers for 'option'
menus.c:1508: error: too many initializers for 'option'
menus.c:1508: error: invalid conversion from 'const char*' to 'int'
menus.c:1508: error: cannot convert 'const char*' to 'int*' in initialization
menus.c:1508: error: invalid conversion from 'const char*' to 'int'
menus.c:1508: error: cannot convert 'const char*' to 'int*' in initialization
menus.c:1508: error: invalid conversion from 'const char*' to 'int'
menus.c:1508: error: cannot convert 'const char*' to 'int*' in initialization
menus.c:1508: error: invalid conversion from 'const char*' to 'int'
menus.c:1508: error: cannot convert 'const char*' to 'int*' in initialization
menus.c: In function 'void option_screen_dims(option*)':
menus.c:1539: error: 'struct option' has no member named 'startup_val'
menus.c:1540: error: 'struct option' has no member named 'restart'
menus.c:1542: error: 'struct option' has no member named 'restart'
menus.c:1545: error: invalid conversion from 'char*' to 'int'
menus.c: In function 'void option_yes_no(option*)':
menus.c:1555: error: invalid conversion from 'int' to 'const char*'
menus.c:1555: error: initializing argument 1 of 'int strcmp(const char*, const char*)'
menus.c:1556: error: invalid conversion from 'const char*' to 'int'
menus.c:1557: error: 'struct option' has no member named 'enable'
menus.c:1558: error: 'struct option' has no member named 'restart'
menus.c:1560: error: invalid conversion from 'const char*' to 'int'
menus.c:1561: error: 'struct option' has no member named 'enable'
menus.c:1562: error: 'struct option' has no member named 'startup_val'
menus.c:1563: error: 'struct option' has no member named 'restart'
menus.c:1563: error: 'struct option' has no member named 'restart_on_enable'
menus.c:1565: error: 'struct option' has no member named 'restart'
menus.c: In function 'void option_music(option*)':
menus.c:1600: error: invalid conversion from 'char*' to 'int'
menus.c: In function 'int options_save()':
menus.c:1623: error: 'struct option' has no member named 'comment'
menus.c:1624: error: 'struct option' has no member named 'key'
menus.c: In function 'void options_menu()':
menus.c:1651: error: 'struct option' has no member named 'startup_val'
menus.c:1652: error: 'struct option' has no member named 'startup_val'
menus.c:1652: error: 'struct option' has no member named 'key'
menus.c:1656: error: 'struct option' has no member named 'entry_val'
menus.c:1656: error: 'struct option' has no member named 'key'
menus.c:1659: error: 'struct option' has no member named 'changed'
menus.c:1662: error: 'struct option' has no member named 'key'
menus.c:1669: error: 'struct option' has no member named 'restart'
menus.c:1710: error: 'struct option' has no member named 'handler'
menus.c:1713: error: 'struct option' has no member named 'changed'
menus.c:1713: error: 'struct option' has no member named 'entry_val'
menus.c:1719: error: 'struct option' has no member named 'changed'
menus.c:1720: error: 'struct option' has no member named 'restart'
menus.c:1733: error: 'struct option' has no member named 'changed'
menus.c:1734: error: 'struct option' has no member named 'restart'
menus.c:1750: error: 'struct option' has no member named 'key'
gmake[2]: *** [menus.o] Error 1
gmake[2]: Leaving directory `/Development/Coding/Ports/nazghul-0.7.1/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/Development/Coding/Ports/nazghul-0.7.1'
gmake: *** [all] Error 2
The build errors doesn't come up anymore, thanks for the help