Recent Posts

Pages: 1 2 [3] 4 5 6 7 8 ... 10
21
Help / Re: Is there a way to clean up the output screen?
« Last post by BlueHazzard on August 13, 2018, 07:44:59 pm »
Porject->Settings->Build targets->Pause when execution ends
22
Help / Is there a way to clean up the output screen?
« Last post by 357mag on August 13, 2018, 09:57:12 am »
If you run a simple program and look at the output screen you will see this:

Hello World!
Process returned 0 <0x0>  Execution time : 0.023s
Press any key to continue...

I personally dislike the Process returned line with all that unnecessary information cluttering up the screen.

Hello World!
Press any key to continue...

This is all that is needed.

Is there a way to prevent Codeblocks from printing that other stuff?
23
Help / Re: GUI window not visible
« Last post by pinneapple on August 13, 2018, 09:39:07 am »
My version is the 13.12.

Renaming the codeblocks folder worked!! Thank you  ;D
24
Help / Re: GUI window not visible
« Last post by oBFusCATed on August 13, 2018, 09:12:03 am »
What version of Code::Blocks is this?

Can you try to rename the config folder of code blocks ( ~/.codeblocks or ~/.config/codeblocks) to something else.
Then try to start again. This will reset all of your settings.

How many monitors do you have? Is it possible that C::B's window is on another monitor, that is not enabled?
25
Help / Re: GUI window not visible
« Last post by pinneapple on August 13, 2018, 09:01:54 am »
Sorry, I'm a newbie. I installed the codeblocks-gdb and I don't know if I'm supposed to install any other debug symbols.

