#include <unistd.h>
int main(void)
{
unsigned long *samples;
unsigned long *size;
faacEncHandle handle;
faacEncConfigurationPtr config;
handle = faacEncOpen(44100,2,samples,size);
if (handle == NULL) {
return -1;
}
config = faacEncGetCurrentConfiguration(handle);
faacEncSetConfiguration(handle, config);
return 0;
}
gcc test.c -g -o test -lfaac
/usr/local/lib/libfaac.so: undefined reference to `log'
/usr/local/lib/libfaac.so: undefined reference to `cos'
/usr/local/lib/libfaac.so: undefined reference to `sin'
/usr/local/lib/libfaac.so: undefined reference to `pow'
/usr/local/lib/libfaac.so: undefined reference to `log10'
/usr/local/lib/libfaac.so: undefined reference to `asin'
collect2: ld returned 1 exit status