[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to suppress the "multiple definitions of symbol"
From: |
Ulrich Eckhardt |
Subject: |
Re: How to suppress the "multiple definitions of symbol" |
Date: |
Tue, 05 Dec 2006 22:52:24 +0100 |
User-agent: |
KNode/0.10.4 |
csmgroup@gmail.com wrote:
> The real problem is that even after I declared the class functions as
> inline, and even after forcing it to alwasy be a inline function, it
> doesn't look like it becomes a inline function under the Mac OS X.
>
> template<class T>
> inline void __attribute__((always_inline))
> SPtr<T>::createInstance(const char *classID,
> IBase *reserved)
> {
Hmmm, using __attribute((always_inline)) is like shooting with cannons on
birds, the simple inline should do the job. I just tried something like
what you did and couldn't reproduce the error. I guess we are not doing
the same things, so I suggest you boil this down to a testcase. In your
first posting you had one already, but after fixing the missing inlines,
it should compile and link, so I wonder what the difference to the real
program is.
Uli
[another fullquote environmentally friendly discarded]
--
http://gcc.gnu.org/faq.html
http://parashift.com/c++-faq-lite/
- How to suppress the "multiple definitions of symbol", csmgroup, 2006/12/03
- Re: How to suppress the "multiple definitions of symbol", Paul Pluzhnikov, 2006/12/03
- Re: How to suppress the "multiple definitions of symbol", csmgroup, 2006/12/04
- Re: How to suppress the "multiple definitions of symbol", Ulrich Eckhardt, 2006/12/04
- Re: How to suppress the "multiple definitions of symbol", csmgroup, 2006/12/04
- Re: How to suppress the "multiple definitions of symbol", Maxim Yegorushkin, 2006/12/05
- Re: How to suppress the "multiple definitions of symbol", address@hidden, 2006/12/05
- Re: How to suppress the "multiple definitions of symbol", Ulrich Eckhardt, 2006/12/05
- Re: How to suppress the "multiple definitions of symbol",
Ulrich Eckhardt <=
- Re: How to suppress the "multiple definitions of symbol", csmgroup, 2006/12/06
- Re: How to suppress the "multiple definitions of symbol", Ulrich Eckhardt, 2006/12/07