Here is the output following the post's commands:
Code: [Select]
(gdb) run
Starting program: /usr/bin/codeblocks
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffea340700 (LWP 14122)]
[New Thread 0x7fffe9b3f700 (LWP 14123)]
[New Thread 0x7fffe3fff700 (LWP 14734)]
[New Thread 0x7fffe37fe700 (LWP 14735)]
[New Thread 0x7fffe2ffd700 (LWP 14736)]
[New Thread 0x7fffe27fc700 (LWP 14738)]
[New Thread 0x7fffe1ffb700 (LWP 14739)]
[New Thread 0x7fffe17fa700 (LWP 14740)]
[Thread 0x7fffe37fe700 (LWP 14735) exited]
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
Autosave: loaded
wxSmithContribItems: loaded
EditorConfig: loaded
BrowseTracker: loaded
SmartIndentLua: loaded
SmartIndentXML: loaded
OpenFilesList: loaded
AStylePlugin: loaded
Cscope: loaded
wxSmithAui: loaded
HelpPlugin: loaded
CodeCompletion: loaded
HexEditor: loaded
Cccc: loaded
ClassWizard: loaded
SymTab: loaded
RegExTestbed: loaded
EnvVars: loaded
HeaderFixup: loaded
cbKeyBinder: loaded
MouseSap: loaded
OccurrencesHighlighting: loaded
CodeStat: loaded
CB_Koders: loaded
SmartIndentPython: loaded
FileManager: loaded
ToolsPlus: loaded
DoxyBlocks: loaded
Profiler: loaded
NassiShneidermanPlugin: loaded
IncrementalSearch: loaded
Valgrind: loaded
SmartIndentFortran: loaded
CodeSnippets: loaded
SmartIndentPascal: loaded
Debugger: loaded
lib_finder: loaded
copystrings: loaded
ThreadSearch: loaded
SmartIndentCpp: loaded
SpellChecker: loaded
SmartIndentHDL: loaded
Compiler: loaded
AutoVersioning: loaded
FilesExtensionHandler: loaded
CppCheck: loaded
ToDoList: loaded
ReopenEditor: loaded
wxSmith: loaded
wxSmithMime: loaded
Abbreviations: loaded
EditorTweaks: loaded
ScriptedWizard: loaded
ProjectsImporter: loaded
cbDragScroll: loaded
Exporter: loaded
BYOGames: loaded
Autosave plugin activated
wxSmith - Contrib Items plugin activated
EditorConfig plugin for Code::Blocks plugin activated
BrowseTracker plugin activated
SmartIndentLua plugin activated
SmartIndentXML plugin activated
Open files list plugin activated
Source code formatter (AStyle) plugin activated
Cscope plugin activated
wxSmith - Aui plugin activated
Help plugin plugin activated
Code completion plugin activated
HexEditor plugin activated
Cccc plugin activated
Class wizard plugin activated
Symbol Table Plugin plugin activated
Regular expressions testbed plugin activated
Environment variables plugin activated
Header Fixup plugin activated
Keyboard shortcuts plugin activated
MouseSap plugin activated
OccurrencesHighlighting plugin activated
Code statistics plugin activated
Koders query plugin activated
SmartIndentPython plugin activated
FileManager plugin activated
ToolsPlus plugin activated
DoxyBlocks plugin activated
Code profiler plugin activated
NassiShneidermanPlugin plugin activated
IncrementalSearch plugin activated
Valgrind plugin activated
SmartIndentFortran plugin activated
Code snippets plugin activated
SmartIndentPascal plugin activated
Debugger plugin activated
ClassBrowser::UpdateClassBrowserView(): No active project available.
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Library finder plugin activated
Copy Strings to clipboard plugin activated
ThreadSearch plugin activated
SmartIndentCpp plugin activated
SpellChecker plugin activated
SmartIndentHDL plugin activated
Added compiler "GNU GCC Compiler"
Added compiler "Intel C/C++ Compiler"
Added compiler "GDC D Compiler"
Added compiler "GNU Fortran Compiler"
Added compiler "G95 Fortran Compiler"
Added compiler "GNU GCC Compiler for ARM"
Added compiler "Digital Mars D Compiler"
Added compiler "GNU GCC Compiler for PowerPC"
Added compiler "GNU GCC Compiler for TriCore"
Added compiler "PGI Fortran Compiler"
Added compiler "*No Compiler*"
Added compiler "Tiny C Compiler"
Added compiler "GNU GCC Compiler for MSP430"
Added compiler "Small Device C Compiler"
Added compiler "GNU GCC Compiler for AVR"
Added compiler "LLVM D Compiler"
Added compiler "LLVM Clang Compiler"
Compiler plugin activated
AutoVersioning plugin activated
Files extension handler plugin activated
CppCheck plugin activated
Todo List plugin activated
ReopenEditor plugin activated
wxSmith plugin activated
wxSmith - MIME plugin plugin activated
Abbreviations plugin activated
Editor Tweaks plugin: Building menu
Editor Tweaks plugin: making the menu 14
EditorTweaks plugin activated
Project wizard added for 'Empty project'
Project wizard added for 'Fortran application'
Project wizard added for 'Fortran library'
Project wizard added for 'Fortran DLL'
Project wizard added for 'Console application'
Project wiz^C[New Thread 0x7fffe37fe700 (LWP 14747)]
[New Thread 0x7fffbfbfa700 (LWP 14748)]
[New Thread 0x7fffbf3f9700 (LWP 14752)]
[Thread 0x7fffbf3f9700 (LWP 14752) exited]
[Thread 0x7fffe2ffd700 (LWP 14736) exited]

Program received signal SIGINT, Interrupt.
0x00007ffff4b00c9d in poll () at ../sysdeps/unix/syscall-template.S:81
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) backtrace full
#0  0x00007ffff4b00c9d in poll () at ../sysdeps/unix/syscall-template.S:81
No locals.
#1  0x00007ffff64dbd06 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#2  0x00007ffff3d6cfe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#3  0x00007ffff3d6d30a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#4  0x00007ffff588d447 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
No symbol table info available.
#5  0x00007ffff64ef28a in wxEventLoop::Run() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#6  0x00007ffff6560b4c in wxAppBase::MainLoop() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#7  0x0000000000446860 in CodeBlocksApp::OnRun (this=0x7d2890) at app.cpp:809
        retval = <optimized out>
