undefined reference to environ

Desai, Rajesh rajesh.desai at windriver.com
Wed Apr 18 07:03:28 UTC 2007


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.




More information about the freebsd-questions mailing list