help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

static / shared lib - create options


From: Gad Hayisraeli
Subject: static / shared lib - create options
Date: Tue, 27 Mar 2001 10:25:20 +0200

i need to create shared libs, and while trying to link with some options, i
encounter SIGABRT and SUGSEGV faults.
my options are:
 g++ -fPIC -w -c -traditional -g
 and in linking:
ar -rv <libname>.a *.o (- static lib)
ld -G -o<libname>.so *.o (- shared lib)

note: without the -traditional option, i cannot debug deeply into the code,
even if i use -g. i can debug just 1-2 levels and not more. ( i have 4
objects calling each other's constructor)

moreover, i cannot debug into the libstdc++ headers at all. why ? (such as
basic_string headers)

i use sparc solaris 5.7, g++ 2.9.5, libstdc++ 2.10.1, ld 2.10.1

Regards,

Gad Hayisraeli
VNMS Unix Core Developer
VManage Ltd.
e-mail: gadh@vmanage.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]