Hi.
As I understand documentation, the only way to call functions from host project and to use variables in CINT is to link CINT and .C file using makecint. I tried with simple example first. I made Agilent.h with this code:
[code]class Agilent
{
public:
Agilent();
void SetVoltage(float x)
{
printf(“Voltage set to %.2f\n”, x);
}
};[/code]
My goal is to make instance of this class inside Test.cxx (script file) which looks like this:
void main()
{
Agilent a;
a.SetVoltage(5);
}
I typed then in console:
makecint -mk Makefile -o Mycint -H Agilent.h and created Makefile
Because I’m using VS 6.0 , I then typed:
nmake /F Makefile and error occured:
Makefile(6) : fatal error U1033: syntax error : ‘=’ unexpected
I thought that maybe it is problem with nmake.exe of VS 6.0, so I installed VS 2005. The same error again. Both times PATH was set to Visual Studio /bin folder where nmake.exe is. Also, when I try to run setup.bat from cint/demo/makecint/Complex or any example folder, always the same error. Does any know how to do this?
Thank you.