Edwin, you're a legend! Thank you for your patience! Final result:
$ gcc -Wall ex1.c -o ex1 -L/Users/oliver/clamav/lib -I/Users/oliver/ clamav/include -lclamav $ ./ex1 ex1.c Loaded 478261 signatures. No virus detected. Data scanned: 0.00 MB And after wresting with my project settings, it compiles nicely in Xcode too. > Also be aware that the API in 0.95 will be significantly different, > so I recommend you develop your application against SVN. Cool. Thanks for the heads up. I just downloaded it and will keep up- to-date. Are there any docs around the planned changes? > I meant not to include libclamav in your source distribution, since it > will eventually become out-of-date. Ah, yes, I get you now. I won't include the clamav source in my code distributions, but will point to the official site instead. > On Linux you would just make your package depend on libclamav being > installed, I don't know about Mac OS X. Not in the Mac world. The preferred method is to distribute bundled binaries. 99% of Mac users won't have GCC installed and an even greater number will expect everything to work out of the box without even an install. I will certainly keep the sources separate, though, and will link to the official site for libclamav. Once again thanks greatly for your help. You're a star! Yours, Oliver _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml
