Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » A trouble with "All static" linking on Linux
A trouble with "All static" linking on Linux [message #9832] Fri, 01 June 2007 15:04 Go to next message
trustmaster is currently offline  trustmaster
Messages: 3
Registered: June 2007
Location: Russian Federation
Junior Member
I've encountered following problems when trying to do a Release build with GCC:
Quote:

Linking...
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-lin ux-gnu/bin/ld: cannot find -lgtk-x11-2.0
collect2: running ld finished with error code 1

There were errors. (2:56.77)

It links neither in BLITZ nor in non-BLITZ mode. But when I switched Link mode to "Use shared libs", it linked properly. So it looks like a bug in the U++ make process which passes a wrong linker option (-lgtk-x11-2.0) or breaks the ld syntax when performing all-static linking.
Re: A trouble with "All static" linking on Linux [message #9835 is a reply to message #9832] Fri, 01 June 2007 16:05 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1189
Registered: March 2006
Location: Italy
Senior Contributor
trustmaster wrote on Fri, 01 June 2007 15:04

I've encountered following problems when trying to do a Release build with GCC:
Quote:

Linking...
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-lin ux-gnu/bin/ld: cannot find -lgtk-x11-2.0
collect2: running ld finished with error code 1

There were errors. (2:56.77)

It links neither in BLITZ nor in non-BLITZ mode. But when I switched Link mode to "Use shared libs", it linked properly. So it looks like a bug in the U++ make process which passes a wrong linker option (-lgtk-x11-2.0) or breaks the ld syntax when performing all-static linking.


If I remind, for some reason in linux you can use only shared libs mode. Only in windows you can switch to all static.

Luigi
Re: A trouble with "All static" linking on Linux [message #9842 is a reply to message #9835] Fri, 01 June 2007 22:04 Go to previous messageGo to next message
trustmaster is currently offline  trustmaster
Messages: 3
Registered: June 2007
Location: Russian Federation
Junior Member
Perhaps that switch should be disabled in Linux builds in order to get the users informed instead of nervously trying to track the bug? Smile

[Updated on: Fri, 01 June 2007 22:04]

Report message to a moderator

Re: A trouble with "All static" linking on Linux [message #9859 is a reply to message #9842] Mon, 04 June 2007 14:12 Go to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
Well, perhaps, OTOH you can build console mode apps static linked.
Previous Topic: Meaning of BUGLOG
Next Topic: Mixing C and C++ files (windows with MinGW compiler)
Goto Forum:
  


Current Time: Fri Jun 07 20:32:52 CEST 2024

Total time taken to generate the page: 0.02143 seconds