KDevelop 2.1 linker: Static flag does not work

From: Erik Bollow (e.bollowDELETE-THIS_at_web.de)
Date: 10/30/03


Date: Thu, 30 Oct 2003 08:49:10 GMT


Hello everybody,

I encountered a little problem using KDevelop 2.1 when I tried to link
libriaries statically. At the linker options there is an appropriate
check box which I activated, but this didn't work: The resulting
executable still needed the dynamic libraries.

It works fine doing it by hand: Using the object files generated by
KDevelop and giving
  g++ *.o -static -lsomelib -o somefile
at command line generates a stand alone executable as desired.

The '-static' flag appears in the compile and link messages of
KDevelop; but that system uses the 'libtool' script to link the object
files. I haven't analized it yet, but the problem may be there.

I'm new in using KDevelop, so maybe this is a trivial problem...

Thanks in advance!

Bye,
Erik



Relevant Pages

  • KDevelop Question
    ... After the recent discussion on C++ IDE's, I thought I'd try out KDevelop ... (I normally use the command line), and I'm having some problems getting ... a program to compile (which works perfectly fine from the command line ... That would compile the PostgreSQL and MySQL client libraries statically, ...
    (Fedora)
  • Re: [kde-linux] Setting GUI font size when running KDevelop from commandline
    ... The problem I have is the GUI font size. ... Is there a command line parameter I can give KDevelop to display ... As far as the command line options are concerned, you can display these ...
    (KDE)
  • Re: [SLE] Kdevelop Question
    ... > expected until the install step when Kdevelop wanted to install files in ... I looked in the Kdevelop config window but did not see a way ... I'm not a kdevelop user, but it looks like that the DESTDIR is not configured ... (from the command line command 'make DESTDIR=.... ...
    (SuSE)
  • [SLE] How to get linker flags from KDevelop into Makefile
    ... I just took my first steps towards using KDevelop for the development of some ... I've set linker flags in the compile section of KDevelop, ... following make command will fail on the linking stage. ...
    (SuSE)