* HELP: Cannot execute programs compiled with g++ version 3.0.3
@ 2002-01-09 16:52 Ramanand Mandayam
0 siblings, 0 replies; only message in thread
From: Ramanand Mandayam @ 2002-01-09 16:52 UTC (permalink / raw)
To: gcc-help
Hello,
We recently upgraded to gcc version 3.0.3. We used all the default
configuration options but added
the --enable-shared option during configuration. We have installed it under
/usr/local/pkg/gcc/3.0.3 and the installation appears to have been
processed
successfully (??).
I wrote a very simple, C++ program as follows:
int main(int argc, char *argv[]) {
return 0;
}
I compiled the program with the following command:
/usr/local/pkg/gcc/3.0.3/bin/g++ -g main.cc
The program compiles, links and produces an executable. The executable
seems to link all the correct shared libraries when I do
ldd a.out
However, when I run the program, I get segmentation violation. Upon
investigating with gdb (version 4.17?) I am able to determine that the
program croaks in the function __do_global_dtors_aux().
I have no idea why we are even trying to do a global destructor call
since there
are no global objects?? Or maybe I am just not doing something correct in
the compilation and linking stage.
Any help would be appreciated.
Thanks in advance
Ramanand
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-01-10 0:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-09 16:52 HELP: Cannot execute programs compiled with g++ version 3.0.3 Ramanand Mandayam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).