Author Topic: codeblocks does not compile / link because of MouseEventsHandler  (Read 263 times)

Offline magfan

  • Single posting newcomer
  • *
  • Posts: 3
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?


Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1745
Re: codeblocks does not compile / link because of MouseEventsHandler
« Reply #1 on: Yesterday at 12:03:00 pm »
Probably related to this line in dragscroll.cpp and dragscroll.h
Code
#if defined(__GNUG__) && !defined(__APPLE__) && !defined(__MINGW32__)
where __GNUG__ should be __GNUC__.

Offline magfan

  • Single posting newcomer
  • *
  • Posts: 3
Re: codeblocks does not compile / link because of MouseEventsHandler
« Reply #2 on: Yesterday at 08:13:25 pm »
 Unfortunately, this does not solve the problem.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7792
    • My Best Post
The file "linux_functions.cpp" needs added to the Makefile build system.

Edit: likely to src/plugins/contrib/dragscroll/Makefile.am


« Last Edit: Today at 01:14:36 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2879
The file "linux_functions.cpp" needs added to the Makefile build system.

Edit: likely to src/plugins/contrib/dragscroll/Makefile.am

Fixed svn 13682
Thanks