Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: devel
build & debugging ex1.c
 

Index | Next | Previous | View Flat


tomb.fish at gmail

Dec 4, 2008, 1:18 PM


Views: 1278
Permalink
build & debugging ex1.c

Hi,
I just want to debug ex1.c in Code::Blocks IDE,
But it fails, Please have look at my screenshot: http://omploader.org/vem1m

What I did:
I've created new folder 'ex1' and I've copied ex1.c file to this folder.
Next I've moved all files from libclamav to this folder.
I change only one line in ex1.c:
#include <clamav.h>
to
#include "clamav.h"

When I build it fails, saying:

obj/Debug/ex1.o||In function `main':|
/home/tomb/projects/aau/virus_scanner/codeblocks/ex1/ex1.c|64|undefined
reference to `cl_retdbdir'|
/home/tomb/projects/aau/virus_scanner/codeblocks/ex1/ex1.c|64|undefined
reference to `cl_load'|
/home/tomb/projects/aau/virus_scanner/codeblocks/ex1/ex1.c|65|undefined
reference to `cl_strerror'|
/home/tomb/projects/aau/virus_scanner/codeblocks/ex1/ex1.c|73|undefined
reference to `cl_build'|
/home/tomb/projects/aau/virus_scanner/codeblocks/ex1/ex1.c|74|undefined
reference to `cl_strerror'|
/home/tomb/projects/aau/virus_scanner/codeblocks/ex1/ex1.c|75|undefined
reference to `cl_free'|
/home/tomb/projects/aau/virus_scanner/codeblocks/ex1/ex1.c|93|undefined
reference to `cl_scandesc'|
/home/tomb/projects/aau/virus_scanner/codeblocks/ex1/ex1.c|99|undefined
reference to `cl_strerror'|
/home/tomb/projects/aau/virus_scanner/codeblocks/ex1/ex1.c|100|undefined
reference to `cl_free'|
/home/tomb/projects/aau/virus_scanner/codeblocks/ex1/ex1.c|112|undefined
reference to `cl_free'|
||=== Build finished: 10 errors, 0 warnings ===|


What am I missing. I have expected that steps I did will succeed. Can
anyone help? .I am new to linux compilers. I would like to measure
performance for BM and AC algorithms.
Thanks in advance.
Tom
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Subject User Time
build & debugging ex1.c tomb.fish at gmail Dec 4, 2008, 1:18 PM
    Re: build & debugging ex1.c edwintorok at gmail Dec 4, 2008, 1:29 PM
        Re: build & debugging ex1.c tomb.fish at gmail Dec 6, 2008, 10:34 AM
    Re: build & debugging ex1.c edwintorok at gmail Dec 7, 2008, 1:28 AM
        Re: build & debugging ex1.c tomb.fish at gmail Dec 9, 2008, 8:51 AM
    Re: build & debugging ex1.c tomb.fish at gmail Dec 9, 2008, 8:58 AM
    Re: build & debugging ex1.c edwintorok at gmail Dec 9, 2008, 9:00 AM
        Re: build & debugging ex1.c tomb.fish at gmail Dec 9, 2008, 1:43 PM
    Re: build & debugging ex1.c tomb.fish at gmail Dec 9, 2008, 3:31 PM
    Re: build & debugging ex1.c edwintorok at gmail Dec 9, 2008, 11:51 PM
        Re: build & debugging ex1.c tomb.fish at gmail Dec 15, 2008, 3:13 PM
    Re: build & debugging ex1.c edwintorok at gmail Dec 16, 2008, 12:46 AM
    Re: build & debugging ex1.c tomb.fish at gmail Dec 16, 2008, 7:53 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.