ab*********@gmail.com wrote:
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