Hi Experts,
I have a header and source files in which I define a class GClient and a function startGClient(const char* s). In the linkdef file, I have
#pragma link C++ class GClient;
#pragma link C++ function startGClient(const char*);
Both are linked in the library libRSGClient.so.
If I start root and load the library, trying to call startGClient(“a”), gives an error:
[] startGClient("a")
input_line_28:2:3: error: use of undeclared identifier 'startGClient'
(startGClient("a"))
^
However, if I first inspect the class GClient, i.e.
[] .class GClient
and then call the function, everything works.
Is there anything I miss? The same worked with cint for years.
Thanks and best regards,
Volker