07-12-2017
I think you can remove the -g option, or perhaps change it to "-ggdb", a popular debugging format for gcc allowing you see symbols when the executable or library is used with gdb, the gnu debugger.
The -y option I'm having more trouble finding. It may refer to "static debugging info", if the HP-UX fortran manpage is relevant, or it may be a corruption of -Y, for "default location for libraries" which I doubt since no folder follows it. So remove it.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
currently I have Fedora Core 7 and I use the Compiler ported with FC7.
i.e "cc src.c".
but I am unable to explore the Compilation Options that can be passed with cc...
like cc -c and options like that.. but when I tried man cc, I did not find any mnaual page for CC..
so now how do... (2 Replies)
Discussion started by: compbug
2 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
We have a C program existing in one of the folders which I have to modify a lil bit, When I'm trying to compile the program using GCC or CC command its showing as
ksh: gcc: not found
is that mean there is no compiler or do I have to verify for something, please advice
Thank... (2 Replies)
Discussion started by: diggermf
2 Replies
3. AIX
hi, I first want to apologize for my poor english !
I'm a newbe on Unix system and I have to install NRPE on an AIX 5.3.
I have downloaded the NRPE Source code and i need to compile them...
the problem is, when I do a:
./configure --enable-command-args --disable-ssl
it returns me :... (1 Reply)
Discussion started by: Cyr1us
1 Replies
4. Programming
Dear all
I am new to C programming
In response to the post
cat get_time.c
#include <stdlib.h>
#include <sys/time.h>
main()
{
struct timeval tv;
struct timezone tz;
struct tm *tm;
gettimeofday(&tv, &tz);
tm=localtime(&tv.tv_sec);
printf("... (2 Replies)
Discussion started by: on9west
2 Replies
5. AIX
Hi,
I am executing the below mentioned code:-
proc SQLCHECK=SEMANTICS iname=CDBInteractor.pc parse=none code=cpp cpp_suffix=cpp
g++ -c main.cpp
g++ -o pre_request_engine main.o -I/oracle/oracle/app/product/10g/precomp -L/oracle/oracle/app/product/10g/lib32 -lnsl -ldl
And... (2 Replies)
Discussion started by: tushar_tus
2 Replies
6. AIX
Hi,
I tried to compile vim on AIX OS.
I tried all version from 6.4 to 7.2 and
the effect is the same.
./configuration --prefix=/home/me OK
make
The make try to compile first file buffer.c ane it gived me message like this
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_ATHENA ... (2 Replies)
Discussion started by: marcintom.aviva
2 Replies
7. Shell Programming and Scripting
Hi All,
Do we have a way to compile a shell program?
I am using ksh/bash/sh and not CSH.
Cheers
Ravi (12 Replies)
Discussion started by: panyam
12 Replies
8. Ubuntu
Hello Everyone,
First of all, I highly appreciate all Linux forum members and whole Linux community. http://forums.linuxmint.com/images/smilies/icon_wink.gif. I wish you the best for all of you !
I will try to be short and concise: I am using Linux Mint 10 for 2 months on 2 ws, and all went... (3 Replies)
Discussion started by: cdt
3 Replies
LEARN ABOUT DEBIAN
dh_strip
DH_STRIP(1) Debhelper DH_STRIP(1)
NAME
dh_strip - strip executables, shared libraries, and some static libraries
SYNOPSIS
dh_strip [debhelperoptions] [-Xitem] [--dbg-package=package] [--keep-debug]
DESCRIPTION
dh_strip is a debhelper program that is responsible for stripping executables, shared libraries, and static libraries that are not used for
debugging.
This program examines your package build directories and works out what to strip on its own. It uses file(1) and file permissions and
filenames to figure out what files are shared libraries (*.so), executable binaries, and static (lib*.a) and debugging libraries (lib*_g.a,
debug/*.so), and strips each as much as is possible. (Which is not at all for debugging libraries.) In general it seems to make very good
guesses, and will do the right thing in almost all cases.
Since it is very hard to automatically guess if a file is a module, and hard to determine how to strip a module, dh_strip does not
currently deal with stripping binary modules such as .o files.
OPTIONS
-Xitem, --exclude=item
Exclude files that contain item anywhere in their filename from being stripped. You may use this option multiple times to build up a
list of things to exclude.
--dbg-package=package
Causes dh_strip to save debug symbols stripped from the packages it acts on as independent files in the package build directory of the
specified debugging package.
For example, if your packages are libfoo and foo and you want to include a foo-dbg package with debugging symbols, use dh_strip
--dbg-package=foo-dbg.
Note that this option behaves significantly different in debhelper compatibility levels 4 and below. Instead of specifying the name of
a debug package to put symbols in, it specifies a package (or packages) which should have separated debug symbols, and the separated
symbols are placed in packages with -dbg added to their name.
-k, --keep-debug
Debug symbols will be retained, but split into an independent file in usr/lib/debug/ in the package build directory. --dbg-package is
easier to use than this option, but this option is more flexible.
NOTES
If the DEB_BUILD_OPTIONS environment variable contains nostrip, nothing will be stripped, in accordance with Debian policy (section 10.1
"Binaries").
CONFORMS TO
Debian policy, version 3.0.1
SEE ALSO
debhelper(7)
This program is a part of debhelper.
AUTHOR
Joey Hess <joeyh@debian.org>
9.20120909 2012-05-19 DH_STRIP(1)