-------- Message d'origine -------- Sujet: Re: Link/Load problem using gpc Trap unit Date: Thu, 07 Apr 2005 18:17:09 +0100 De: Maurice Lombardi Maurice.Lombardi@ujf-grenoble.fr A: Angelo FUMAGALLI Angelo.Fumagalli@alcatel.it Références: E1DIUER-00032L-00@hera.math.uni.wroc.pl1112730270.11406.474775@goedel.fjf.gnu.de003901c53b74$ef09f720$7c286297@Fumagalli 1112886396.968.886374@goedel.fjf.gnu.de 013601c53b8c$5a79a930$7c286297@Fumagalli
Angelo.Fumagalli@alcatel.it a écrit:
gpc pi.o ulib.a gpclib.a gcclib.a -o p.exe
gpclib.a or libgpc.a ??
to solve the undefined reference have I also to link the trap.o and trapc.o files???
yes, everything you need in that case, but when you link with gpc (instead of ld) it finds himself libgpc.a and libgcc.a (so a wrong name may succeed). Try to use the option -v to see what is done.
Maurice