![]() |
![]() |
![]() |
![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
September 3rd, 2009, 09:19 PM
|
#1 |
|
Commander Keen
Join Date: Apr 2007
Location: Somewhere
Posts: 5
|
Makefile/code needs updating for gcc ver. 4.0+
Just as fair warning, the makefile and the code will need a little updating. Versions of gcc at 4.0+ no longer include the "-fwritable-strings" option. The resulting compiler error is as follows...
Code:
g_game.c: In function ‘G_DoLoadGame’: g_game.c:2008: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness /usr/include/string.h:397: note: expected ‘const char *’ but argument is of type ‘byte *’ g_game.c:2008: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness g_game.c:2008: note: expected ‘const char *’ but argument is of type ‘byte *’ g_game.c:2008: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness /usr/include/string.h:397: note: expected ‘const char *’ but argument is of type ‘byte *’ g_game.c:2008: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness g_game.c:2008: note: expected ‘const char *’ but argument is of type ‘byte *’ g_game.c:2008: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness g_game.c:2008: note: expected ‘const char *’ but argument is of type ‘byte *’ g_game.c:2008: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness g_game.c:2008: note: expected ‘const char *’ but argument is of type ‘byte *’ g_game.c: In function ‘G_ReadDemoTiccmd’: g_game.c:2324: error: lvalue required as increment operand g_game.c:2325: error: lvalue required as increment operand g_game.c:2335: error: lvalue required as increment operand g_game.c:2337: error: lvalue required as increment operand g_game.c:2343: error: lvalue required as increment operand g_game.c:2350: error: lvalue required as increment operand g_game.c:2352: error: lvalue required as increment operand make: *** [../objs/g_game.o] Error 1 |
|
|
September 4th, 2009, 08:51 AM
|
#2 |
|
Commander Keen
Join Date: Apr 2007
Location: Somewhere
Posts: 5
|
Correction... the above error is if you remove the argument '-fwritable strings'. If it is still included, the compiler mentions right away that it doesn't understand the option and halts the creation of the program.
|
|
|
September 18th, 2009, 10:08 PM
|
#3 |
|
Join Date: Dec 2002
Location: Boston, MA
Posts: 572
|
That's the source code to Legacy 1.43, not 2.0.
The 2.0 source should compile out of the box and can be found here: https://doomlegacy.svn.sourceforge.n...y/legacy/trunk
__________________
Member of the DooM Legacy Team |
|
|
September 19th, 2009, 01:34 PM
|
#4 |
|
Commander Keen
Join Date: May 2005
Posts: 9
|
Is there a way to fix this to get 1.43 to compile?
|
|
|
September 20th, 2009, 12:32 PM
|
#5 |
|
Join Date: Apr 2001
Location: Somewhere between Space and Time
Posts: 5,185
|
Is there any way we could get a new legacy 2.0 win32 binary? :P
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Updating Wiki | imd1b4u | Doomsday | 2 | October 3rd, 2007 09:24 PM |
| [Resolved] cannot find input file: Makefile.in | Replicators | Doomsday | 7 | July 28th, 2006 04:39 AM |
| updating | dOOmwarrior_Mars | DOOM Series | 1 | October 6th, 2005 04:07 PM |
| updating doomsday? | an_imp | Doomsday | 1 | August 24th, 2004 06:25 AM |
| legacy makefile | p | Doom Legacy | 12 | March 5th, 2002 11:43 AM |