HI
I have installed CINT and configure system path and path variables as described in read me file.
I am trying to export a C++ class and call the class member function from a script file.
I have passed this script file to CINT.
Created qt .h file
G3.h
class hello
{
public:
hello();
void fun1();
};
created qt .cpp file
G3.cpp
#include “G3.h”
#include <iostream.h>
using namespace std;
hello::hello()
{
}
void hello::fun1()
{
cout<< “Hello world”;
}
After this using cint i created .cxx file using below command
cint -w0 -nG__G3Test.cxx G3.h
this .cxx file contains definations for Hello class.
Now i included this .cxx file as dll and created small window application where i can pass script file.
script.cpp
#include “G3.h”
int main()
{
hello h1;
h1.fun1();
return 0;
}
This script file i am passing from window application as below
G__scratch_all();
G__init_cint(“home/workingDir/script.cpp”);
G__scratch_all();
I am getting the following issue.
Error: hello() declared but not defined in current scope FILE:/home/workingDir/script.cpp LINE:4
!!! return from main() function
I am trying in Ubuntu 14.04. With out cint my application able to execute the exported function.
Can you please help me where i did wrong or if the procedure is wrong please provide me any links or docs.
Thank you
Sreeni