I tried to compile the source files for JWasm 2.02 on my Ubuntu system, using the GccUnix.mak makefile and gcc 4.4.3.
But I get some warnings and an error.
See output below, please …
greenhorn@greenhorn-desktop:~/Downloads/JWasm202s$ make -f GccUnix.mak
mkdir GccUnixR
gcc -c -IH -D__UNIX__ -DNDEBUG -O2 -march=native -mtune=native -o GccUnixR/main.o main.c
In file included from main.c:35:
H/globals.h:522: warning: ‘struct asmfixup’ declared inside parameter list
H/globals.h:522: warning: its scope is only this definition or declaration, which is probably not what you want
main.c: In function ‘ReadParamFile’:
main.c:903: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -c -IH -D__UNIX__ -DNDEBUG -O2 -march=native -mtune=native -o GccUnixR/assemble.o assemble.c
In file included from assemble.c:34:
H/globals.h:522: warning: ‘struct asmfixup’ declared inside parameter list
H/globals.h:522: warning: its scope is only this definition or declaration, which is probably not what you want
assemble.c:428: error: conflicting types for ‘OutputBytesAndFixup’
H/globals.h:522: note: previous declaration of ‘OutputBytesAndFixup’ was here
make: *** [GccUnixR/assemble.o] Fehler 1
I'm not such an advanced C-Coder, so please, could you give me a hint how to correct this ?
Thanks in advance
Greenhorn
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi japhet,
I tried to compile the source files for JWasm 2.02 on my Ubuntu system, using the GccUnix.mak makefile and gcc 4.4.3.
But I get some warnings and an error.
See output below, please …
I'm not such an advanced C-Coder, so please, could you give me a hint how to correct this ?
Thanks in advance
Greenhorn
I'm having issues compiling this on OSX. I'm not very skilled with code, but I'm also getting a failure while compiling.
See the output for using the GccUnix.mak
I cannot help, sorry! OSX is not supported.
Man.. I understand it, being iOS dev I hate everything what was 'touched' by poisonous breath of venoumous thrown away fruit..
However, if you replace -Map with -map, it all compiles smoothly under Mac OS X 10.6.x ; )
Apple's LD only know "-map".. no capital letters ; )