On 2008-12-22 21:36, Oliver Moran wrote: > Compilation with -lclamav went as follows: > > $ gcc -Wall ex1.c -o ex1 -lclamav > ld: library not found for -lclamav > collect2: ld returned 1 exit status > > Does clamav need to be installed for the library API to work? If so, > installation was as follows: > > $ ./configure --prefix=/Users/oliver/clamav --disable-clamav > $ make > $ make install > > After editing the .conf files the installation was tested with: > > $ ~/clamav/bin/freshclam > $ ~/clamav/bin/clamscan ~ > > Everything appeared to be OK. > > Apologies again if I am missing something ridiculously simple - I'm a > usability designer, not a programmer. >
You are missing -L/Users/oliver/clamav/lib. May I ask why do you need to build ex1.c if you're not a programmer? Best regards, --Edwin _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml
