Recent

Author Topic: Compiling an application using Lua  (Read 20119 times)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8114
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Compiling an application using Lua
« Reply #15 on: August 11, 2010, 03:12:35 am »
Upon compiling, you might capture messages saying: unit xxx not used in yyy. This is a hint, so make sure you have -vi in compiler option. Remove those units, and (hopefully) your problem will be gone.

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 674
Re: Compiling an application using Lua
« Reply #16 on: August 11, 2010, 10:06:02 am »
Upon compiling, you might capture messages saying: unit xxx not used in yyy. This is a hint, so make sure you have -vi in compiler option. Remove those units, and (hopefully) your problem will be gone.
The compiler is only supposed to print that hint if removing that unit does not result functional changes to the program. If a unit instructs the compiler to link a library, then removing that unit will cause changes, so the compiler should not print that hint for such units (and if it does, that's a bug).

And to the OP: yes, removing the x and xlib units from the sdl unit should be enough to solve your problems.