creating execuable file in Linux by linking some static libraries (to link ibxyz.a, using -lxyz option). if I strip all symbols in static library (strip -s libxyz.a), then if try to link again, then I gets lot of "undefined reference", can't I do strip on static library using below command?
strip -s xyz.a
6 9935 Banfa 9,065
Recognized Expert Moderator Expert
Erm if you strip all symbols using -s then there will be no symbols left in the library including all the functions you are expecting the linker to find.
Looklike I ma using wrong one, I have to use -g option to remove debugging symbols.
why -S option available, it is not useful at all?
Banfa 9,065
Recognized Expert Moderator Expert
It is eminently useful if you want to force a rebuild of your library from scratch.
RRick 463
Recognized Expert Contributor
Typically, strip is used on a final product like an executable or program. This removes all symbolic information from prying eyes. It makes no sense to do this to a library (unless you really want to rebuild it, like Banfa suggested).
-S might be the option you might want to use. It only removes debugging info.
Thanks. Let me commant that "strip" command right now, let me enable only for final release, right now I just tried whether it is working or not, since my exeuatble file is almost 1.8 meg size, when I do strip on all static libraries, I got down file size to 800K, but currently let me disable strip command.
but I have other thread, I have some issue with shared libs, I changed all to static libs, I created linux execuatble using -static option, somebody suggested not to use -static option at all, if I takeout that -static option, I can see segmentation fault.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Torbak |
last post by:
I got some question about symbols in libraries ...
In libraries, there is public symbols and "not public" symbols
(private, static)... In C when we use the "static" keyword on the
declaration of a function, the function is not public in the library.
1- When I use a class, all is symbols are put in the public section of
the library. How can I change that. The keyword "private" in a class
is only for the langage or does it change (like...
|
by: Shea Martin |
last post by:
Solaris 9, Sun Workshop 5.0
I have ObjectA.o, ObjectB.o. ObjectA.o uses std::list.
I created a archive of the objects: ar cvr libAB.a *.o.
I have example.cc which I am trying to compile against ObjectA ObjectB.
1. CC -I. -o example.bin example.cc ./libAB.a
this fails, on link error to std::list.
|
by: Mikael Östberg |
last post by:
Hello all!
I have been working on a project for some time now and yesterday, my
debugger stopped working.
It is a class library which I run from a Win32 test app, so no IIS involved
at this point.
I can still set breakpoints and when debugging the breakpoints get hit -
just like it would work normally.
|
by: mark |
last post by:
Can't figure this one out. I appears to not be code related. After
surfing my asp.net web app for a while 5 - 10 min. it fails to open
any further connections to my access 2000 database. There seems to be
no set drop off point either that would point to a specific code
problem. I went through and made sure that I explicitly closed all my
connections when done and even called the dispose method after each
one. I noticed that asp.net...
|
by: chandu |
last post by:
Hello,
if create a new project is visual studio 2005 C# windows application.
If i run the application First time VS allows me to debug the code.
if i made any changes to code and debug again it is not possible to debug.
if i put the cursor on the break point giving the tooltip message as
"The breakpoint will not currently be hit.No symbols have been loaded for
this document.".
can any body solve this problem,just i want to debug my...
| |
by: Zach |
last post by:
I compiled a game client and it crashed (segmentation fault) resulting
in a core file being generated. I'm trying to find out exactly what
caused it to crash. Any ideas how I can do this with gdb? In the
Makefile can I just add a "-g" flag to have the binary produced with
debugging symbols? The source is written in ANSI C.
This is what I have now:
"CC = gcc"
The client binary is 433680 and the core file produced when it crashed
|
by: Chris Mullins [MVP - C#] |
last post by:
Anyone gotten this working yet? I'm really looking forward to stepping right
into the Framework code....
I have it set to download symbols from:
http://source.msdn.microsoft.com/symbols
I got his link from Scott's blog at:
http://weblogs.asp.net/scottgu/archive/2007/10/03/releasing-the-source-code-for-the-net-framework-libraries.aspx
Unfortunatly, that link doesn't seem to exist. Visual Studio isn't able to
|
by: John [H2O] |
last post by:
There's a lot of greek for me here ... should I post to numpy-discussions as
well???
The backtrace is at the bottom.... Thanks!
GNU gdb Fedora (6.8-21.fc9)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
|
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= |
last post by:
Hi misters, i have application winforms in VB.NET
When I press F5, for executing Debug....it's slows...
I see,
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |