From: Ivan Novick <ivandn@yahoo.com>
To: gcc-help@gcc.gnu.org
Subject: -nodefaultlibs and gxx_personality
Date: Mon, 14 May 2007 03:04:00 -0000 [thread overview]
Message-ID: <20070514030412.13186.qmail@web34309.mail.mud.yahoo.com> (raw)
Hi,
I am trying to use -nodefaultlibs to exclude libstdc++
but something is trying to call `__gxx_personality_v0'
which is in libstdc++. How can one compile a simple
C++ program without linking against libstdc++?
$ cat test.cpp
#include <stdio.h>
int main(int argc, char** argv)
{
printf("Hello World\n");
return 0;
}
$ g++ -nodefaultlibs test.cpp -lgcc_s -lgcc -lc
-lgcc_s -lgcc -o tester
/tmp/ccokT7Gw.o:(.eh_frame+0x11): undefined reference
to `__gxx_personality_v0'
Thank you,
ivan@0x4849.net
next reply other threads:[~2007-05-14 3:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-14 3:04 Ivan Novick [this message]
2007-05-14 18:23 ` Ian Lance Taylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070514030412.13186.qmail@web34309.mail.mud.yahoo.com \
--to=ivandn@yahoo.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).