CINT as standalone WITHOUT root inside a host application

View: New views
3 Messages — Rating Filter:   Alert me  

CINT as standalone WITHOUT root inside a host application

by Ziv Barber :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I checked the nice port of CINT as standalone embedded interpreter here:

http://www.codeproject.com/KB/cpp/Personal_C___Compiler.aspx

Nice job except that it has no way to call native code from the script code.

I'm trying now to hack the sources to make a patch so it can execute native code.
Anyone done this kind of thing on Windows?
I mean without the root system which has that makecint stuff (that also not working on Windows).

What's the best method to patch the sources to be able to call a native function like this:

int myFunc ( int a, int b );

thanks,


RE: CINT as standalone WITHOUT root inside a host application

by Masaharu Goto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hello Ziv and everyone,

 

Long time no see.

 

From the web site, Scintilla integrates GUI part on to CINT.

Whether you can call native code depends on how Scintilla integrates Cint. So, you should ask Robert Umbehant, the author of the Scintilla, about it.

 

But, my guess is that he may have integrated Cint without any changes and ‘makecint’ utility coming with the original cint distribution might do the job.  Please see CINT documentations doc/extlib.txt and doc/makecint.txt for the detail.

 

P.S.

Now, I am a pure user of ROOT and CINT. I’m doing my own physics with it and very glad that I have those tools. I am keeping my local standalone version, but it may be out of date and the installer may have been broken.

 

Masaharu Goto

 


From: owner-cint@... [mailto:owner-cint@...] On Behalf Of Ziv Barber
Sent: Saturday, August 08, 2009 3:37 PM
To: cint@...
Subject: [CINT] CINT as standalone WITHOUT root inside a host application

 

Hi,

I checked the nice port of CINT as standalone embedded interpreter here:

http://www.codeproject.com/KB/cpp/Personal_C___Compiler.aspx

Nice job except that it has no way to call native code from the script code.

I'm trying now to hack the sources to make a patch so it can execute native code.
Anyone done this kind of thing on Windows?
I mean without the root system which has that makecint stuff (that also not working on Windows).

What's the best method to patch the sources to be able to call a native function like this:

int myFunc ( int a, int b );

thanks,


Re: CINT as standalone WITHOUT root inside a host application

by Ziv Barber :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok,

Sorry for the noob question.

I discovered the cint -c-2 trick and it's working fine and doing anything I need.
Everything working fine here.

thanks,

On Sat, Aug 8, 2009 at 1:40 PM, Masaharu Goto <gotom@...> wrote:

Hello Ziv and everyone,

 

Long time no see.

 

From the web site, Scintilla integrates GUI part on to CINT.

Whether you can call native code depends on how Scintilla integrates Cint. So, you should ask Robert Umbehant, the author of the Scintilla, about it.

 

But, my guess is that he may have integrated Cint without any changes and ‘makecint’ utility coming with the original cint distribution might do the job.  Please see CINT documentations doc/extlib.txt and doc/makecint.txt for the detail.

 

P.S.

Now, I am a pure user of ROOT and CINT. I’m doing my own physics with it and very glad that I have those tools. I am keeping my local standalone version, but it may be out of date and the installer may have been broken.

 

Masaharu Goto

 


From: owner-cint@... [mailto:owner-cint@...] On Behalf Of Ziv Barber
Sent: Saturday, August 08, 2009 3:37 PM
To: cint@...
Subject: [CINT] CINT as standalone WITHOUT root inside a host application

 

Hi,

I checked the nice port of CINT as standalone embedded interpreter here:

http://www.codeproject.com/KB/cpp/Personal_C___Compiler.aspx

Nice job except that it has no way to call native code from the script code.

I'm trying now to hack the sources to make a patch so it can execute native code.
Anyone done this kind of thing on Windows?
I mean without the root system which has that makecint stuff (that also not working on Windows).

What's the best method to patch the sources to be able to call a native function like this:

int myFunc ( int a, int b );

thanks,