Recent

Author Topic: Build Library Linux: illegal parameter; -wr  (Read 3149 times)

local-vision

  • New Member
  • *
  • Posts: 12
Build Library Linux: illegal parameter; -wr
« on: February 23, 2014, 10:59:22 pm »
Dear Valued Community,

When attempting to build/compile (even when itś an empty project) library (.so) I get the following error:

illegal parameter; -wr

Any thoughts, leads or solutions? What does this error mean? Is there a list somewhere?

Would much appreciated any assistance. Have Googled the error but did not find any solution.

My machine:

Desktop: Quad Core, 8GB
OS Linux Mint 14
Lazarus:1.0.10
FPC: 2.6.2


Same error with:

Desktop: MacBook Pro i7, Virtual Machine VMWare
OS Linux Mint 14
Lazarus:1.0.10
FPC: 2.6.2

However no problem building the library project (DLL) with Windows.

Desktop: Quad Core, 8GB
OS Win 7 64bit
Lazarus:1.0.10
FPC: 2.6.2

Many thanks for your input.


Fred vS

  • Hero Member
  • *****
  • Posts: 1675
    • miXimum is the DJ's best friend
Re: Build Library Linux: illegal parameter; -wr
« Reply #1 on: February 23, 2014, 11:04:49 pm »
Quote
illegal parameter; -wr

For Linux, if you want to compile a library, you cannot assign Relocatable.

Go in Project Options, Compil and Linking and disable Relocatable.
I use Lazarus 1.8.0 32/64 and FPC 3.0.3 32/64 on Linux Mint Mate 17 32/64, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs

local-vision

  • New Member
  • *
  • Posts: 12
Re: Build Library Linux: illegal parameter; -wr
« Reply #2 on: February 24, 2014, 12:08:12 am »
Hi Fred vS,

Many thanks to you!   :)

Your approached worked and now I can get back to coding. Much appreciated.

Just so it is clear:

Select Project > Project Options 

In the presented dialog go to Compiler Options > Code Generation and then un-check Relocatable (-WR)