############################################################################
First, you could try this…
############################################################################
If you the header file extlib.h is simple enough, you could simply feed
extlib.h to makecint.
If extlib.cxx is provided,
makecint -mk makefile -dl extlib.dll -H extlib.h -C++ extlib.cxx
make -f makefile
If extlib.o , extlib.a or extlib.so is provided.
makecint -mk makefile -dl extlib.dll -H extlib.h -l extlib.a
make -f makefile
If macro function is used in extlib.h, you will find problems.
You can try using preprocessor by adding ‘-p’ option.
If extlib.cxx is provided,
makecint -mk makefile -dl extlib.dll -p -H extlib.h -C++ extlib.cxx
make -f makefile
If extlib.o , extlib.a or extlib.so is provided.
makecint -mk makefile -dl extlib.dll -p -H extlib.h -l extlib.a
make -f makefile
That sounds good,
but what should be done if I’m having .dll (.so) already and, of cause I’m having .h file.
How the “wrapper dll” to be compiled in this case?
I tried thus: makecint -mk makefile -dl aapi.dl -H aapi.h -l arinaapi.dll --D WIN32 -p
but it works not, obvisilly, for link knows nothing about .dll files, and that is naturally.
Any suggestion?
Thank you.
pcanal
January 13, 2004, 9:46pm
2
Hi,
If you are using CINT directly, the option you should use is:
makecint -mk makefile -dl aapi.dl -H aapi.h -l arinaapi.dll --D WIN32 -p
$ makecint -mk makefile -dl aapi.dll -p -H arinaapi.h -l arinaapi.lib --D WIN32 -p
$ make -f makefile
If you are using ROOT, you can also just do:
$ root
root [] .L arinaapi.dll
root [] .L aapi.h+
Cheers,
Philippe
I do appriciate that.
It works.
SOrry for the delay in reply
Thank you,