Recent

Author Topic: Undefined reference to  (Read 2258 times)

woodengineer

  • New Member
  • *
  • Posts: 20
Undefined reference to
« on: June 16, 2013, 01:21:02 am »
Hello,

I am trying to compile a program that has a reference to an external C library.
The program compiles but when it tries to link to the external library I get these undefined reference to 'clock gettime' etc. messages.
This only happens when I try to use FPGUI toolkit.
I used the same external library references with an GTK program without problem.
The lazarus version is  0.9.30.4 / FPC 2.6.0.
I just like the FPGUI as it creates lighter programs with faster compile time.

Thanks!

Leledumbo

  • Hero Member
  • *****
  • Posts: 8266
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Undefined reference to
« Reply #1 on: June 16, 2013, 04:24:28 am »
Static or dynamic library? Those undefined references are from C runtime library. GTK depends on C runtime library already.

woodengineer

  • New Member
  • *
  • Posts: 20
Re: Undefined reference to
« Reply #2 on: June 16, 2013, 05:11:08 am »
Hello Leledumbo,

it is linked dynamically.
Were would I add the required path's?

Alex

 

TinyPortal © 2005-2018