public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* static library and undefined reference
@ 2004-04-09  2:45 Iker Arizmendi
  2004-04-09  3:28 ` Iker Arizmendi
  2004-04-09 13:17 ` Eljay Love-Jensen
  0 siblings, 2 replies; 4+ messages in thread
From: Iker Arizmendi @ 2004-04-09  2:45 UTC (permalink / raw)
  To: gcc-help

Hello all.

I have a project that creates several static libraries
in two directories and an executable that uses them in
a third. The libraries build just fine, and the
executable builds fine, but fails during linking with
"undefined reference" errors. I've checked the libraries
with nm and can see that the symbols the linker claims
are undefined are exported (nm shows marks them with
a "T"). I've checked that the link line includes the
libraries and that libraries that are depended on by
other libraries appear first (and before the executable's
.o file). I also made sure that all the files involved
were compiled with g++ and not gcc. But the errors persist.

What am I missing here? Any help greatly appreciated.

Regards,
Iker



-- 
Iker Arizmendi
AT&T Labs - Research
Speech and Image Processing Lab
e: iker@research.att.com
w: http://research.att.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-04-09 13:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-09  2:45 static library and undefined reference Iker Arizmendi
2004-04-09  3:28 ` Iker Arizmendi
2004-04-09  3:46   ` Iker Arizmendi
2004-04-09 13:17 ` Eljay Love-Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).