[Qt-interest] runtime compilation impossible in Qt???

John Cummings jcummings2 at users.sf.net
Mon Aug 17 19:17:27 CEST 2009


I believe that you are thinking of CINT:

http://root.cern.ch/drupal/content/cint

>From the webpage: "CINT is an interpreter for C and C++ code. It is useful 
e.g. for situations where rapid development is more important than execution 
time."

I haven't used it myself, but have thought about it.

John Cummings

----------  Original Message  ----------

Subject: Re: [Qt-interest] runtime compilation impossible in Qt???
Date: Monday 17 August 2009
From: Scott Aron Bloom <Scott.Bloom at sabgroup.com>
To: "qt-interest at trolltech.com" <qt-interest at trolltech.com>

Been done... There is a library out there.. used it a while back.. that
reads in a c++ file compiles it into a DLL/.so and allows you to run a
function from it..  Worked pretty well with the g++ flow...

Been years.. but yes, interpreters do allow dynamic functionality like
that to be easier...

Scott

-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Arnold Krille
Sent: Monday, August 17, 2009 9:01 AM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] runtime compilation impossible in Qt???

On Monday 17 August 2009 17:30:10 Scott Aron Bloom wrote:
> I can tell you that anything you can do usin QT in python, can be done

> in C++...

Try executing dynamically created C++-code :-) Something like 'eval(
"print \"bla %s\"" % some_string_variable )' is not possible in C++ at
least to my knowledge. At least not as easily as in python. 
One can compile the dynamic code into a library/plugin and dl-open that
but unloading and loading the new version gets harder and harder...

Arnold

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest

-------------------------------------------------------




More information about the Qt-interest-old mailing list