Errors to Compliated

Posted by Magnefikko on Wed 18 Jan 2006 04:22 PM — 10 posts, 37,193 views.

Poland #0
I hawe SmaugFuzz.That's Compliation LOG:

src/fight.c: In function `damage':
src/fight.c:2221: warning: passing arg 1 of `act' makes integer from pointer without a cast
src/fight.c:2221: warning: passing arg 2 of `act' from incompatible pointer type
src/fight.c:2221: error: too few arguments to function `act'
src/fight.c:2229: warning: passing arg 1 of `act' makes integer from pointer without a cast
src/fight.c:2229: warning: passing arg 2 of `act' from incompatible pointer type

src/fight.c:2229: error: too few arguments to function `act'

make.exe: *** [src/o/fight.o] Error 1


Eee....Help:-)
USA #1
Can you show us those lines?
USA #2
You might also want to look into why your Makefile seems to be compiling things from one level above the src directory as the standard FUSS packages do all that from the src directory itself and the error output when there is a problem does not include mention of the src directory.
Poland #3
Nothing beguile from it. It beguile 'Makefile' and 'Makefile.devcc' in SRC and...

---
make.exe -f "Makefile.devcc" all
gcc.exe -c src/fight.c -o src/o/fight.o -I"C:/Dev-Cpp/include" -DIMC -DIMCSMAUG

src/fight.c: In function `damage':
src/fight.c:2221: warning: passing arg 1 of `act' makes integer from pointer without a cast
src/fight.c:2221: warning: passing arg 2 of `act' from incompatible pointer type
src/fight.c:2221: error: too few arguments to function `act'
src/fight.c:2229: warning: passing arg 1 of `act' makes integer from pointer without a cast
src/fight.c:2229: warning: passing arg 2 of `act' from incompatible pointer type

src/fight.c:2229: error: too few arguments to function `act'

make.exe: *** [src/o/fight.o] Error 1
---
USA #4
See, leaving out that you were using DevC++ in your original post delays any kind of solution you might have received. Since this is still considered experimental and not officially supported we could have possibly worked this out 2 days ago.

Anyway. In order to know what it's complaining about, we will need to see the code in fight.c from lines 2220 through 2230, with the complaining lines in your error messages marked so we can see what's going on.
Poland #5
Building Makefile: "<Patch>Makefile.win"
Wykonywanie make...
make.exe -f "<Path>Makefile.win" all
gcc.exe -c src/update.c -o src/o/update.o -I"C:/Dev-Cpp/include" -ansi -traditional-cpp -w -fno-access-control -fdollar-in-identifiers -fsave-memoized -nostdlib -fmessage-length=0

cc1.exe: error: unrecognized command line option "-fdollar-in-identifiers"
cc1.exe: error: unrecognized command line option "-fsave-memoized"

make.exe: *** [src/o/update.o] Error 1

Wykonanie zakoñczone ["Process End"]

File "Update.o" is in scr/o :-)

Help:-) I hawe Zlib 1.2.1
Amended on Sat 03 Jun 2006 11:52 AM by Magnefikko
USA #6
Looks like your makefile is trying to use options that your compiler doesn't know about.

1) where did you get your makefile?
2) what compiler are you using? (version, etc.)
3) where did you get your compiler?
Poland #7
1.I hawe SmaugFUZZ...makefile
it is built just at,if I have apprehended your question well...
2.I use DevC++ V.4.9.9.2
3.I don't remember:-)
USA #8
Is SmaugFUZZ something different from SmaugFUSS? Never heard of the first one...

If we're talking about SmaugFUSS, I'm not sure if DevC++ is supported yet. It's possible that the makefile assumes GCC, and since you're using a different compiler, things might not work. You could just try removing the two offending flags, and see if that works...
Canada #9
Posted by Ksilyan:
Is SmaugFUZZ something different from SmaugFUSS? Never heard of the first one...



I don't think you apprehend the question well, dude.