Trouble using a DLL with ROOT

Hi Bertrand,

If I use the debug version, I can get it working for now? Please let me know.
Thank you very much for your help.

Jaliya

I tried on XP and Vista x64 with MSVC++9.0, it always works fine in debug mode…
And note the problem appears only with MSVC++9.0. It works fine in debug and release mode with MSVC++7.1…
So I really suspect an internal Micro$oft problem (as very often :imp: )

Cheers,
Bertrand.

BTW, one easy solution is to change the method argument from std::string to const char * or even TString:wink:

Cheers,
Bertrand.

It’s somewhat off-topic, but this works with no problem on cygwin/gcc. The Makefile I’ve included will also work as is on most linuxes (and maybe even MacOs).

This is one of many reasons that I prefer using gcc instead of the microsoft compilers (not having to change directory structure, makefiles, etc. is also nice). I do understand that there is a hit in performance, but for code development, it’s not such a big deal.

Cheers,
Charles

p.s. You’ll need to make a ‘shlib’ directory parallel to TUtils.
TUtils_cygwin.tar.gz (3.09 KB)