help-gplusplus
[Top][All Lists]
Advanced

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

Re: g++ 3.3.1 (SuSe linux)


From: Guy Harrison
Subject: Re: g++ 3.3.1 (SuSe linux)
Date: Sun, 18 Jul 2004 14:59:49 GMT
User-agent: KNode/0.7.7

Roger Z Rios wrote:

> I have a C++ code which compiles and runs under
> the Sun C++ compiler in Solaris 7.
> 
> I am now trying to run my code under linux intel
> Suse g++ 3.3.1 (SuSe Linux).  It compiles ok, but
> when run, a lot of "segmentation fault" errors
> appear.  The code is standard C++ (I don't link any
> library, and use standard *.h files).  Is there
> any flag I am missing when using g++??

g++ -ansi -pedantic -W -Wall -Werror 

You might have to dispense with "-pedantic" if it happens to barf inside
system headers. Difficult to say more without concrete example, except to
run it under 'gdb' (add "-g" to above). "man gcc" will reveal what they all
do.



reply via email to

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