Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-06

Errors while linking

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leonardo M. Ramé

Hi People, while trying to compile an app that uses BGRabitmap I've got many linking errors when compiling with debugging information enabled.

I'm using Lazarus and FPC from trunk (updated today) on a Ubuntu 12.04 64bit machine.

Here's the output with errors:

/home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/main.o: In function `.La4': main.pas:(.debug_info+0x16e): undefined reference to `DBG2_$ACTNLIST_$$_TAction' /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/main.o: In function `.La5': main.pas:(.debug_info+0x1dc): undefined reference to `DBG2_$FORMS_$$_TForm' main.pas:(.debug_info+0x1f0): undefined reference to `DBG_$ACTNLIST_$$_TAction' main.pas:(.debug_info+0x204): undefined reference to `DBG_$ACTNLIST_$$_TAction' main.pas:(.debug_info+0x216): undefined reference to `DBG_$ACTNLIST_$$_TAction' main.pas:(.debug_info+0x22c): undefined reference to `DBG_$ACTNLIST_$$_TAction' main.pas:(.debug_info+0x23d): undefined reference to `DBG_$ACTNLIST_$$_TAction' /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/main.o:main.pas:(.debug_info+0x252): more undefined references to `DBG_$ACTNLIST_$$_TAction' follow /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/main.o: In function `.La5': main.pas:(.debug_info+0x49b): undefined reference to `DBG_$MENUS_$$_TMenuItem' main.pas:(.debug_info+0x4ac): undefined reference to `DBG_$MENUS_$$_TMenuItem' main.pas:(.debug_info+0x4bf): undefined reference to `DBG_$MENUS_$$_TMenuItem' main.pas:(.debug_info+0x4d2): undefined reference to `DBG_$MENUS_$$_TMenuItem' main.pas:(.debug_info+0x4e5): undefined reference to `DBG_$MENUS_$$_TMenuItem' /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/main.o:main.pas:(.debug_info+0x4f9): more undefined references to `DBG_$MENUS_$$_TMenuItem' follow /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/main.o: In function `.La5': main.pas:(.debug_info+0x50c): undefined reference to `DBG_$EXTCTRLS_$$_TSplitter' main.pas:(.debug_info+0x522): undefined reference to `DBG_$COMCTRLS_$$_TToolButton' main.pas:(.debug_info+0x538): undefined reference to `DBG_$COMCTRLS_$$_TToolButton' main.pas:(.debug_info+0x54e): undefined reference to `DBG_$COMCTRLS_$$_TToolButton' main.pas:(.debug_info+0x561): undefined reference to `DBG_$MENUS_$$_TPopupMenu' main.pas:(.debug_info+0x575): undefined reference to `DBG_$CONTROLS_$$_TImageList' main.pas:(.debug_info+0x588): undefined reference to `DBG_$MENUS_$$_TMenuItem' main.pas:(.debug_info+0x59c): undefined reference to `DBG_$MENUS_$$_TMenuItem' main.pas:(.debug_info+0x5b0): undefined reference to `DBG_$MENUS_$$_TMenuItem' main.pas:(.debug_info+0x5c4): undefined reference to `DBG_$MENUS_$$_TMenuItem' main.pas:(.debug_info+0x5d8): undefined reference to `DBG_$MENUS_$$_TMenuItem' /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/main.o:main.pas:(.debug_info+0x5ec): more undefined references to `DBG_$MENUS_$$_TMenuItem' follow /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/main.o: In function `.La5': main.pas:(.debug_info+0x78f): undefined reference to `DBG_$MENUS_$$_TPopupMenu' main.pas:(.debug_info+0x7a4): undefined reference to `DBG_$DIALOGS_$$_TSaveDialog' main.pas:(.debug_info+0x7be): undefined reference to `DBG_$EXTCTRLS_$$_TTimer' main.pas:(.debug_info+0x7d6): undefined reference to `DBG_$ACTNLIST_$$_TActionList' main.pas:(.debug_info+0x7eb): undefined reference to `DBG_$DIALOGS_$$_TOpenDialog' main.pas:(.debug_info+0x7fd): undefined reference to `DBG_$COMCTRLS_$$_TToolBar' main.pas:(.debug_info+0x80e): undefined reference to `DBG_$COMCTRLS_$$_TToolButton' main.pas:(.debug_info+0x81e): undefined reference to `DBG_$COMCTRLS_$$_TToolButton' main.pas:(.debug_info+0x836): undefined reference to `DBG_$COMCTRLS_$$_TToolButton' main.pas:(.debug_info+0x84b): undefined reference to `DBG_$COMCTRLS_$$_TToolButton' main.pas:(.debug_info+0x861): undefined reference to `DBG_$COMCTRLS_$$_TToolButton' /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/main.o:main.pas:(.debug_info+0x877): more undefined references to `DBG_$COMCTRLS_$$_TToolButton' follow /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/main.o: In function `.La5': main.pas:(.debug_info+0x9b0): undefined reference to `DBG_$ACTNLIST_$$_TActionList' main.pas:(.debug_info+0x1547): undefined reference to `DBG_$FORMS_$$_TCloseAction' main.pas:(.debug_info+0x1596): undefined reference to `DBG_$MENUS_$$_TMenuItem' main.pas:(.debug_info+0x19fa): undefined reference to `DBG_$LCLTYPE_$$_THandle' main.pas:(.debug_info+0x1ba0): undefined reference to `DBG_$GRAPHTYPE_$$_TGraphicsColor' main.pas:(.debug_info+0x1bab): undefined reference to `DBG_$GRAPHTYPE_$$_TGraphicsColor' main.pas:(.debug_info+0x1f43): undefined reference to `DBG_$FORMS_$$_TCloseAction' main.pas:(.debug_info+0x2253): undefined reference to `DBG_$MENUS_$$_TMenuItem' /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/drawer.o: In function `.La4': drawer.pas:(.debug_info+0x2b8): undefined reference to `DBG_$CONTROLS_$$_TMouseWheelEvent' drawer.pas:(.debug_info+0x3d0): undefined reference to `DBG_$FORMS_$$_THintWindow' drawer.pas:(.debug_info+0x4b4): undefined reference to `DBG_$CONTROLS_$$_TMouseWheelEvent' drawer.pas:(.debug_info+0x6b3): undefined reference to `DBG_$CONTROLS_$$_TMouseButton' drawer.pas:(.debug_info+0x829): undefined reference to `DBG_$CONTROLS_$$_TMouseButton' drawer.pas:(.debug_info+0xd66): undefined reference to `DBG_$CONTROLS_$$_TAlign' drawer.pas:(.debug_info+0xefa): undefined reference to `DBG_$CONTROLS_$$_TDragState' /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/series.o: In function `.La67': series.pas:(.debug_info+0x80ec): undefined reference to `DBG2_$EXTCTRLS_$$_TPaintBox' series.pas:(.debug_info+0x81e6): undefined reference to `DBG_$CONTROLS_$$_TMouseButton' series.pas:(.debug_info+0x8230): undefined reference to `DBG_$CONTROLS_$$_TMouseButton' /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/layout.o: In function `.La2': layout.pas:(.debug_info+0x264): undefined reference to `DBG_$EXTCTRLS_$$_TPaintBox' /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/layout.o: In function `.La6': layout.pas:(.debug_info+0x818): undefined reference to `DBG_$CONTROLS_$$_TMouseWheelEvent' layout.pas:(.debug_info+0x876): undefined reference to `DBG_$EXTCTRLS_$$_TPanel' layout.pas:(.debug_info+0x887): undefined reference to `DBG_$CONTROLS_$$_TControl' layout.pas:(.debug_info+0xa66): undefined reference to `DBG_$CONTROLS_$$_TControl' layout.pas:(.debug_info+0xacd): undefined reference to `DBG_$EXTCTRLS_$$_TPanel' layout.pas:(.debug_info+0xafe): undefined reference to `DBG_$CONTROLS_$$_TMouseWheelEvent' layout.pas:(.debug_info+0x120b): undefined reference to `DBG_$CONTROLS_$$_TWinControl' layout.pas:(.debug_info+0x134f): undefined reference to `DBG_$EXTCTRLS_$$_TPaintBox' layout.pas:(.debug_info+0x15a9): undefined reference to `DBG_$CONTROLS_$$_TCursor' /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/dlglayout.o: In function `.La1': dlglayout.pas:(.debug_info+0xa3): undefined reference to `DBG2_$FORMS_$$_TForm' dlglayout.pas:(.debug_info+0xb9): undefined reference to `DBG_$BUTTONPANEL_$$_TButtonPanel' dlglayout.pas:(.debug_info+0xcb): undefined reference to `DBG_$STDCTRLS_$$_TGroupBox' dlglayout.pas:(.debug_info+0xdd): undefined reference to `DBG_$STDCTRLS_$$_TGroupBox' dlglayout.pas:(.debug_info+0xf3): undefined reference to `DBG_$BUTTONS_$$_TSpeedButton' dlglayout.pas:(.debug_info+0x10a): undefined reference to `DBG_$BUTTONS_$$_TSpeedButton' ....
more similar errors
....

Regards,

Reply by email

Mattias Gaertner
to Leonardo M. Ramé
Show quoted text 11 lines
Hi People, while trying to compile an app that uses BGRabitmap I've got many linking errors when compiling with debugging information enabled. I'm using Lazarus and FPC from trunk (updated today) on a Ubuntu 12.04 64bit machine. Here's the output with errors: /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/main.o: In function `.La4': main.pas:(.debug_info+0x16e): undefined reference to `DBG2_$ACTNLIST_$$_TAction' /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/main.o: In function `.La5':

Have you tried a clean rebuild?
Run / Clean up build files?

Mattias

Reply by email

Leonardo M. Ramé
to Mattias Gaertner
Mattias Gaertner wrote 18 lines
On Thu, 19 Jun 2014 11:49:46 -0300 Leonardo M. Ram? wrote: > Hi People, while trying to compile an app that uses BGRabitmap I've got > many linking errors when compiling with debugging information enabled. > > I'm using Lazarus and FPC from trunk (updated today) on a Ubuntu 12.04 > 64bit machine. > > Here's the output with errors: > > /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/main.o: In function `.La4': > main.pas:(.debug_info+0x16e): undefined reference to `DBG2_$ACTNLIST_$$_TAction' > /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/main.o: In function `.La5': Have you tried a clean rebuild? Run / Clean up build files?