#8  0x00007ffff5e26e5d in wxEntry(int&, wchar_t**) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
No symbol table info available.
#9  0x0000000000435192 in main (argc=1, argv=<optimized out>) at app.cpp:276
No locals.
(gdb) info registers
rax            0xfffffffffffffdfc -516
rbx            0x7ffff68ee3f1 140737329947633
rcx            0x7ffff4b00c9d 140737298566301
rdx            0x11d 285
rsi            0x4 4
rdi            0xc1f850 12712016
rbp            0xc1f850 0xc1f850
rsp            0x7fffffffdc20 0x7fffffffdc20
r8             0x0 0
r9             0x0 0
r10            0xb2b4ea7edac26 3143841568631846
r11            0x293 659
r12            0x4 4
r13            0x11d 285
r14            0x7ffff64dbcd0 140737325677776
r15            0x5 5
rip            0x7ffff4b00c9d 0x7ffff4b00c9d <poll+45>
eflags         0x293 [ CF AF SF IF ]
cs             0x33 51
ss             0x2b 43
ds             0x0 0
es             0x0 0
fs             0x0 0
gs             0x0 0
(gdb) x/16i $pc
=> 0x7ffff4b00c9d <poll+45>: mov    (%rsp),%rdi
   0x7ffff4b00ca1 <poll+49>: mov    %rax,%rdx
   0x7ffff4b00ca4 <poll+52>: callq  0x7ffff4b1bdc0 <__libc_disable_asynccancel>
   0x7ffff4b00ca9 <poll+57>: mov    %rdx,%rax
   0x7ffff4b00cac <poll+60>: add    $0x8,%rsp
   0x7ffff4b00cb0 <poll+64>: cmp    $0xfffffffffffff001,%rax
   0x7ffff4b00cb6 <poll+70>: jae    0x7ffff4b00cb9 <poll+73>
   0x7ffff4b00cb8 <poll+72>: retq   
   0x7ffff4b00cb9 <poll+73>: mov    0x2d11a8(%rip),%rcx        # 0x7ffff4dd1e68
   0x7ffff4b00cc0 <poll+80>: neg    %eax
   0x7ffff4b00cc2 <poll+82>: mov    %eax,%fs:(%rcx)
   0x7ffff4b00cc5 <poll+85>: or     $0xffffffffffffffff,%rax
   0x7ffff4b00cc9 <poll+89>: retq   
   0x7ffff4b00cca: nopw   0x0(%rax,%rax,1)
   0x7ffff4b00cd0 <__GI_ppoll>: sub    $0x38,%rsp
   0x7ffff4b00cd4 <__GI_ppoll+4>: test   %rdx,%rdx
(gdb) thread apply all backtrace

