This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Odd g++ compiling
- From: Andrew Haley <aph-gcc at littlepinkcloud dot COM>
- To: benjamin <benjamin dot batistic at triera dot net>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 26 Jul 2007 11:20:38 +0100
- Subject: Re: Odd g++ compiling
- References: <1185354248.12123.22.camel@localhost.localdomain>
benjamin writes:
> I have encountered a strange performance while compiling. The problem
> is; when I change some <PARAMETER> in my <PROGRAM> and recompile it via:
>
> g++ <PROGRAM> -o <OUTPUT>
>
> and run it:
>
> ./<OUTPUT>
>
> I get the <Segmentation fault> error massage. OK, but when I recompile
> it once again without changing anything:
>
> g++ <PROGRAM> -o <OUTPUT>
>
> and run it:
>
> ./<OUTPUT>
>
> , the program seems working perfectly well. This is the case only if
> program is exactly <PROGRAM>, I did not noticed such a behaviour
> before.
>
> Any suggestion?
What did your gdb run reveal about the segfault?
Andrew.