Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by Wkerry on Today at 12:45:23 pm »
See https://sourceforge.net/p/codeblocks/tickets/663/ as it has then patch and looks like the patch has been accepted by Morten MacFly. Hopefully it will get merged quickly.
2
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by Miguel Gimenez on Today at 12:31:57 pm »
@danselmi, do you plan to commit this?
3
It is possible, just go to Project->Properties->Build targets and change Type from "GUI application" to "Console application"
4
Using Code::Blocks / CB with Wx Widgers giving normal console output
« Last post by jmClifford on Today at 08:34:59 am »
Hi. From the web (an example from a tutorial by a "Mr Luke") uses WxWidgets (not CB) and gives a console output.  The source is attached. 

Is this possible with CB and WxWidgets.??

This source (main.cpp) compiles OK.  An example of a compile is;
Quote
-------------- Clean: Debug in Events (compiler: GNU GCC Compiler)---------------

Cleaned "Events - Debug"

-------------- Build: Debug in Events (compiler: GNU GCC Compiler)---------------

g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -Wall -g -D__WXDEBUG__ -IC:\WxWidgetsSetup\include -IC:\WxWidgetsSetup\lib\gcc_dll\mswud -IC:\WxWidgetsSetup\include -IC:\WxWidgetsSetup\lib\gcc_dll -c C:\u\CodeBlock_C++\wx_WidgetsLuke\04_Events\main.cpp -o obj\Debug\main.o

windres.exe -IC:\WxWidgetsSetup\include -IC:\WxWidgetsSetup\lib\gcc_dll\mswud  -J rc -O coff -i C:\u\CODEBL~1\WX_WID~1\04_EVE~1\resource.rc -o obj\Debug\resource.res

g++.exe -LC:\WxWidgetsSetup\lib\gcc_dll -o bin\Debug\Events.exe obj\Debug\main.o  obj\Debug\resource.res -mthreads  -lwxmsw32ud C:\WxWidgetsSetup\lib\gcc_dll\libwxmsw32ud.a C:\WxWidgetsSetup\lib\gcc_dll\libwxmsw32u.a -mwindows
Output file is bin\Debug\Events.exe with size 828.74 KB

Process terminated with status 0 (0 minute(s), 5 second(s))
0 error(s), 0 warning(s) (0 minute(s), 5 second(s))


Regards JC......
5
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by blauzahn on Today at 12:46:20 am »
Thank you.

It compiles (tried on arch linux), a touched cbp or cpp file is detected like it should be.
One issue I observe in the "Open files List" is that relative paths are turned into
absolute paths. They should remain relative paths.

As for the code:
Code
#include <wx/fswatcher.h>
seems avoidable in FileExplorer.h if wxFileSystemWatcherEvent and wxFileSystemWatcher* are forward-declared. Compiletime is already not ideal when compiling cb.

Have you considered making
Code
wxFileSystemWatcher *m_fs_watcher;
a std::unique_ptr?

I like the fact that the patch is focussed on the necessary changes. Have you considered a second patch with refactorings e.g. moving initialization of non-static data-members in the ctor body into
a member initializer list  or using default member initializers?
6
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by danselmi on Yesterday at 09:23:53 pm »
As promised
Find attached the previously mentioned patch.
7
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by blauzahn on Yesterday at 01:58:16 pm »
As mentioned in the ticket: If C++17 is an acceptable lower limit, the std::filesystem will become available. If it provides the needed functionality to replace libgamin in cb, I would prefer std over wxWidgets. Since I have not used neither std::filesystem nor wxFilesystemwatcher yet, I can not say. At least it has a non-member function named 
Code
last_write_time
.
8
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by Wkerry on Yesterday at 09:52:50 am »
See https://sourceforge.net/p/codeblocks/tickets/663/ for "Don't use deprecated gamin library", which may be helpful.
9
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by blauzahn on April 28, 2024, 05:49:01 pm »
@danselmi: Great!
10
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by danselmi on April 28, 2024, 04:59:22 pm »
Fedora also don't provide gaming anymore.
I have a patch relying on wxFilesystemwatcher. This I have tested on windows and feodra39.
Will provide it later tonight when I have access to my computer.
Pages: [1] 2 3 4 5 6 ... 10