Thread 11 (Thread 0x7fffbfbfa700 (LWP 14748)):
#0  0x00007ffff4b05913 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fffc46482cb in do_select (this=0x7fffbfbf8b20) at directorymonitor.cpp:70
#2  DirMonitorThread::Entry (this=0x1cc0550) at directorymonitor.cpp:164
#3  0x00007ffff5e78863 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#4  0x00007ffff52fb184 in start_thread (arg=0x7fffbfbfa700) at pthread_create.c:312
#5  0x00007ffff4b0e03d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 10 (Thread 0x7fffe37fe700 (LWP 14747)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff5e77533 in wxConditionInternal::Wait() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#2  0x00007ffff5e78088 in wxSemaphoreInternal::Wait() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#3  0x00007fffc64b9c52 in ClassBrowserBuilderThread::Entry (this=0x1c76160) at classbrowserbuilderthread.cpp:191
#4  0x00007ffff5e78863 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#5  0x00007ffff52fb184 in start_thread (arg=0x7fffe37fe700) at pthread_create.c:312
#6  0x00007ffff4b0e03d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 9 (Thread 0x7fffe17fa700 (LWP 14740)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff5e77533 in wxConditionInternal::Wait() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#2  0x00007ffff5e78088 in wxSemaphoreInternal::Wait() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#3  0x00007ffff7794e0a in BackgroundThread::Entry (this=0xf55178) at ./backgroundthread.h:152
#4  0x00007ffff5e78863 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#5  0x00007ffff52fb184 in start_thread (arg=0x7fffe17fa700) at pthread_create.c:312
#6  0x00007ffff4b0e03d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 8 (Thread 0x7fffe1ffb700 (LWP 14739)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff5e77533 in wxConditionInternal::Wait() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#2  0x00007ffff5e78088 in wxSemaphoreInternal::Wait() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#3  0x00007ffff7794e0a in BackgroundThread::Entry (this=0xf55140) at ./backgroundthread.h:152
#4  0x00007ffff5e78863 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#5  0x00007ffff52fb184 in start_thread (arg=0x7fffe1ffb700) at pthread_create.c:312
#6  0x00007ffff4b0e03d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 7 (Thread 0x7fffe27fc700 (LWP 14738)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff5e77533 in wxConditionInternal::Wait() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#2  0x00007ffff5e78088 in wxSemaphoreInternal::Wait() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#3  0x00007ffff7794e0a in BackgroundThread::Entry (this=0xf55108) at ./backgroundthread.h:152
#4  0x00007ffff5e78863 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#5  0x00007ffff52fb184 in start_thread (arg=0x7fffe27fc700) at pthread_create.c:312
#6  0x00007ffff4b0e03d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7fffe3fff700 (LWP 14734)):
#0  0x00007ffff4b00c9d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff3d6cfe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff3d6d0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff3d6d129 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff3d91f05 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff52fb184 in start_thread (arg=0x7fffe3fff700) at pthread_create.c:312
#6  0x00007ffff4b0e03d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7fffe9b3f700 (LWP 14123)):
#0  0x00007ffff4b00c9d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff3d6cfe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff3d6d30a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff18a6336 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007ffff3d91f05 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff52fb184 in start_thread (arg=0x7fffe9b3f700) at pthread_create.c:312
#6  0x00007ffff4b0e03d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7fffea340700 (LWP 14122)):
#0  0x00007ffff4b00c9d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff3d6cfe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff3d6d0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fffea3481ad in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007ffff3d91f05 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff52fb184 in start_thread (arg=0x7fffea340700) at pthread_create.c:312
#6  0x00007ffff4b0e03d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7ffff7fbea00 (LWP 14118)):
#0  0x00007ffff4b00c9d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff64dbd06 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#2  0x00007ffff3d6cfe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff3d6d30a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff588d447 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#5  0x00007ffff64ef28a in wxEventLoop::Run() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#6  0x00007ffff6560b4c in wxAppBase::MainLoop() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#7  0x0000000000446860 in CodeBlocksApp::OnRun (this=0x7d2890) at app.cpp:809
#8  0x00007ffff5e26e5d in wxEntry(int&, wchar_t**) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#9  0x0000000000435192 in main (argc=1, argv=<optimized out>) at app.cpp:276
26
Using Code::Blocks / Don't build when starting debugger?
« Last post by PaulR on August 12, 2018, 11:47:39 pm »
When I start debugging it runs my batch file which in turn runs the build scripts in MSYS2. I'd like to be able to press the start debugging button/shortcut key and just run the application.

How would I accomplish this in C::B?

Thanks for any suggestions!

edit: I have just created another target that doesn't run a script on build.
27
Help / Re: [Resolved] Resource Compiler fails without any helpful output
« Last post by BlueHazzard on August 12, 2018, 11:22:33 pm »
Thank you for posting a solution! This will help others!
28
Help / Re: Does Codeblocks Support MFC?
« Last post by stahta01 on August 12, 2018, 08:26:14 pm »
Code::Blocks an IDE/Editor that works with multiple Compilers.

C::B does not have any MFC wizards to my knowledge.

Tim S.
29
Help / Does Codeblocks Support MFC?
« Last post by Frank_CB on August 12, 2018, 08:19:38 pm »
Hello,

Could somebody intimately familiar with Microsoft Foundation Classes (MFC) and Code::blocks please tell me if Code::blocks does/can support MFC?

Code::blocks has no tempates for creating SDI (Single Document Interface) or MDI (Multiple Document Interface) programs. While with the proper libraries it can compile .cpp and .rc files for MDI example programs, Code::blocks cannot link them all together into an executable file. SDI example programs compile and link successfully.  From my own experimenting and research, i can only assume that that it was never intended for Code::blocks to support MFC. Is that a valid assumption?

Regards.

Frank

30
General (but related to Code::Blocks) / Re: Welcome Newcomers - PLEASE READ!!!
« Last post by LeeJ on August 12, 2018, 07:23:19 pm »
I'm new here! Joined to do what I can to help the OS X development if I can! (though I don't know where to check/how to get started helping)
Pages: 1 2 [3] 4 5 6 7 8 ... 10