Linking Error in Linux!
John Dubchak
johndubchak at yahoo.com
Thu Apr 11 14:35:49 BST 2002
Shra,
It sounds like you're including the file in more than
one place.
Two possible solutions:
1. Include it only once - completely obvious I know.
2. Wrap the function in a #if !defined/#endif
construct
to ensure that it is only being defined once.
Also, is this a template function?
Is it possible to define the function at the top of
your main.cpp file?
Hope that helps.
John Dubchak
--- Shra <shravan at yaskatech.com> wrote:
>
> Hello everybody,
>
> The problem is like this:
> A function is defined in a user defined header
> file.Now while linking the
> main object file with the corresponding object file
> of the header file, the
> error says "multiple definition of the function in
> the object file of the
> corresponding .C file of the header file & it also
> says that the function is
> first defined in main.o. It also gives a warning
> messg saying that size of
> the function is changed in the object file .
> Pls reply to the problem if anyone has any idea
> about that type of
> error...
> Thanks
> shra
>
>
>
> -
> to unsubscribe from this list send an email to
> kdevelop-request at kdevelop.org with the following
> body:
> unsubscribe »your-email-address«
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list