Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jun 1998 07:47:37 +1000 (EST)
From:      John Birrell  <jb@cimlogic.com.au>
To:        nanbor@cs.wustl.edu (Nanbor Wang)
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: Undefined symbol `xxx' referenced (use libc_r ?)
Message-ID:  <199806132147.HAA00949@cimlogic.com.au>
In-Reply-To: <ovpsol944m7.fsf@lambada.cs.wustl.edu> from Nanbor Wang at "Jun 13, 98 12:02:24 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Nanbor Wang wrote:
> Hi,
> 
> nanbor@fennec build/threaded/tests> make
> g++ -w -fno-strict-prototypes -D_THREAD_SAFE -O2 -g -fno-implicit-templates    -I. -I/home/nanbor/ACE_wrappers/build/threaded  -o Env_Value_Test .obj/Env_Value_Test.o -L/home/nanbor/ACE_wrappers/build/threaded/ace -L./  -lACE -lc_r -lstdc++ -lcompat 
> .obj/Env_Value_Test.o: Undefined symbol `_mkdir' referenced (use -lc_r ?)
> ld: Spurious undefined symbols: # undefined symbols 1, reported 0
> gmake: *** [Env_Value_Test] Error 1
> 
> What does it mean?  Any hints?

Link with -pthread and don't add -lc_r in the middle of the libraries.
You are linking partly against libc_r and partly against libc. Don't
do that.

-- 
John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/
CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806132147.HAA00949>