Eclipse Luna LLVM support forces stdc++ [message #1405053] |
Wed, 06 August 2014 13:04 |
Kamil Saigol Messages: 7 Registered: July 2014 |
Junior Member |
|
|
Hi,
Under Arch x86_64 with Eclipse Luna and CDT newly-installed, selecting the "LLVM with Clang" toolchain option works without issue when using libstdc++. However, it seems to be impossible to remove the "stdc++" option from Window -> Preferences -> LLVM. It comes back whenever removed and is always present when a project is compiled.
This means that "-lstdc++" is always added to the Linker command even when trying to use libcxx.
I have tried removing the library from the project properties as well -- same problem occurs.
This problem occurs under Ubuntu as well. For example, see here or here.
Under Ubuntu I noticed that the library directory was also forced. This does not happen in Arch.
Is there any way to stop this from happening?
Note: One workaround may be to select the "Linux GCC" option, change the calls to g++ to clang++, and manually add include dirs, libs, and flags. However, this defeats the purpose of LLVM support tools and needs to be redone for every project that uses libcxx.
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.03258 seconds