Help with error message

A

abhishek.ip

I am getting the following error message while compiling.
Can someone tell me the root cause of this message and how to fix it.
TIA !

LINUX/ntfTestCases2.o(.bss+0xe8):/usr/lib/gcc/i386-redhat-linux/
3.4.6/../../../../include/c++/3.4.6/bits/locale_facets.tcc:2459:
multiple definition of `saNtfSample'
 
R

Richard Bos

I am getting the following error message while compiling.
multiple definition of `saNtfSample'
Can someone tell me the root cause of this message

You have defined something called saNtfSample more than once.
and how to fix it.

Remove one of the definitions of saNtfSample.

Without seeing your code, we can't give you a more accurate answer
reliably, but one of the more common causes are that you have put a
definition, not a declaration, of an object (more rarely of a function)
in a header. If you then include that header twice, the object is
defined twice. The solution in that case is to put a declaration in the
header, and the definition in one of the source files.

Richard
 
V

Vallabha

I am getting the following error message while compiling.
Can someone tell me the root cause of this message and how to fix it.
TIA !

LINUX/ntfTestCases2.o(.bss+0xe8):/usr/lib/gcc/i386-redhat-linux/
3.4.6/../../../../include/c++/3.4.6/bits/locale_facets.tcc:2459:
multiple definition of `saNtfSample'

As the error says compiler is coming across multiple defintions of
'saNtfSample'. You need to have a single defintion for any function/
varibale in your compilation unit. Get rid of the places where
'saNtfSample' has been defined multiple time.

cheers
-Vallabha
=============
S7 Software Solutions Pvt. Ltd
 
B

Ben Bacarisse

I am getting the following error message while compiling.
Can someone tell me the root cause of this message and how to fix it.
TIA !

LINUX/ntfTestCases2.o(.bss+0xe8):/usr/lib/gcc/i386-redhat-linux/
3.4.6/../../../../include/c++/3.4.6/bits/locale_facets.tcc:2459:
^^^ ^^^
I think you might get better answers in comp.lang.c++
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top