I'm getting a linker error under vs2010, under c++->general I added the includes in "talib\c\include" for the header. Under linker->general I added the folder "talib\c\lib":
I get this error:
1>test.obj : error LNK2001: unresolved external symbol TA_MA
1>test.obj : error LNK2001: unresolved external symbol TA_Initialize
..\talibtest\x64\Debug\talibtest.exe : fatal error LNK1120: 2 unresolved externals
this was the test program, it won't even compile:
#include <iostream>
#include "ta_libc.h"
int main() {
TA_Initialize();
TA_Real closePrice[400];
TA_Real out[400];
TA_Integer outBeg;
TA_Integer outNbElement;
int retCode = 0;
retCode = TA_MA( 0, 399,
&closePrice[0],
30,TA_MAType_SMA,
&outBeg, &outNbElement, &out[0] );
int i = 0;
/* The output is displayed here */
for( i=0; i < outNbElement; i++ )
printf( "Day %d = %f\n", outBeg+i, out );
return 0;
}