<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hello Matthias,<br></div>I am asking a very simple and stupid question.<br><br></div>I am not able to compile this simple <br>Vc program<br><br>//---------------------------------------------------<br>
#include <Vc/Vc><br>#include "Vc/vector.h"<br>#include <iostream><br>#include <iomanip><br>#include <cstdlib><br>//using Vc::float_v;<br>//using namespace std;<br>int main()<br>{<br> std::cout << Vc::float_v::Size;<br>
//Vc::double_m dist_mask(Vc::Zero);<br>//std::cout<<dist_mask;<br>return 0;<br>}<br>------------------------------------------------------<br><br></div>could you please help me with some CMakeLists.txt file<br></div>
so that i can compile this<br><br></div>currently i m using the attached CMakeLists.txt file <br></div>during compilation i am getting following error<br>*****************************************************************************<br>
Scanning dependencies of target vc1<br>[100%] Building CXX object CMakeFiles/vc1.dir/vc1.cpp.o<br>Linking CXX executable vc1<br>CMakeFiles/vc1.dir/vc1.cpp.o: In function `_GLOBAL__sub_I_main':<br>vc1.cpp:(.text.startup+0x34): undefined reference to `Vc::checkLibraryAbi(unsigned int, unsigned int, char const*)'<br>
collect2: error: ld returned 1 exit status<br>make[2]: *** [vc1] Error 1<br>make[1]: *** [CMakeFiles/vc1.dir/all] Error 2<br>make: *** [all] Error 2<br>*****************************************************************************<br>
<br><br></div>Please suggest me how to resolve this issue<br><br><br><br></div>Regards,<br></div>Raman Sehgal<br></div>