This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Core Dump , when running ./a.out


Hello

 Here where I am now  !!

I compiled my bb.cc  program
using /usr/local/bin/g++  bb.cc

I tried to compile with :   bb.cpp. bb.c, bb.cc, bb.C   almost all the
options.

when I run my ./a.out    file
it gives me the following message:

/usr/ucblib/libucb.so.1  not found

So I resolve this problem by usig :  ld   -R  /usr/ucblib


BUT, now,   when , I run ./a.out , it complains :    core dump

and my program looks like this:

#include <iostream.h>

main()
 {
    int a;
    a = 1;

   cout    << "  I am testing  " <<   a;
}


I tried all the option , I change the path of the iostream.h file in my
program  to:
#include   "/my/path/iostream.h"      for example.

the core dump is coming from the : iostream.h  file , because I  changed
the program to:

#include  "/my/path/iostream.h"
main()
   {

    }
 it still the same problem

Thank you
---------------------- Forwarded by AREF ABOULHOSN/F47621C/VEND/FEDEX on
02/26/2001 01:39 PM ---------------------------


AREF ABOULHOSN
02/26/2001 01:26 PM

To:   Help-gcc@gnu.com
cc:

Subject:  Re: Problem In compiling C++ codes

Hello

 Here where I am now  !!

I compiled my bb.cc  program
using /usr/local/bin/g++  bb.cc

I tried to compile with :   bb.cpp. bb.c, bb.cc, bb.C   almost all the
options.

when I run my ./a.out    file
it gives me the following message:

/usr/ucblib/libucb.so.1  not found

So I resolve this problem by usig :  ld   -R  /usr/ucblib


BUT, now,   when , I run ./a.out , it complains :    core dump

and my program looks like this:

#include <iostream.h>

main()
 {
    int a;
    a = 1;

   cout    << "  I am testing  " <<   a;
}


I tried all the option , I change the path of the iostream.h file in my
program  to:
#include   "/my/path/iostream.h"      for example.

the core dump is coming from the : iostream.h  file , because I  changed
the program to:

#include  "/my/path/iostream.h"
main()
   {

    }
 it still the same problem
Thank you

---------------------- Forwarded by AREF ABOULHOSN/F47621C/VEND/FEDEX on
02/26/2001 01:22 PM ---------------------------


AREF ABOULHOSN
02/26/2001 09:17 AM

To:   sherry <sherry@zeroknowledge.com>
cc:

Subject:  Re: Problem In compiling C++ codes  (Document link: AREF
      ABOULHOSN)

Hello Sherry

 Here where I am now  !!

when I run my ./a.out    file
it gives me the following message:

/usr/ucblib/libucb.so.1  Not found

So I resolve this problem by usig :  ld   -R  /usr/ucblib


BUT, now,   when , I run ./a.out , it complains :    core dump

and my program looks like this:

#include <iostream.h>

main()
 {
    int a;
    a = 1;

   cout    << "  I am testing  " <<   a;
}


I tried all the option , I change the path of the iostream.h file in my
program  to:
#include   "/my/path/iostream.h"      for example.

the core dump is coming from the : iostream.h  file , because I  changed
the program to:

#include  "/my/path/iostream.h"
main()
   {

    }
 it still the same problem

Thank you




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]