I am on a brand new 5.1 NetBSD box.
I copied the "Hello World" code from here
The code compiles with this command:
cc -I /usr/X11R7/include -L /usr/X11R7/lib -lX11 helloworld.c
When I run
a.out, I get the following error:
Shared object "libX11.so.6" not found
I confirmed that
/usr/X11R7/lib/libX11.so.6 does exist.
./a.out: -lX11.6 => not found -c.12 => /usr/lib/libc.so.12
How do I properly link against X11 on NetBSD?