I have two object files, one with a symbol that is undefined (from standard input):
bin/src/ghdl_grt/ghwlib.c.o: U sched_getstreams
...and one with the same symbol that is defined:
bin/src/nuttx/nuttx/nuttx.o:0000000000004f0c T sched_getstreams
When I try to link them together, the symbol is for some reason still undefined:
$ ld bin/src/ghdl_grt/ghwlib.c.o bin/src/nuttx/nuttx/nuttx.o -o test.o -lc
ld: warning: cannot find entry symbol _start; defaulting to 0000000000401140
ld: bin/src/ghdl_grt/ghwlib.c.o: in function `ghw_read_range(ghw_handler*)':
/home/jon/controlix-code/src/ghdl_grt/ghwlib.c:351: undefined reference to `sched_getstreams'
What am I missing?