문제

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