|
Re: qnx4.25 linking error: unreference function statfs()
|
03/01/2022 4:55 AM
post121742
|
Re: qnx4.25 linking error: unreference function statfs()
what library you have linked your binary against?
Show the compiler line please.
|
|
|
|
Re: qnx4.25 linking error: unreference function statfs()
|
03/02/2022 8:39 AM
post121743
|
Re: qnx4.25 linking error: unreference function statfs()
This should be solved by adding the unix3r library.
For example, file test.c
#include <sys/statfs.h>
#include <stdio.h>
int main(void){
struct statfs buffer;
int ret;
ret = statfs("/", &buffer, 0, 0);
return 0;
}
can be compiled with the next command:
# cc test.c -lunix3r -o test
|
|
|