[EMAIL PROTECTED] 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. Uli -- http://gcc.gnu.org/faq.html http://parashift.com/c++-faq-lite/ _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus