Sign in Join

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

Mailing lists / fpc-pascal / 2014-11

Linker problems FPC 2.6.4

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Frank McCormick

I am just getting back into Pascal after a number of years -- I installed 2.6.4 from the tarball. To try it out I copied the browser demo (browserall.pp) into my home directory
and tried to compile. The linker complied it could not find -lform. Am I doing something wrong ?

Thanks

Reply by email

Jonas Maebe
to Frank McCormick
Frank McCormick wrote 5 lines
I am just getting back into Pascal after a number of years -- I installed 2.6.4 from the tarball. To try it out I copied the browser demo (browserall.pp) into my home directory and tried to compile. The linker complied it could not find -lform. Am I doing something wrong ?

That demo apparently requires that you install the "-dev" version of the (Linux/*BSD/...) package that supplies libform.

Jonas

Reply by email

Frank McCormick
to Jonas Maebe
Jonas Maebe wrote 11 lines
On 25/11/14 04:17, Frank McCormick wrote: > I am just getting back into Pascal after a number of years -- I > installed 2.6.4 from the tarball. To try it out I copied the browser > demo (browserall.pp) into my home directory > and tried to compile. The linker complied it could not find -lform. Am I > doing something wrong ? That demo apparently requires that you install the "-dev" version of the (Linux/*BSD/...) package that supplies libform.

I installed the libform packages but I get this now:

/usr/bin/ld: warning: link.res contains output sections; did you forget -T? /usr/lib/fpc/2.6.4/units/i386-linux/xforms/xforms.o: In function `XFORMS_FL_SETPUP_DEFAULT_FONTSIZE$LONGINT$$LONGINT': xforms.pp:(.text+0x14b): undefined reference to `fl_setpup_fontsize' /usr/lib/fpc/2.6.4/units/i386-linux/xforms/xforms.o: In function `XFORMS_FL_SETPUP_DEFAULT_FONTSTYLE$LONGINT$$LONGINT': xforms.pp:(.text+0x16b): undefined reference to `fl_setpup_fontstyle' /usr/lib/fpc/2.6.4/units/i386-linux/xforms/xforms.o: In function `XFORMS_FL_SETPUP_DEFAULT_COLOR$LONGINT$LONGINT':
xforms.pp:(.text+0x186): undefined reference to `fl_setpup_color' browserall.pp(178,1) Error: Error while linking
browserall.pp(178,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)

Reply by email

Frank McCormick
to Frank McCormick
Frank McCormick wrote 31 lines
On 11/25/2014 03:42 AM, Jonas Maebe wrote: > On 25/11/14 04:17, Frank McCormick wrote: >> I am just getting back into Pascal after a number of years -- I >> installed 2.6.4 from the tarball. To try it out I copied the browser >> demo (browserall.pp) into my home directory >> and tried to compile. The linker complied it could not find -lform. Am I >> doing something wrong ? > > That demo apparently requires that you install the "-dev" version of the > (Linux/*BSD/...) package that supplies libform. > > I installed the libform packages but I get this now: /usr/bin/ld: warning: link.res contains output sections; did you forget -T? /usr/lib/fpc/2.6.4/units/i386-linux/xforms/xforms.o: In function `XFORMS_FL_SETPUP_DEFAULT_FONTSIZE$LONGINT$$LONGINT': xforms.pp:(.text+0x14b): undefined reference to `fl_setpup_fontsize' /usr/lib/fpc/2.6.4/units/i386-linux/xforms/xforms.o: In function `XFORMS_FL_SETPUP_DEFAULT_FONTSTYLE$LONGINT$$LONGINT': xforms.pp:(.text+0x16b): undefined reference to `fl_setpup_fontstyle' /usr/lib/fpc/2.6.4/units/i386-linux/xforms/xforms.o: In function `XFORMS_FL_SETPUP_DEFAULT_COLOR$LONGINT$LONGINT': xforms.pp:(.text+0x186): undefined reference to `fl_setpup_color' browserall.pp(178,1) Error: Error while linking browserall.pp(178,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)

I should add that I checked and all the functions it's complaining about are defined in forms.h...part of the libforms-dev package.

Thanks

Reply by email