Hi,
        Thx for the reply. Maybe I am not clear myself.

        On some unix machines, when it seg faults, the compiler
        will say something segmentation fault(core dumped). Then the
        compiler will write a file core in the current dir.

        On my linux machine, when it segmentation faults, it does not
        do that. It only saids sengmentation fault, and no core is dumped.

        I don't think there is any point of doing this, but just wondering...

        Thanks.

Shao.
On Sat, Jun 12, 1999 at 11:27:19PM +0200, Lex Chive wrote:
> On Sun, Jun 13, 1999 at 05:35:56AM +1000, Shao Zhang wrote:
> >     How do I configure the g++ compiler to dump a core when it
> >     segment faults.
> 
> I guess you're looking at the command to enable any segmentation faults. Under
> bash, the command to use is `ulimit', try `man ulimit' to see the various
> options as it is possible to fine-tune it. If you dont care you can just do
> `ulimit -c unlimited' (unless your admin has disabled this), which will enable
> any application to dump a core as large as it wants it.
> 
> I am sorry if I have mistaken your point but I dont think there is a way to
> configure the compiler to enable core dumps.
> 
> -Lex



-- 
____________________________________________________________________________
Shao Zhang - Running Debian 2.1  ___ _               _____
Department of Communications    / __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _ 
University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` |
Sydney, Australia               |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
Email: [EMAIL PROTECTED]                                                  |___/ 
_____________________________________________________________________________

Reply via email to