Hi Joost!
Thanks for your example - it forced me to fix two bugs in CINT just to
build it :-)
Now that I have it I can even tell you why that happens: you're missing
a dictionary for the vector<pair<...> >. I got it to work by simply
adding in Library.h:
#include <vector>
#include <map>
#include <string>
using namespace std;
#pragma link C++ class vector< pair< unsigned long, string > >;
Cheers, Axel.
Joost Kraaijeveld wrote on 10/29/2009 12:09 PM:
> Hi,
>
> I have made a little program that crashes. It consists of an application
> that calls functions in a user library. It looks as if values returned
> from the library get lost somewhere. Is it actually possible to return
> values from a user library?
>
>
> The code and Eclipse CDT project are available here:
>
>
http://trac.askesis.nl/downloads/CintTest.tar.bz2>
> Unzip and run the setup script file in the root after adapting the
> "export CINTSYSDIR=/home/jkr/Programming/C++/cint" into something
> suitable for your machine.
>
> TIA
>