Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Apr 2007 08:25:26 +0200
From:      "Desai, Rajesh" <rajesh.desai@windriver.com>
To:        <freebsd-questions@freebsd.org>
Subject:   undefined reference to environ
Message-ID:  <460801A4097E3D4CA04CC64EE6485848130E7C@ism-mail03.corp.ad.wrs.com>

next in thread | raw e-mail | index | archive | help

Hi,

when i link my application witj -lc (libc). i get the following errors


/usr/lib/libc.a(getenv.o): In function `getenv':
getenv.o(.text+0x19): undefined reference to `environ'
getenv.o(.text+0x29): undefined reference to `environ'
getenv.o(.text+0x63): undefined reference to `environ'
/usr/lib/libc.a(getenv.o): In function `__findenv':
getenv.o(.text+0xd5): undefined reference to `environ'
getenv.o(.text+0xe2): undefined reference to `environ'
/usr/lib/libc.a(getenv.o)(.text+0x113): more undefined references to =
`environ' follow
/usr/lib/libc.a(getprogname.o): In function `_getprogname':
getprogname.o(.text+0x4): undefined reference to `__progname'

can any body help me what can be wrong..and where i cam dinf thease =
symbols.





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