Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 02:22:03 +0000



Post From: Visual Studio won't build Study when sc.VolumeAtPriceForBars->GetVAPElementAtIndex is used

[2015-09-26 15:45:31]
Viacheslav Malafeev - Posts: 88
Dear Support,
I've got a problem building my ACSIL custom study once I've added this code.

s_VolumeAtPriceV2 *p_VolumeAtPriceAtIndex;
...
sc.VolumeAtPriceForBars->GetVAPElementAtIndex(sc.Index, ElementIndex, &p_VolumeAtPriceAtIndex);

The error coming is this:
Creating library ..\..\..\..\..\..\..\SierraChart\Data\Entries.lib and object ..\..\..\..\..\..\..\SierraChart\Data\Entries.exp
1>libcpmtd.lib(stdthrow.obj) : error LNK2019: unresolved external symbol __CrtDbgReportW referenced in function "void __cdecl std::_Debug_message(wchar_t const *,wchar_t const *,unsigned int)" (?_Debug_message@std@@YAXPB_W0I@Z)
1>..\..\..\..\..\..\..\SierraChart\Data\Entries.dll : fatal error LNK1120: 1 unresolved externals
Once the line
sc.VolumeAtPriceForBars->GetVAPElementAtIndex(sc.Index, ElementIndex, &p_VolumeAtPriceAtIndex)
is commented, the study builds just fine.

I'm using Microsoft Visual Studio 2013. I've experimented with the built-in compiler, and it builds OK, so I figure it's Visual Studio issue.

What should I do?

Thanks!
Date Time Of Last Edit: 2015-09-27 01:22:12