WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: undefined reference to 'typinfo for Fl_Widget'  (Read 3135 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
undefined reference to 'typinfo for Fl_Widget'
« on: August 09, 2009, 01:17:15 PM »
Hi,

compiling an application I'm getting such error messages:

undefined reference to 'typinfo for Fl_Widget'
undefined reference to 'typinfo for Fl_Window'
undefined reference to 'typinfo for Fl_Box'
undefined reference to 'typinfo for Fl_Tile'
...
...

Any ide how to fix?

Béla
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline helander

  • Full Member
  • ***
  • Posts: 183
Re: undefined reference to 'typinfo for Fl_Widget'
« Reply #1 on: August 09, 2009, 01:26:13 PM »
I had the same problem some time ago. If I recall correctly, the problem was that the Makefile used fltk-config to get the compiler flags. I had to change that to  the recommended TC cflag settings ( -fno-exceptions -fno-rtti)

Hope it helps

/Lars

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: undefined reference to 'typinfo for Fl_Widget'
« Reply #2 on: August 09, 2009, 03:17:28 PM »
Probably you are right. Already I changed these settings opposit to the TC adviced defaults according to the messages during compilation. Using

-frtti and -fexceptions

helped to get further with compilation as with original, however I see on the screen that these settings are not honoured by all parts, there are few still compiling with

-fno-rtti and -fno-exceptions

Maybe I have to edit the generated make file manually. Will see.

Thanks... Béla

Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: undefined reference to 'typinfo for Fl_Widget'
« Reply #3 on: October 16, 2009, 10:34:53 AM »
I had to suspend this project for a while but today I tried to compile it again. Result is the same, can't get it compiled. Error messages:

Quote

...
...
g++ -DHAVE_CONFIG_H -I.  -DBUILD_FLDIGI -DLOCALEDIR=\"/usr/local/share/locale\" -I. -I./include -I./irrxml -I./fileselector   -pthread -I/usr/local/include   -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti -I/usr/local/include   -I/usr/local/include     -I/usr/include/libpng12        -pipe -Wall -fexceptions -O2 -ffast-math -finline-functions -fomit-frame-pointer  -DNDEBUG -march=i486 -mtune=i686 -Os -pipe -fexceptions -frtti -MT fldigi-picture.o -MD -MP -MF .deps/fldigi-picture.Tpo -c -o fldigi-picture.o `test -f 'widgets/picture.cxx' || echo './'`widgets/picture.cxx
mv -f .deps/fldigi-picture.Tpo .deps/fldigi-picture.Po
g++ -DHAVE_CONFIG_H -I.  -DBUILD_FLDIGI -DLOCALEDIR=\"/usr/local/share/locale\" -I. -I./include -I./irrxml -I./fileselector   -pthread -I/usr/local/include   -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti -I/usr/local/include   -I/usr/local/include     -I/usr/include/libpng12        -pipe -Wall -fexceptions -O2 -ffast-math -finline-functions -fomit-frame-pointer  -DNDEBUG -march=i486 -mtune=i686 -Os -pipe -fexceptions -frtti -MT fldigi-progress.o -MD -MP -MF .deps/fldigi-progress.Tpo -c -o fldigi-progress.o `test -f 'widgets/progress.cxx' || echo './'`widgets/progress.cxx
mv -f .deps/fldigi-progress.Tpo .deps/fldigi-progress.Po
g++ -DHAVE_CONFIG_H -I.  -DBUILD_FLDIGI -DLOCALEDIR=\"/usr/local/share/locale\" -I. -I./include -I./irrxml -I./fileselector   -pthread -I/usr/local/include   -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti -I/usr/local/include   -I/usr/local/include     -I/usr/include/libpng12        -pipe -Wall -fexceptions -O2 -ffast-math -finline-functions -fomit-frame-pointer  -DNDEBUG -march=i486 -mtune=i686 -Os -pipe -fexceptions -frtti -MT fldigi-analysis.o -MD -MP -MF .deps/fldigi-analysis.Tpo -c -o fldigi-analysis.o `test -f 'wwv/analysis.cxx' || echo './'`wwv/analysis.cxx
mv -f .deps/fldigi-analysis.Tpo .deps/fldigi-analysis.Po
g++ -DHAVE_CONFIG_H -I.  -DBUILD_FLDIGI -DLOCALEDIR=\"/usr/local/share/locale\" -I. -I./include -I./irrxml -I./fileselector   -pthread -I/usr/local/include   -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti -I/usr/local/include   -I/usr/local/include     -I/usr/include/libpng12        -pipe -Wall -fexceptions -O2 -ffast-math -finline-functions -fomit-frame-pointer  -DNDEBUG -march=i486 -mtune=i686 -Os -pipe -fexceptions -frtti -MT fldigi-wwv.o -MD -MP -MF .deps/fldigi-wwv.Tpo -c -o fldigi-wwv.o `test -f 'wwv/wwv.cxx' || echo './'`wwv/wwv.cxx
mv -f .deps/fldigi-wwv.Tpo .deps/fldigi-wwv.Po
g++ -pthread -I/usr/local/include   -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti -I/usr/local/include   -I/usr/local/include     -I/usr/include/libpng12        -pipe -Wall -fexceptions -O2 -ffast-math -finline-functions -fomit-frame-pointer  -DNDEBUG -march=i486 -mtune=i686 -Os -pipe -fexceptions -frtti   -o fldigi  fldigi-locator.o      fldigi-nls.o  fldigi-combo.o fldigi-cw.o fldigi-morse.o fldigi-rtty.o fldigi-colorsfonts.o fldigi-confdialog.o fldigi-fl_digi.o fldigi-font_browser.o fldigi-Viewer.o fldigi-htmlstrings.o fldigi-notifydialog.o fldigi-thor.o fldigi-thorvaricode.o fldigi-dominoex.o fldigi-dominovar.o fldigi-feld.o fldigi-feldfonts.o fldigi-fft.o fldigi-Fl_Native_File_Chooser.o fldigi-fileselect.o fldigi-fftfilt.o fldigi-filters.o fldigi-viterbi.o fldigi-globals.o fldigi-irrXML.o fldigi-adif_io.o fldigi-calendar.o fldigi-date.o fldigi-lgbook.o fldigi-logbook.o fldigi-logsupport.o fldigi-qso_db.o fldigi-table.o fldigi-textio.o fldigi-logger.o fldigi-rx_extract.o fldigi-speak.o fldigi-main.o fldigi-interleave.o fldigi-mfsk.o fldigi-mfskvaricode.o fldigi-ascii.o fldigi-configuration.o fldigi-debug.o fldigi-dxcc.o fldigi-flstring.o fldigi-icons.o fldigi-log.o fldigi-macroedit.o fldigi-macros.o fldigi-misc.o fldigi-network.o fldigi-newinstall.o fldigi-arq_io.o fldigi-lookupcall.o fldigi-pixmaps.o fldigi-qrzlib.o fldigi-re.o fldigi-socket.o fldigi-stacktrace.o fldigi-status.o fldigi-strutil.o fldigi-threads.o fldigi-timeops.o fldigi-util.o fldigi-dsp.o fldigi-mt63.o fldigi-mt63base.o fldigi-olivia.o fldigi-psk.o fldigi-pskcoeff.o fldigi-pskvaricode.o fldigi-viewpsk.o fldigi-pskeval.o fldigi-qrunner.o fldigi-FreqControl.o fldigi-ptt.o fldigi-rigMEM.o fldigi-rigdialog.o fldigi-rigio.o fldigi-rigsupport.o fldigi-rigxml.o fldigi-serial.o fldigi-rsid.o fldigi-mixer.o fldigi-sound.o fldigi-soundconf.o fldigi-notify.o fldigi-pskrep.o fldigi-spot.o fldigi-throb.o fldigi-modem.o fldigi-trx.o fldigi-colorbox.o fldigi-digiscope.o fldigi-raster.o fldigi-waterfall.o fldigi-FTextView.o fldigi-FTextRXTX.o fldigi-Fl_Text_Display_mod.o fldigi-Fl_Text_Editor_mod.o fldigi-Fl_Tile_Check.o fldigi-flinput2.o fldigi-flmisc.o fldigi-picture.o fldigi-progress.o fldigi-analysis.o fldigi-wwv.o  -L/usr/local/lib -lportaudio -lm -lpthread    -Wl,-rpath,/usr/lib -lfltk_images -lpng -lz -ljpeg -lfltk -ldl -lm -lXext -lX11 -L/usr/local/lib -lsndfile   -L/usr/local/lib -lsamplerate     -lpng12        -ldl  -lrt  
fldigi-combo.o:(.rodata._ZTI11Fl_ComboBox[typeinfo for Fl_ComboBox]+0x8): undefined reference to `typeinfo for Fl_Group'
fldigi-combo.o:(.rodata._ZTI13Fl_PopBrowser[typeinfo for Fl_PopBrowser]+0x8): undefined reference to `typeinfo for Fl_Window'
fldigi-combo.o:(.rodata._ZTI17Fl_Select_Browser[typeinfo for Fl_Select_Browser]+0x8): undefined reference to `typeinfo for Fl_Browser'
fldigi-confdialog.o:(.rodata._ZTI9Fl_Output[typeinfo for Fl_Output]+0x8): undefined reference to `typeinfo for Fl_Input'
fldigi-confdialog.o:(.rodata._ZTI10Fl_Spinner[typeinfo for Fl_Spinner]+0x8): undefined reference to `typeinfo for Fl_Group'
fldigi-confdialog.o:(.rodata._ZTI15Fl_Input_Choice[typeinfo for Fl_Input_Choice]+0x8): undefined reference to `typeinfo for Fl_Group'
fldigi-confdialog.o:(.rodata._ZTIN15Fl_Input_Choice15InputMenuButtonE[typeinfo for Fl_Input_Choice::InputMenuButton]+0x8): undefined reference to `typeinfo for Fl_Menu_Button'
fldigi-font_browser.o:(.rodata._ZTI11Preview_Box[typeinfo for Preview_Box]+0x8): undefined reference to `typeinfo for Fl_Widget'
fldigi-font_browser.o:(.rodata._ZTI12Font_Browser[typeinfo for Font_Browser]+0x8): undefined reference to `typeinfo for Fl_Window'
fldigi-Viewer.o:(.rodata._ZTI15Fl_Hold_Browser[typeinfo for Fl_Hold_Browser]+0x8): undefined reference to `typeinfo for Fl_Browser'
fldigi-calendar.o:(.rodata._ZTI9Fl_PopCal[typeinfo for Fl_PopCal]+0x8): undefined reference to `typeinfo for Fl_Window'
fldigi-calendar.o:(.rodata._ZTI16Fl_Calendar_Base[typeinfo for Fl_Calendar_Base]+0x10): undefined reference to `typeinfo for Fl_Group'
fldigi-calendar.o:(.rodata._ZTI12Fl_DateInput[typeinfo for Fl_DateInput]+0x8): undefined reference to `typeinfo for Fl_Group'
fldigi-table.o:(.rodata._ZTI5Table[typeinfo for Table]+0x8): undefined reference to `typeinfo for Fl_Group'
fldigi-FreqControl.o:(.rodata._ZTI12cFreqControl[typeinfo for cFreqControl]+0x8): undefined reference to `typeinfo for Fl_Group'
fldigi-FreqControl.o:(.rodata._ZTI14Fl_Float_Input[typeinfo for Fl_Float_Input]+0x8): undefined reference to `typeinfo for Fl_Input'
fldigi-colorbox.o:(.rodata._ZTI8colorbox[typeinfo for colorbox]+0x8): undefined reference to `typeinfo for Fl_Button'
fldigi-digiscope.o:(.rodata._ZTI9Digiscope[typeinfo for Digiscope]+0x8): undefined reference to `typeinfo for Fl_Widget'
fldigi-raster.o:(.rodata._ZTI6Raster[typeinfo for Raster]+0x8): undefined reference to `typeinfo for Fl_Widget'
fldigi-waterfall.o:(.rodata._ZTI9waterfall[typeinfo for waterfall]+0x8): undefined reference to `typeinfo for Fl_Group'
fldigi-waterfall.o:(.rodata._ZTI6WFdisp[typeinfo for WFdisp]+0x8): undefined reference to `typeinfo for Fl_Widget'
fldigi-Fl_Text_Display_mod.o:(.rodata._ZTI19Fl_Text_Display_mod[typeinfo for Fl_Text_Display_mod]+0x8): undefined reference to `typeinfo for Fl_Group'
fldigi-Fl_Tile_Check.o:(.rodata._ZTI13Fl_Tile_Check[typeinfo for Fl_Tile_Check]+0x8): undefined reference to `typeinfo for Fl_Tile'
fldigi-flinput2.o:(.rodata._ZTI9Fl_Input2[typeinfo for Fl_Input2]+0x8): undefined reference to `typeinfo for Fl_Input'
fldigi-flmisc.o:(.rodata._ZTI13notify_dialog[typeinfo for notify_dialog]+0x8): undefined reference to `typeinfo for Fl_Window'
fldigi-picture.o:(.rodata._ZTI6picbox[typeinfo for picbox]+0x8): undefined reference to `typeinfo for Fl_Box'
fldigi-picture.o:(.rodata._ZTI7picture[typeinfo for picture]+0x8): undefined reference to `typeinfo for Fl_Widget'
fldigi-progress.o:(.rodata._ZTI8Progress[typeinfo for Progress]+0x8): undefined reference to `typeinfo for Fl_Widget'
collect2: ld returned 1 exit status
make[2]: *** [fldigi] Error 1
make[2]: Leaving directory `/mnt/sdb3/src/fldigi/fldigi-3.12.4/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/mnt/sdb3/src/fldigi/fldigi-3.12.4/src'
make: *** [all-recursive] Error 1

Compile script:

Quote
export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"
#export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti"
export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fexceptions -frtti"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
#
./configure --prefix=/usr/local
#
make

I'm stucked at the moment, have no idea how to proceed.
« Last Edit: October 16, 2009, 10:41:29 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."