Support Board
Date/Time: Wed, 15 May 2024 21:14:06 +0000
Post From: CPP Compiling mingw32/64 MS Visual C
[2018-04-24 19:26:19] |
User92573 - Posts: 489 |
Okay, will do however I can see that I did in fact use Visual C++ Express for previous builds so I have followed very carefully the details provided at "https://www.sierrachart.com/index.php?page=doc/UsingVisualCPlusPlus.php" but now without success. Here is the debug output: 1>------ Build started: Project: My Custom Study DLL V1, Configuration: Debug Win32 ------ 1> MyCustomStudyDLLV1.cpp 1>c:\sierrachart\acs_source\vapcontainer.h(337): error C2758: 'c_VAPContainerBase<t_VolumeAtPrice>::m_InitialAllocationElements' : must be initialized in constructor base/member initializer list 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeAtPriceV2 1> ] 1> c:\sierrachart\acs_source\vapcontainer.h(303) : see declaration of 'c_VAPContainerBase<t_VolumeAtPrice>::m_InitialAllocationElements' 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeAtPriceV2 1> ] 1> c:\sierrachart\acs_source\vapcontainer.h(336) : while compiling class template member function 'c_VAPContainerBase<t_VolumeAtPrice>::c_VAPContainerBase(const c_VAPContainerBase<t_VolumeAtPrice> &)' 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeAtPriceV2 1> ] 1> c:\sierrachart\acs_source\vapcontainer.h(1247) : see reference to class template instantiation 'c_VAPContainerBase<t_VolumeAtPrice>' being compiled 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeAtPriceV2 1> ] 1>c:\sierrachart\acs_source\vapcontainer.h(337): error C2614: 'c_VAPContainerBase<t_VolumeAtPrice>' : illegal member initialization: 'c_VAPContainerBase<s_VolumeAtPriceV2>' is not a base or member 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeAtPriceV2 1> ] 1>c:\sierrachart\acs_source\vapcontainer.h(337): error C2758: 'c_VAPContainerBase<t_VolumeAtPrice>::m_InitialAllocationElements' : must be initialized in constructor base/member initializer list 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeLevelAtPrice 1> ] 1> c:\sierrachart\acs_source\vapcontainer.h(303) : see declaration of 'c_VAPContainerBase<t_VolumeAtPrice>::m_InitialAllocationElements' 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeLevelAtPrice 1> ] 1> c:\sierrachart\acs_source\vapcontainer.h(336) : while compiling class template member function 'c_VAPContainerBase<t_VolumeAtPrice>::c_VAPContainerBase(const c_VAPContainerBase<t_VolumeAtPrice> &)' 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeLevelAtPrice 1> ] 1> c:\sierrachart\acs_source\vapcontainer.h(1324) : see reference to class template instantiation 'c_VAPContainerBase<t_VolumeAtPrice>' being compiled 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeLevelAtPrice 1> ] 1>c:\sierrachart\acs_source\vapcontainer.h(337): error C2614: 'c_VAPContainerBase<t_VolumeAtPrice>' : illegal member initialization: 'c_VAPContainerBase<s_VolumeLevelAtPrice>' is not a base or member 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeLevelAtPrice 1> ] ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== This is based on the exact example provided on the page. I have not added "#include "stdafx.h" to your source code example which is mentioned later on the page as I have not required it independently in the past. Can you provide any direction? Many thanks |