Closed iamdavidcz closed 4 years ago
This question isn't related to the userland libraries, but is purely a question of gcc/ld syntax (you are asking to link together libraries without any crt code). e.g. you'd have the same issue if you removed mmal calls and added puts("hello world") and tried to build it this way.
Please use the forum for this type of help.
Hi,
I have the following code in the
camera.c
file:Then I'm compiling it with gcc 9.3.0 without any issues:
And eventually I'd like to link it using
ld
, but I'm getting a warning:When I'm trying to execute
camera
binary I'm getting the following error:Here is the
ldd
output: