help-gplusplus
[Top][All Lists]
Advanced

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

Re: Own assert() -> Segmentation fault


From: Paul Pluzhnikov
Subject: Re: Own assert() -> Segmentation fault
Date: Sun, 05 Nov 2006 10:58:57 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

"StreamKid" <copyrighter@gmail.com> writes:

> Ulrich Eckhardt wrote:
>> - If you compile this with warnings turned on, it will give you a warning
>> which is the cause of your segmentation fault.
> I compiled it with GCC 3.4.6 but I didn't get any warnings!!!

You didn't turn on the warnings then.

$ /usr/local/gcc-3.4.6/bin/g++ -Wall junk.c
junk.c: In function `int main()':
junk.c:16: warning: format argument is not a pointer (arg 2)

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

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