Search code examples
c++ta-lib

Linker Error prevents me from initializing TA-LIB in C++


I'm having a problem with TA-LIB in my C++ project.

I just downloaded TA-lib (ta-lib-0.4.0-msvc.zip) and copy-and-pasted c folder to my project folder.

Because of a linker error, I can't go any further.

What I did:

  1. I just downloaded TA-lib (ta-lib-0.4.0-msvc.zip) and copy-and-pasted c folder to my project folder.

  2. include "c\include\ta_libc.h"

Is there anything wrong with my steps? Or any steps I missed?

Screenshot

@AlenL Thank you for your help.

enter image description here

I included every proj files in IDE.

But the result is the same.

+) Error List

LNK2019 unresolved external symbol _TA_Shutdown referenced in function _main

LNK2019 unresolved external symbol _TA_Initialize referenced in function _main

LNK1120 2 unresolved externals


Solution

  • Look into the ta-lib\c\ide\vs2005\lib_proj folder and it's subfolders. You need to include the .vcproj files from the subfolders into your solution.