Date: Sun, 1 Sep 2002 04:51:12 -0700 (PDT) From: chk no <chuck@chkno.net> To: freebsd-questions@freebsd.org Cc: chkno@chkno.net Subject: asm+sdl: environ, __progname not found Message-ID: <200209011151.g81BpCC53574@chkno.net>
next in thread | raw e-mail | index | archive | help
I'm trying to link to libSDL from assembly source, & I'm getting some undefined references: chkno$ nasm -f elf test.asm chkno$ ld -lc_r -L/usr/local/lib -lSDL-1.1 test.o -o test /usr/lib/libc_r.so: undefined reference to `environ' /usr/lib/libc_r.so: undefined reference to `__progname' What do I need to do? System info: chkno$ uname -a FreeBSD chkno.net 4.5-RELEASE-p19 FreeBSD 4.5-RELEASE-p19 #1: Tue Aug 27 17:04:51 PDT 2002 su@chkno.net:/usr/obj/usr/src/sys/CHK i386 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209011151.g81BpCC53574>