HTTrack Website Copier
Free software offline browser - FORUM
Subject: wrapper not called
Author: Jayaprakash
Date: 10/01/2007 16:44
 
Hi,

I am using httrack-3.41.22 in linux (Ubuntu). I have modified the example
program given in the httrack website as follows.

EXTERNAL_FUNCTION int hts_plug(httrackp *opt, const char* argv) {
  /* To make sure this function is called, I am Just creating a file */
  FILE *fp = fopen("/tmp/mytouch1.file","w");
  close(fp);
  ..............
  ..............
  ..............
  return 1;  /* success */
}

I used the following command to compile

$ gcc -I /usr/local/include/httrack/  -O -g3 -shared -o mylibrary.so
myexample.c

It created a mylibrary.so without any errors.

And I want to plug the module using the commandline.

$ httrack --wrapper mylibrary <http://www.google.co.in>

But I found the program was not calling the external function. 

Can any one tell me where I am wrong ?
-Jp
 

 
Reply


All articles

Subject Author Date
wrapper not called

10/01/2007 16:44




1

Created with FORUM 2.0.11