[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with g++ in linux
From: |
Paul Pluzhnikov |
Subject: |
Re: Problem with g++ in linux |
Date: |
15 Jul 2004 23:11:03 -0700 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence) |
roger@uanl.mx (Roger Z Rios) writes:
> I have a C++ code that compiles and runs perfectly under
> the Sun CC compiler Solaris 7. I am now trying
> to run my code using Linux Suse gnu g++ 3.3.1. Compilation
> goes ok, but then, when running, I get a lot of
> segmentation fault errors, am I missing any flag??
It is not at all unusual to discover many bugs when porting programs
to a different processor.
Run your program under valgrind, and fix any problems it detects.
If the code still crashes, post a crash stack trace (obtainable
with a debugger (gdb on Linux)).
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.