Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

Which lib should I use

dc-david
Beginner
535 Views

Hi,

I'm writing a simple program using Visual Sudio 2005 C++ and the MKL but I'm simply unable to compile it. My program is using the sine function but the compiler gives me the error:

Error1error C3861: 'vdSin': identifier not found

Here's my code:

int

n; //Number of element

double* angle;

double* result;

printf("***** Test Intel Sine Function ***** ");

*angle = 23;

vdSin(n,angle,result);

printf("Sine result of sin(%d) : %d ",*angle,*result);

I think I'm not including the proper lib file. How do I know which function goes with which library file?

Thank you.

0 Kudos
1 Reply
dc-david
Beginner
535 Views

Ok, I found the error.

My order of includes had an influence:

Before it was#include "mkl_vml.h"

#include "stdafx.h"

And now it is the opposite, #include "stdafx.h" first.

Then I add the proper library as dependencies.

0 Kudos
Reply