[LLVMdev] Strange linker error with clang 3.2

Anton Korobeynikov anton at korobeynikov.info
Tue Mar 19 11:59:29 PDT 2013


Hello

> I get a strange linker error with the clang compiler version 3.2 on the
> Debian build system: There is an "undefined reference" error even though
> the function was previously defined in the same file. The code works
> without any issues with the GNU toolchain.
This is expected behavior.

http://clang.llvm.org/compatibility.html#inline is your friend here

--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list