Recent Posts

Pages: 1 ... 5 6 7 8 9 [10]
Using Code::Blocks / Re: Setting a Fortran compiler in CodeBlocks
« Last post by gd_on on November 05, 2019, 05:08:01 pm »
for example have a look on
or on youtube :
and adapt to your paths names
Using Code::Blocks / Setting a Fortran compiler in CodeBlocks
« Last post by COQ on November 05, 2019, 04:39:53 pm »
Hi everybody,

Sorry for my english but Im french and I'm not accustomed to English writing. I'm a new user with codeblocks. I installed it today and I would like to use it to build Fortran Project using the gfortran compiler.  My version of gfortran compiler was installed using the installation application "gcc-8.3.0-64.exe". When I try to build and run my first project, I have an error : "Can't find compiler executable in your configured search path's for GNU Fortran COMPILER ". Yet I have specified the right paths in the search directories of the Compiler settings (Setting-->Compiler of the menu bar)

Does anyone knows how to solve this problem ?

Thank by advance for your help.

Be carefull! The copy is the log from the previous build, not from the current build!!!!

I have a plan to solve this and will provide a patch for review for the other devs in the next days.
:) Works for me.


Would be nice not to have to provide the CMD /C(easily forgotten), but works.

Screen snips attached.  One just shows the (copy) filename generated, the other a diff from the original log file with 'standard' file name.

Thanks.  Sorry this was such a marathon.
Help / Re: Can't install valid compiler with codeblocks-12.11mingw-setup on Win7 (closed)
« Last post by COQ on November 05, 2019, 11:14:46 am »
Dear Jack91,

Je suis également francais et j'ai le même problème que toi.
Quand je créé un nouveau projet et tente de le compiler, je recois "can't find compiler executable in your configured serach path's for GNU GCC Compiler"

Saurais tu m'aider

Merci d'avance

Using Code::Blocks / Re: "To Do" in the "Logs and Others" Panel
« Last post by Miguel Gimenez on November 05, 2019, 09:08:41 am »
Go to Settings -> Environment -> Todo list and check the "Include the Todo list..." option
Using Code::Blocks / "To Do" in the "Logs and Others" Panel
« Last post by AZ on November 05, 2019, 05:56:36 am »
 is it possible to add "to do" to the "Logs and others" panel, so it is just another tab like "build log" or "build messages"?
having "to do" as a separate window is a waste of space...
Ok i have found out, what the problem is, and i found a hack to circumvent it...

The problem is that the build log is saved in the "after process closed" (=OnJobEnd()) handler, only if the command queue is empty. If the queue is not empty a new "build process" (=DoRunQueue())  is started and no build log is saved. The problem is, that running a script, does not start a new process, and for this the "after process closed" is not called (because no process is started). And for this no build log is saved....

So to trigger the OnJobEnd function you can add a command that creates a process. For example:
Code: [Select]
[[IO.CopyFile(_("$(PROJECTNAME)_build_log.html"), _("$(PROJECTNAME)_build_log_") + GetProjectManager().GetActiveProject().GetCurrentlyCompilingTarget().GetTitle() + _("_$(NOW)_") + GetProjectManager().GetActiveProject().GetCurrentlyCompilingTarget().GetCompilerID() + _(".html"), true );]]
This will create a process and for this call the OnJobEnd() function and then generate a log file...

The second question is, what build log gets copied...

For the devs: The relevant code is in compiler.gcc:3958
Code: [Select]
                if (m_CommandQueue.GetCount())
m_CommandQueue.GetCount() is not empty, because script commands are there, but OnJobEnd() is not called because the scipts do not trigger it...
I think this could be a quite common workflow... Any ideas how to solve this...

[edit:] I think it would also be quite handy to be able to add text from scripting to the build log...

[edit2:] As expected... you copy the log of the previous build...
Development / Re: Commit 11895 fails detecting Clang
« Last post by oBFusCATed on November 04, 2019, 07:37:34 pm »
I have a fix for this... and all the other places which had to be modified...
Using Code::Blocks / Re: 'AM_OPTIONS_WXCONFIG' not found in library
« Last post by stahta01 on November 04, 2019, 03:05:10 pm »
My best guess at the correct directions

# Install CB from source on ArchLinux.txt
# based on

#  Install svn and other needed libraries
$  pacman -S --needed zip xterm svn hunspell boost imagemagick wxgtk3

#  Create devel folder
$  mkdir -p ~/devel

#  Change to devel folder
$  cd ~/devel

#  Download Codeblocks code
$  svn checkout codeblocks-code

#  Go into codeblocks folder
$  cd codeblocks-code

$  ./bootstrap

#  configure. We can not use the FileManager plugin because of the missing gamin library (08.2019)
$  ./configure  --prefix=/opt/codeblocks --with-wx-config=/usr/bin/wx-config-gtk3 --with-contrib-plugins=all,-FileManager

$  make

#  Now install codeblocks to /opt/codeblocks
$  make install

#  Start codeblocks
$  /opt/codeblocks/bin/codeblocks

# means comment
$ means command that needs ran

Edit: You will likely need to uninstall all the debtap stuff you installed related to wxWidgets and Code::Blocks before these directions are likely to work.
If possible, I would also uninstall wxGTK3 before trying these directions.

Tim S.
Pages: 1 ... 5 6 7 8 9 [10]