[Top][All Lists]

[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: Mon, 04 Dec 2006 20:29:22 +0100
User-agent: KNode/0.10.4 wrote:
> Yes, the inline was the cause of the problem.

No, the lack of inline caused it.

>> There might be a flag to suppress such errors, but why not write
>> correct code instead?
> Actually, I'm compiling OpenAccess open source (CAD tool) under Mac OS
> X and Linux.
> With Mac OS X, there is a case the inline code just becomes function
> which casues the duplication error.

Please reread what Paul said, the problem was that code was written to be
included inline but it wasn't declared inline. That means you can either
declare it inline or include it in exactly one translation unit.

> I just wanted to know if I can 
> solve this problem using some compiler/linker flags. 

Possibly, look up linker settings, but you should fix the code instead of
trying to work around it.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]