Support Board
Date/Time: Sat, 11 Jan 2025 08:03:34 +0000
Post From: Debug Build Issue
[2016-11-07 10:53:11] |
kas64h - Posts: 87 |
Hello I'm trying to get individual values from a comma delimited input in ACSIL using a vector, but am having problems getting it to build in Debug. To try and narrow down the issue, I created a brand new project in VS2015, with everything setup exactly as outlined here: https://www.sierrachart.com/index.php?page=doc/VCExpress.php#Build I then copied your source code for the scsf_SumChartsFromList study directly from the Studies6.cpp file provided with Sierra, which utilizes vectors to get chart numbers from a user text input. I have all the correct headers in place: #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers // Windows header file #include <windows.h> #include "sierrachart.h" #include "scstudyfunctions.h" (I've also tried putting in #include <vector> but it makes no difference) When I try to build the code in Debug, I get the following error which seems to be related to the usage of the vector: Error LNK2019 unresolved external symbol __CrtDbgReportW referenced in function "public: float & __thiscall std::vector<float,class std::allocator<float> >::operator[](unsigned int)" (??A?$vector@MV?$allocator@M@std@@@std@@QAEAAMI@Z) I do not understand why I'm getting the error, obviously as it's a Sierra code example, and as far as I can see I have everything set up correctly. Interestingly though, if I build the code in Release, it does build successfully. Are you able to help? Many thanks. |