ta-lib

Hi,

Yes I did use it and it compiled fine under C++ and C#. I did use the solution file form "trunk\ta-lib\c\ide\vs2008\lib_proj\" folder.

What kind of compile errors do you have?
 
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;
}
 
thanks, that solved the issue for win32, but I guess I need to recompile the libs for 64bit, have you done that? I was just using the included lib files in the msvc project.
 
Back
Top