This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/7400: segfault with -shared option


Hi,

On 30 Oct 2002 bangerth@dealii.org wrote:

>     I see the same behavior, although it has nothing to do with
>     dynamic_cast as suggested in the previous name of the
>     report: this also happens with this code:
>     ------------------------------
>     int main () {};
>     ------------------------------
>
>     Here's what I get:
>     tmp/g> c++ x.cc
>     tmp/g> ./a.out
>     tmp/g>
>     tmp/g> c++ -shared x.cc
>     tmp/g> ./a.out
>     Speicherzugriffsfehler
>     (which means "Segmentation Fault", I just have not found
>     out how to change the stupid german defaults on my system.)

Huh?  With -shared you create a shared library.  You can't run a shared
lib.  So getting a SEGV isn't wrong.


Ciao,
Michael.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]