Recent Posts

Pages: 1 ... 3 4 5 6 7 [8] 9 10
71
Help / Re: assembly view
« Last post by BlueHazzard on October 22, 2020, 01:47:47 pm »
enable the full debug log in Settings->Debugger->Common
then post the debug log, found in the debug log tab in the logger pane here in code tags (# symbol in the forum editor)

Probably you have a broken gdb... 
72
Help / Re: debugger auto resume
« Last post by BlueHazzard on October 22, 2020, 01:44:49 pm »
Enable the full debug log:
Settings->Debugger->Enable full debug log

and post the log found in the Debug log tab of the log pane here in code tags (the # symbol in the forum editor)

One reason is, tat your application crashes, or terminates...
Or you have a bad gdb (the version shipped with codeblocks is probably broken)
73
Development / Re: Symbols browser issue of CC has been fixed for my Linux
« Last post by ChristophMS on October 22, 2020, 01:32:55 pm »
Hi folks,

I applied that patch from above to my CB::20.03 (on M$ Windows) and at first I got an segmentation fault in void ClassBrowserBuilderThread::SelectItem(CCTreeCtrl* tree, wxTreeItemId item ) where data->m_MirrorNode is accessed. The address of m_MirrorNode looked strange to me (sth. like 0xbnnn nnnn) which seemed to be a kind of random address. I found out that this class member is not initialized in the constructor which should now look like

CCTreeCtrlData::CCTreeCtrlData(SpecialFolder sf, Token* token, short int kindMask, int parentIdx) :
    m_Token(token),
    m_KindMask(kindMask),
    m_SpecialFolder(sf),
    m_TokenIndex(token ? token->m_Index : -1),
    m_TokenKind(token ? token->m_TokenKind : tkUndefined),
    m_TokenName(token ? token->m_Name : _T("")),
    m_ParentIndex(parentIdx),
    m_Ticket(token ? token->GetTicket() : 0),
    m_MirrorNode( nullptr )

{
}

Kind regards

Christoph MS
74
General (but related to Code::Blocks) / Re: GTK in Code:Blocks (Windows 10)
« Last post by Miguel Gimenez on October 22, 2020, 12:14:29 pm »
The "skipping incompatible library" error is shown because you are trying to link with libraries created with other compilers. The .lib are probably from Visual Studio and the .dll.a from other version or GCC (or the same version with different number of bits, 64 vs 32). You must create those libs with the same compiler and options used when compiling your program.
75
General (but related to Code::Blocks) / Re: GTK in Code:Blocks (Windows 10)
« Last post by eric1708 on October 22, 2020, 11:53:44 am »
Thanks for your reply.

Here it is:

Code: [Select]
-------------- Clean: Debug in test (compiler: GNU GCC Compiler)---------------

Cleaned "test - Debug"

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

gcc.exe -Wall -mms-bitfields -g -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk"\include -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk"\include\gtk-2.0 -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk"\include\cairo -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk"\include\gdk -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk"\include\glib-2.0 -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk"\lib\glib-2.0\include -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk"\include\pango-1.0 -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk"\lib\gtk-2.0\include -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk"\include\atk-1.0 -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk"\include\gdk-pixbuf-2.0 -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk\include" -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk\include\gtk-2.0" -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk\include\cairo" -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk\include\glib-2.0" -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\glib-2.0\include" -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk\include\pango-1.0" -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk\include\atk-1.0" -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk\include\gdk-pixbuf-2.0" -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\gtk-2.0\include" -I"C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib" -c C:\Users\wajnberg\Desktop\test\main.c -o obj\Debug\main.o
gcc.exe -L"C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib" -L"C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib" -o bin\Debug\test.exe obj\Debug\main.o   -lgtk-win32-2.0 -lgobject-2.0 -lglib-2.0 "C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\gobject-2.0.lib" "C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\glib-2.0.lib" "C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\pango-1.0.lib" "C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\gtk-win32-2.0.lib" "C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\gdk-win32-2.0.lib" "C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\cairo.lib"
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/libgtk-win32-2.0.dll.a when searching for -lgtk-win32-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/gtk-win32-2.0.lib when searching for -lgtk-win32-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/libgtk-win32-2.0.dll.a when searching for -lgtk-win32-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/gtk-win32-2.0.lib when searching for -lgtk-win32-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/libgtk-win32-2.0.dll.a when searching for -lgtk-win32-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/gtk-win32-2.0.lib when searching for -lgtk-win32-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\gtk-win32-2.0.lib when searching for -lgtk-win32-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/libgtk-win32-2.0.dll.a when searching for -lgtk-win32-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/gtk-win32-2.0.lib when searching for -lgtk-win32-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\gtk-win32-2.0.lib when searching for -lgtk-win32-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgtk-win32-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/libgobject-2.0.dll.a when searching for -lgobject-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/gobject-2.0.lib when searching for -lgobject-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/libgobject-2.0.dll.a when searching for -lgobject-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/gobject-2.0.lib when searching for -lgobject-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/libgobject-2.0.dll.a when searching for -lgobject-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/gobject-2.0.lib when searching for -lgobject-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\gobject-2.0.lib when searching for -lgobject-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/libgobject-2.0.dll.a when searching for -lgobject-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/gobject-2.0.lib when searching for -lgobject-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\gobject-2.0.lib when searching for -lgobject-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgobject-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/libglib-2.0.dll.a when searching for -lglib-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/glib-2.0.lib when searching for -lglib-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/libglib-2.0.dll.a when searching for -lglib-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/glib-2.0.lib when searching for -lglib-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/libglib-2.0.dll.a when searching for -lglib-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/glib-2.0.lib when searching for -lglib-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\glib-2.0.lib when searching for -lglib-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/libglib-2.0.dll.a when searching for -lglib-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib/glib-2.0.lib when searching for -lglib-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\glib-2.0.lib when searching for -lglib-2.0
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lglib-2.0
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 1 second(s))
4 error(s), 0 warning(s) (0 minute(s), 1 second(s))
 

GTK is installed here: C:\Program Files (x86)\CodeBlocks\MinGW\gtk

Thanks in advance for your help!

Eric.
77
General (but related to Code::Blocks) / GTK in Code:Blocks (Windows 10)
« Last post by eric1708 on October 22, 2020, 11:07:07 am »
Hi there,

After a serious Windows 10 crash, I had to re-format my disk and to re-install everything on my computer, but I remain unable to re-install GTK on Code:Blocks.

The version of Code:Blocks is the last one available (20.03) but I want to install the 2.24 version of GTK.

GTK is apparently correctly installed (after pkg-config; and gtk-demo works fine). I've correctly declared (I think) in Code:Blocks directories and libraries. However, I remain unable to compile my codes, and get the following error messages:

Quote
ld.exe||cannot find -lgtk-win32-2.0| ld.exe||cannot find-lgobject-2.0| ld.exe||cannot find -lglib-2.0|

These libraries are in gtk/lib, which is declared in Code:Blocks.

This is now driving me crazy.. Especially since I've done that several times before without problems..

Thanks for any help on that & cheers,

Eric.
78
Help / assembly view
« Last post by reverser on October 22, 2020, 10:44:03 am »
hi all
i googled the issue and went by the book as much as i could but still can't see the asm
i put a bp run then open asm sub-window and its empty
any leads on this?!
i reinstalled but nothing changed
79
Help / debugger auto resume
« Last post by reverser on October 22, 2020, 10:35:16 am »
hi all
i reinstalled C::B but the problem persists
i put a bp on a line dbger stops but resumes the app after a few second and log shows " application returned 0"
what might be the problem?
80
Help / Re: Unable to find / create exe file?
« Last post by andrewmacmillan on October 22, 2020, 07:25:59 am »
how it's solved?
Pages: 1 ... 3 4 5 6 7 [8] 9 10