Problem while compiling Vc program
Matthias Kretz
[please enable javascript to see the address]
Mon Aug 5 10:14:06 CEST 2013
Hello Raman,
On Thursday 01 August 2013 17:42:00 Raman Sehgal wrote:
> This is my first post to Vc mailing list.
Welcome!
> What i am trying to do is compiling the "polorcoord" program
> and would like to compile stand alone
> i am using following command
>
> *gcc -o <executableName> <program.c> -I/<Path to include VC directory>
> -L/<Path to VC lib>*
>
> It is giving a lot of errrors.
>
> I am wondering how to compile the examples provided by Vc
>
>
> I know my questions seems stupid but i am facing this compilation problem
> Please let me know how to compile it.
http://code.compeng.uni-frankfurt.de/docs/Vc-0.7/buildsystem.html says:
Find the header file "Vc/Vc" and add its path to your include paths.
Find the library libVc and link to it.
Ensure you use the right compiler flags to enable the relevant SIMD
instructions.
>From your command line I see several issues:
1. You compile C++ code with a C compiler. Use g++ and name your files .cpp.
2. only the path to libVc doesn't suffice. add -lVc or just put the full
filepath of libVc.a on the commandline (without -l or -L)
3. add compiler flags for the SIMD instructions you want. Also add -O2 or -O3.
Cheers,
Matthias
--
Dipl.-Phys. Matthias Kretz
Web: http://compeng.uni-frankfurt.de/?mkretz
SIMD easy and portable: http://compeng.uni-frankfurt.de/?vc
More information about the Vc
mailing list