I am getting the following warning when I use Code::Block / Intel C++ Compiler: "myLib.a is an archive, but has no symbols (this can happen if ar is used where xiar is needed)" This is followed by Linker errors for missing symbols. The project builds fine in gcc compiler. How do I have code blocks run xiar instead of ar ?

有帮助吗?

解决方案

How do I have code blocks run xiar instead of ar?

  • In the Code::Blocks IDE navigate Settings -> Compiler
  • Set Selected Compiler = Intel C++ (whatever you have called it)
  • Tab to Toolchain executables -> Program files
  • In the edit box Linker for static libs change ar to xiar (or possibly path/to/xiar, if the Intel tools aren't in your PATH)
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top