Yes, and the problem persists. Also deleted the debugger directory of my svn lazarus directory and updated again, but I've got the same.

Reply by email

Reinier Olislagers
to Leonardo M. Ramé: Hi People, while trying to compile an app that uses BGRabitmap I've got many linking…
Leonardo M. Ram? wrote 7 lines
I'm using Lazarus and FPC from trunk (updated today) on a Ubuntu 12.04 64bit machine. Here's the output with errors: /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/main.o: In function `.La4': main.pas:(.debug_info+0x16e): undefined reference to `DBG2_$ACTNLIST_$$_TAction'

What options did you use when compiling - e.g. one or more of the -g... options?

Reply by email

Leonardo M. Ramé
to Reinier Olislagers
Reinier Olislagers wrote 13 lines
On 19/06/2014 16:49, Leonardo M. Ram? wrote: > I'm using Lazarus and FPC from trunk (updated today) on a Ubuntu 12.04 > 64bit machine. > > Here's the output with errors: > > /home/leonardo/Desarrollo/griensu/GViewerIII/lib/x86_64-linux/main.o: In function `.La4': > main.pas:(.debug_info+0x16e): undefined reference to `DBG2_$ACTNLIST_$$_TAction' What options did you use when compiling - e.g. one or more of the -g... options?

Hmm, it was DWARF3 (beta), I changed to -g and it worked.

Reply by email