User forums > General (but related to Code::Blocks)
codeblocks does not compile / link because of MouseEventsHandler
magfan:
I downloaded the latest SVN version this morning and wanted to compile it as usual. This time, however, I received an error message:
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: .libs/dragscroll.o: in function `cbDragScroll::Detach(wxWindow*)':
dragscroll.cpp:(.text+0x2445): undefined reference to `MouseEventsHandler::OnMouseRightDown(wxMouseEvent&)'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: dragscroll.cpp:(.text+0x2494): undefined reference to `MouseEventsHandler::OnMouseRightUp(wxMouseEvent&)'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: .libs/dragscroll.o: in function `cbDragScroll::Attach(wxWindow*)':
dragscroll.cpp:(.text+0x404c): undefined reference to `MouseEventsHandler::OnMouseRightDown(wxMouseEvent&)'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: dragscroll.cpp:(.text+0x409d): undefined reference to `MouseEventsHandler::OnMouseRightUp(wxMouseEvent&)'
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: dragscroll.cpp:(.text+0x40ee): undefined reference to `MouseEventsHandler::OnMouseRightUp(wxMouseEvent&)'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:557: libdragscroll.la] Fehler 1
How can I solve this?
Miguel Gimenez:
Probably related to this line in dragscroll.cpp and dragscroll.h
--- Code: ---#if defined(__GNUG__) && !defined(__APPLE__) && !defined(__MINGW32__)
--- End code ---
where __GNUG__ should be __GNUC__.
magfan:
Unfortunately, this does not solve the problem.
stahta01:
The file "linux_functions.cpp" needs added to the Makefile build system.
Edit: likely to src/plugins/contrib/dragscroll/Makefile.am
Pecan:
--- Quote from: stahta01 on July 29, 2025, 01:11:22 am ---The file "linux_functions.cpp" needs added to the Makefile build system.
Edit: likely to src/plugins/contrib/dragscroll/Makefile.am
--- End quote ---
Fixed svn 13682
Thanks
Navigation
[0] Message Index
[#] Next page
Go to full version