473,408 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

GCC linker throws weird message.

I am compiling with GCC 3.2, and it works well enough. However,
sometimes when I try to link libraries, the linker throws
"NOTAD.o(.eh_frame+0x11):NOTAD.C: undefined reference to
`__gxx_personality_v0'". This never happened until about 3 days ago.

What is __gxx_personality_v0? The linker works for many libraries,
such as stdlib.h, strings.h, etc. However, sometimes it fails. In
this particular case, "signals.h" is causing the trouble. In other
times, "setjump.h", "gmp.h", and some other libraries cause the linker
to throw the error.

Does anyone know why GCC is doing this?

Thanks.

Nov 14 '05 #1
9 1735
Steven wrote:
I am compiling with GCC 3.2, and it works well enough. However,
sometimes when I try to link libraries, the linker throws
"NOTAD.o(.eh_frame+0x11):NOTAD.C: undefined reference to
`__gxx_personality_v0'". This never happened until about 3 days ago.


Not a C question. Try gnu.gcc.help. "gxx" suggests C++ to me,
though I could be wrong.

Allin Cottrell
Nov 14 '05 #2

"Steven" <so******************@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I am compiling with GCC 3.2, and it works well enough. However,
sometimes when I try to link libraries, the linker throws
"NOTAD.o(.eh_frame+0x11):NOTAD.C: undefined reference to
`__gxx_personality_v0'". This never happened until about 3 days ago.

Does anyone know why GCC is doing this?

gcc detects C++ code where you have told it to link only C library support.
Nov 14 '05 #3
Tim Prince wrote:
"Steven" <so******************@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I am compiling with GCC 3.2, and it works well enough. However,
sometimes when I try to link libraries, the linker throws
"NOTAD.o(.eh_frame+0x11):NOTAD.C: undefined reference to
`__gxx_personality_v0'". This never happened until about 3 days ago.

Does anyone know why GCC is doing this?
gcc detects C++ code where you have told it to link only C library support.

man gcc

Nov 14 '05 #4
Rex
because your filename is in UPPER CASE gcc is treating it as a C++
source. rename extension to lower case (.c instead of .C) and it should
work.

Nov 14 '05 #5
Rex wrote:
because your filename is in UPPER CASE gcc is treating it as a C++
source. rename extension to lower case (.c instead of .C) and it should
work.


The error message was:

"NOTAD.o(.eh_frame+0x11):NOTAD.C: undefined reference to
`__gxx_personality_v0'".

Ahh, that's *very* clear!!!!!

What a clear error message. I am really impressed!
Nov 14 '05 #6
jacob navia wrote:
The error message was:

"NOTAD.o(.eh_frame+0x11):NOTAD.C: undefined reference to
`__gxx_personality_v0'".

Ahh, that's *very* clear!!!!!

What a clear error message. I am really impressed!


Well, once you put your thinking cap on, the reference to
"NOTAD.C" is fairly self-explanatory. Someone has ported
source files from a case-insensitive OS to a case-sensitive
one without paying attention, and has paid the price.

Allin Cottrell
Nov 14 '05 #7

"Tim Prince" <tp*****@nospamcomputer.org> wrote in message
news:ZC*****************@newssvr13.news.prodigy.co m...

"Steven" <so******************@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I am compiling with GCC 3.2, and it works well enough. However,
sometimes when I try to link libraries, the linker throws
"NOTAD.o(.eh_frame+0x11):NOTAD.C: undefined reference to
`__gxx_personality_v0'". This never happened until about 3 days ago.

Does anyone know why GCC is doing this?

gcc detects C++ code where you have told it to link only C library
support.

The real problem is that you are referencing an item in your source code
that the linker can't find to link in. This could be for a number of
reasons. Wrong case, currupt object files, misspelling, etc.
Nov 14 '05 #8

"DHOLLINGSWORTH2" <DH*************@cox.net> wrote in message
news:8GTTd.18543$yr.1692@okepread05...

"Tim Prince" <tp*****@nospamcomputer.org> wrote in message
news:ZC*****************@newssvr13.news.prodigy.co m...

"Steven" <so******************@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I am compiling with GCC 3.2, and it works well enough. However,
sometimes when I try to link libraries, the linker throws
"NOTAD.o(.eh_frame+0x11):NOTAD.C: undefined reference to
`__gxx_personality_v0'". This never happened until about 3 days ago.

Does anyone know why GCC is doing this?

gcc detects C++ code where you have told it to link only C library
support.

The real problem is that you are referencing an item in your source code
that the linker can't find to link in. This could be for a number of
reasons. Wrong case, currupt object files, misspelling, etc.

As a previous reply pointed out, gcc treats .C as denoting c++ code,
regardless of OS or contents of the source file.
Nov 14 '05 #9
[snips]

On Fri, 25 Feb 2005 19:21:31 +0100, jacob navia wrote:
The error message was:

"NOTAD.o(.eh_frame+0x11):NOTAD.C: undefined reference to
`__gxx_personality_v0'".

Ahh, that's *very* clear!!!!!

What a clear error message. I am really impressed!


It doesn't really need to be clear. There's really only two ways that I
can see that you'd get the error; one is to screw up the compilation, the
other is if you somehow mucked up your link or environment so badly that
the linker couldn't find libstdc++.

In the first case, it's a user error, trying to compile C code in C++
mode, but without the requisite options - or using the proper compiler
frontend - and in the second, it's liable to also include umpteen other,
more useful diagnostics.
Nov 14 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve Baer | last post by:
I recently read your whitepaper under the "extremely long link times" post and have a question that I was hoping you could answer. My question is based on the following paragraph: Directives...
1
by: Eduard Ralph | last post by:
Hi, I have a weird exception happening when calling the new operator. I'm not sure if this is the intended reaction to the situation or is actually a problem I've got. In any case a different...
9
by: Peter Oliphant | last post by:
For some reson my code is generating a LNK1215 error, which 'suggests' I re-install VS C++. So I did. which did NOT solve the problem. The weid part is it seems to be caused by my one CPP file, but...
1
by: developer | last post by:
Hi All I have made a .NET project. the files included are borland c++ files that i am migrate to VC++ .NET I am using Microsoft Visual C++ .NET 2003. the compilation goes through properly,...
5
by: Mark | last post by:
Sorry for creating such a newbish topic, but I just can't seem to figure out what the problem is here. // main.cpp #include <cstdlib> #include <iostream> #include "Vector.h" using namespace...
4
by: DaTurk | last post by:
Hi, I've noticed that when trying to create a managed, auto_gcrooted variable in a antive class, the compiler throws linker exceptions. While searching some forums I found out that this is a...
1
by: amhoov | last post by:
Hi all, OS - MacOS X 10.4.9 Compiler - gcc 4.0 (XCode) I'm *extremely* new to C++ (but have extensive experience with Java), so please go easy on me. I'm running into a very odd situation...
2
by: Oneironaut | last post by:
Hello friends, I have an issue with a linker warning. It is the warning LNK4089. I am working in MSVC6.0 I investigated and this warning tells that the import of the library to which it makes...
1
by: Deepath G | last post by:
This is deepath.. I am getting some linker error when i am trying to connect Websphere MQ using Borland C++ Builder 2006 using imqi.hpp on windows. Error Message ----------------------- ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.