Still no joy: $ gcc -Wall ex1.c -o ex1 -L/Users/oliver/clamav/lib ex1.c:32:20: error: clamav.h: No such file or directory ...
... followed by the expected list of undeclared functions, etc. The contents of /Users/oliver/clamav/lib is as follows: $ cd /Users/oliver/clamav/lib $ ls libclamav.5.dylib libclamunrar.la libclamav.a libclamunrar_iface.5.dylib libclamav.dylib libclamunrar_iface.a libclamav.la libclamunrar_iface.dylib libclamunrar.5.dylib libclamunrar_iface.la libclamunrar.a pkgconfig libclamunrar.dylib Include section of ex1.c is as follows: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <clamav.h> My reason for wanting to build ex1.c is because I want to build an OS X UI for clamav. (I know about ClamXav, but have some issues with it - mainly that it is not GPL and is ugly.) I have the the guts of the UI done, but want to get it running with libclamav before going ahead with a nested widget that I predict will be tricky. Incidentally, will clamav need to be installed alongside any distribution of the UI? Or will inclusion of the library be enough? Thanks greatly for your help, Oliver _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml
