User forums > Using Code::Blocks

Filling in the Global Variable Editor

(1/2) > >>

PyTran++:
I am trying to install the Fortran plugin for Code::Blocks which is to be found on

http://code.google.com/p/fortranproject/downloads/list

Upon extracting the archive fortranproject_v0.8.tar.bz2 and loading the FortranProject_unix.cbp project-file in Code::Blocks a Global Variable Editor windows pops-up, requesting me to identify the "cb" variable. I was able to find out that the Code::Blocks SDK is meant by the "cb" variable. Through Synaptic I installed the codeblocks-dev package to acquire the Code::Blocks SDK header files and libraries. So I filled in the "include" and "lib" fields with the path names to respectively the header files (/usr/include/codeblocks) and the library (/usr/lib). However I have no clue at what I should enter for the "base member" or "obj" fields. Can someone please tell me what I need to fill in, in those fields?

Feel free to ask for additional information!

oBFusCATed:
Have you tried the latest nightly build. It should include the plugin by default...

PyTran++:
No I have not tried the nightly build. I also do not wish to use it. I prefer to stick to releases available from Synaptic and more specifically I prefer to stick to official stable releases. Is the Fortran plugin, by any chance, going to be included into official stable Code::Blocks releases out-of-the-box?

Jenna:

--- Quote from: oBFusCATed on July 10, 2012, 10:57:44 pm ---Have you tried the latest nightly build. It should include the plugin by default...

--- End quote ---
It's an external resource and can be downloaded via svn, but it is not included in the build-system as far as I know.
And the linux projectfile only works with C::B build with C::B, otherwise some paths for the search directories are invalid (e.g. devel).
And it is not buildable with recent C::B, because it does not use Manager::IsAppShuttingDown, but the no longer existing non camel-case version (the last one is easy to fix, obviously).

To make the projectfile usable with the devel-packages on debian/ubuntu and Fedora, RedHat/CentOS, you need to remove all entries in the search-directories tabs, remove the linklibrary (which should be just codeblocks not libcodeblocks.a on linux, by the way) and add `pkg-config codeblocks --cflags` to "Compiler settings -> Other options" and `pkg-config codeblocks --libs` to "Linker settings -> Other linker options".
Thne change all calls to Manager::isappShuttingDown to Manager::IsAppShuttingDown.

Jenna:

--- Quote from: PyTran++ on July 10, 2012, 11:21:35 pm ---No I have not tried the nightly build. I also do not wish to use it. I prefer to stick to releases available from Synaptic and more specifically I prefer to stick to official stable releases. Is the Fortran plugin, by any chance, going to be included into official stable Code::Blocks releases out-of-the-box?

--- End quote ---
If you use the stable sources you don't need to change the isaShuttingDown call, but you can do it, because both functions existed in earlier revisions as far as I know.

Navigation

[0] Message Index

[#] Next page

Go to full version