Skip to Content.
Sympa Menu

sm-users - Re: [SM-Users] stange error message

sm-users AT lists.ibiblio.org

Subject: Sourcemage Users List

List archive

Chronological Thread  
  • From: Jason Flatt <jason AT flattfamily.com>
  • To: sm-users AT lists.ibiblio.org
  • Subject: Re: [SM-Users] stange error message
  • Date: Sun, 7 Dec 2003 05:34:03 -0800

Comments in line:

On Sunday 07 December 2003 04:01 am, Treeve Jelbert wrote:
> Does anyone understand what is causing these error messages.
> I am trying to build some examples which are part of sptk, which depends on
> fltk
>
> I suspected the 'combreloc strip' optimisations, but removing them in the
> two spells makes no difference.
>
> what does "undefined reference to `vtable for Fl_Menu_Bar'" mean?

It means that the function has not been properly described to the compiler.
Generally because the correct header (.h or .hpp file) has not been included.


> fltk installs the following libraries:
>
> /usr/lib/libfltk.a
> /usr/lib/libfltk_forms.a
> /usr/lib/libfltk_gl.a
> /usr/lib/libfltk_images.a
> ____
> root@Sourcemage:/usr/share/doc/sptk/examples# make
> g++ -O3 -Wall -I. `fltk-config --cxxflags` -s -lodbc -lspdb2 -lsptk2
> `fltk-config --ldflags` -lpthread ceditor_test.cpp -o ceditor_test
>
> /tmp/ccuFsY6i.o(.text+0x2850): In function `main':
> : undefined reference to `Fl_Window::show(int, char**)'

I'm going to take a stab in the dark here and suggest that maybe the source
file in question (ceditor_test.cpp) is not properly including the header file
in question (#include <FL/Fl_Window.H>).


> /tmp/ccuFsY6i.o(.gnu.linkonce.r._ZTV8CMenuBar+0x10): undefined reference to
> `Fl_Menu_Bar::draw()'

And again here (#include <FL/Fl_Menu_Bar.H>).


> /tmp/ccuFsY6i.o(.gnu.linkonce.r._ZTV8CMenuBar+0x14): undefined reference to
> `Fl_Menu_Bar::handle(int)'
> /tmp/ccuFsY6i.o(.gnu.linkonce.t._ZN8CMenuBarD1Ev+0x12): In function
>


--
Jason Flatt (jason @ flattfamily . com)
Father of five (http://www.flattfamily.com/)
Linux user (http://www.sourcemage.org/)
IRC Nick: Oadae Channels: #sourcemage, #lvlug Server: irc.freenode.net
PGP Key: E992213F - 0254 9DB7 BE0E 312D 8352 6E39 0700 FB95 E992 213F





Archive powered by MHonArc 2.6.24.

Top of Page