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

MKL error C3861: 'vdSin': identifier not found

postaquestion
Novice
710 Views

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:

Error 1 error 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
710 Views

Theorder of includes had an influence:

The#include "mkl_vml.h" must be after the#include "stdafx.h"

Then, add the proper library as dependencies.

0 Kudos
Reply