Recent

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

local-vision

  • New Member
  • *
  • Posts: 48
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: 3168
    • StrumPract is the musicians 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 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

local-vision

  • New Member
  • *
  • Posts: 48
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)


 

TinyPortal © 2005-2018