Chris Beamis wrote:
[]
gcc -O3 -W -Wall -arch ppc -pedantic-errors -Wno-long-double utilities.c
utilities.c: In function `strtoupper':
[]
ld: Undefined symbols:
_main
make: *** [beamisutilitieslib.a(utilities.o)] Error 1
[]
#CFLAGS = -g -O -I. -Xcpluscomm -w2 -n32 -LANG:bool=ON -c
#CFLAGS = -g -O -I. -I$(BEAMISLIBDIR) -Xcpluscomm -w2 -n32 -c
#CFLAGS = -O3 -W -Wall -pedantic-errors -m486 -I$(BEAMISLIBDIR)
CFLAGS = -O3 -W -Wall -arch ppc -pedantic-errors -Wno-long-double
Did you play with these different versions of CFLAGS? You should choose
one which has a "-c" flag. Or simply put -c at the end of this last line.
[]
LOCALLIB = beamisutilitieslib.a
all: $(LOCALLIB)
LOCALLIBOBJS = $(LOCALLIB)(utilities.o) \
$(LOCALLIB)(odeint.o) \
$(LOCALLIB)(optimisers.o) \
$(LOCALLIB)(non_rect_struct.o) \
$(LOCALLIB)(non_rect_lookup.o) \
$(LOCALLIB)(SixDOF.o) \
$(LOCALLIB)(ThreeDOF.o)
#include $(COMMONRULES)
$(LOCALLIB): $(LOCALLIBOBJS)
.c.a:
$(COMPILE) $(CFLAGS) $<
ar rvso $@ $%
rm -f $%
# ar rvu $@ $%
--
Martin
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Fink-beginners mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-beginners