News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Some C::B Suggestions...

Started by Shakes, November 15, 2006, 09:51:46 AM

Previous topic - Next topic

tiwag

if you dl cint5.16 there is no stdio.h file included,

but if you have installed cint5.15 before,

ftp://root.cern.ch/root/cint5.15.tar.gz

there is one and then it will work

8)

takeshimiya

And I wouldn't recommend doing that, the cint 5.15 is more than one year old. The 5.16 does come with stdio.h

It's just easier to do what the main page says:
* Source package for all platforms (1.3MB) (with auto-compile scripts for most of the platforms)
* Binary package for Windows-NT/95/98/2000 (1.2MB) (download the source package too)

Uncompress the binary and the sources in the same folder and that's it.

tiwag

Quote from: takeshi miya on November 17, 2006, 07:37:53 PM
The 5.16 does come with stdio.h

it didn't when i tried it, otherwise i wouldn't post it

takeshimiya

Quote from: tiwag on November 17, 2006, 07:57:37 PM
Quote from: takeshi miya on November 17, 2006, 07:37:53 PM
The 5.16 does come with stdio.h

it didn't when i tried it, otherwise i wouldn't post it
now that I look the original tar, that's true: the std* headers are "generated" when you compile, because in the new version they are generated when you make the rule include/iosenum.h, to match the compiler and platform configuration used (so it will work with compilers other than VC, like MinGW).

so then, if you want only the interpreter and don't care mixing interpreted code with compiled code, or don't care for compiling cint, do what tiwag suggests above. :)
otherwise, (you want to use makecint, want to compile cint, or want the latest ver.), do what I said above. :)

Shakes

#19
OMG that CINT thing is awesome. Its like running the iPython shell or equiv.

Can u say "Kicks Python around like never before!" *Smack*, *Smack*, *BASH*

Someone make a plugin quick! "GO, GO, GO!"  :P

takeshimiya

Quote from: Shakes on November 18, 2006, 01:52:30 AM
OMG that CINT thing is awesome. Its like running the iPython shell or equiv.
Or it is even better :), as you can mix C/C++ interpreted and C/C++ native code.
"You can encapsulate arbitrary C/C++ code as a precompiled library. Precompiled library can be configured as a DLL and access between interpreted code and precompiled code can be done seamlessly in both directions."

Quote from: Shakes on November 18, 2006, 01:52:30 AM
Can u say "Kicks Python around like never before!" *Smack*, *Smack*, *BASH*
And it's also cool that the ROOT/CINT framework will be used in Large Hadron Collider(LHC) research project beyond 2020. :P

Quote from: Shakes on November 18, 2006, 01:52:30 AM
Someone make a plugin quick! "GO, GO, GO!"  :P
Until a plugin gets made, or the compiler framework gets redesigned, you can use makefiles build system in C::B, or for simple programs, create a Tool. :)

tiwag

Quote from: takeshi miya on November 17, 2006, 08:12:30 PM
...otherwise, (you want to use makecint, want to compile cint, or want the latest ver.), do what I said above. :)

can you explain exactly how you've built cint using the cint5.16.tar.gz ???

i tried using msys and mingw
./configure --arch=mingw
make


then there is an error when it wants to build readline, which isn't in the package,
how did you solve this ?

takeshimiya

Quote from: tiwag on November 18, 2006, 08:41:16 AM
can you explain exactly how you've built cint using the cint5.16.tar.gz ???

i tried using msys and mingw
./configure --arch=mingw
make


then there is an error when it wants to build readline, which isn't in the package,
how did you solve this ?

As I said above of above :P :

Quote from: takeshi miya on November 17, 2006, 02:34:37 PM
For compiling it, just open msys and do a ./configure --arch=mingw && make it works for me.
You might need to remove (or compile) readline and dl from linking libs if you don't have them.

I'm not quite sure what dl does, but readline is not really needed, so I removed it from the linking libs.
I guess that if you want it, you can compile it or use this precompiled library.

tiwag

Quote from: takeshi miya on November 18, 2006, 08:53:46 AM
As I said above of above :P :

Quote from: takeshi miya on November 17, 2006, 02:34:37 PM
For compiling it, just open msys and do a ./configure --arch=mingw && make it works for me.
You might need to remove (or compile) readline and dl from linking libs if you don't have them.

I'm not quite sure what dl does, but readline is not really needed, so I removed it from the linking libs.
I guess that if you want it, you can compile it or use this precompiled library.


yes i've read that, please exlain a step by step procedure what is necessary to
remove it from the linking libs ??? which file to edit ?? what to edit ??
that would be a helpful information.

takeshimiya

Quote from: tiwag on November 18, 2006, 08:57:15 AM
yes i've read that, please exlain a step by step procedure what is necessary to
remove it from the linking libs ??? which file to edit ?? what to edit ??
that would be a helpful information.

Open the configure file in a text editor, and search for the function config_mingw (@line 155).
There, add this empty variable in one line: BUILDREADLINE= and this on another: DEFAULTLIBS=
With that, you'll be overriding the values specified in function config_GCC_defaults.

I'm not quite comfortable with the (new) building system it haves, so it might be better if we write a CodeBlocks project or premake script.

dmoore

Quote from: Shakes on November 18, 2006, 01:52:30 AM
OMG that CINT thing is awesome. Its like running the iPython shell or equiv.

Can u say "Kicks Python around like never before!" *Smack*, *Smack*, *BASH*

I guess I should stop working on my C::B python plugin (debugger and project manager) and go cry in a corner or something  :cry:
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

takeshimiya

#26
Quote from: dmoore on November 18, 2006, 09:28:08 AM
Quote from: Shakes on November 18, 2006, 01:52:30 AM
OMG that CINT thing is awesome. Its like running the iPython shell or equiv.

Can u say "Kicks Python around like never before!" *Smack*, *Smack*, *BASH*

I guess I should stop working on my C::B python plugin (debugger and project manager) and go cry in a corner or something  :cry:
No need to make a c++ vs. python, each one is with it's own users target; what was the reaction is that it is news for much people that there exists "c++ interpreters".
CodeBlocks is about multiple-platforms compilers and languages, so (please) continue doing a python plugin. If it is finished a cint plugin can be made, and so on, being based on the first.  :)

MortenMacFly

Quote from: dmoore on November 18, 2006, 09:28:08 AM
I guess I should stop working on my C::B python plugin [...]
Mmmmh... VS2005 was released...
Quote from: dmoore on November 18, 2006, 09:28:08 AM
...so we better should stop working on C::B and go cry in a corner or something  :cry:
:lol:
No, but honestly: A college of mine bugs me every week when Python support might be added. So far I provided him the "InterpretedLang" plugin and the python lexer. Anyway: The plugin is buggy and altogether this is not of *much* help. So I'd *love* to see a "native" python plugin myself, too.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

David Perfors

I like to see that plugin too, but that's because I want to learn Python ;)
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

Game_Ender

Quote from: mispunt on November 18, 2006, 04:09:36 PM
I like to see that plugin too, but that's because I want to learn Python ;)

Don't wait, download wxPython and try out Pycrust (a wxPython based python shell with CodeCompletion).