Hi Chris,
A few more details of the error:
1) The list of files in the temp R directory
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2025-05-15 23:43 183 dynamicRegistrations_05_15_23_43_51.cpp
-a---- 2025-05-15 23:43 1823744 dynamicRegistrations_05_15_23_43_51.dll
-a---- 2025-05-15 23:43 46 dynamicRegistrations_05_15_23_43_51.err
-a---- 2025-05-15 23:43 793 dynamicRegistrations_05_15_23_43_51.log
-a---- 2025-05-15 23:43 11686 dynamicRegistrations_05_15_23_43_51.o
-a---- 2025-05-15 23:43 330 Makevars.win
-a---- 2025-05-15 23:43 4311 P_1_code_MID_1.cpp
-a---- 2025-05-15 23:43 1576 P_1_code_MID_1.h
-a---- 2025-05-15 23:44 68966 P_1_code_MID_1.o
-a---- 2025-05-15 23:44 1899008 P_1_code_MID_1_05_15_23_43_51.dll
-a---- 2025-05-15 23:44 5351 P_1_code_MID_1_05_15_23_43_59.err
-a---- 2025-05-15 23:44 1160 P_1_code_MID_1_05_15_23_43_59.log
-a---- 2025-05-15 23:43 54975 P_1_code_MID_1_nfCode.cpp
-a---- 2025-05-15 23:43 11439 P_1_code_MID_1_nfCode.h
-a---- 2025-05-15 23:44 120412 P_1_code_MID_1_nfCode.o
-a---- 2025-05-15 23:44 66257 P_1_MCMC.cpp
-a---- 2025-05-15 23:44 12379 P_1_MCMC.h
-a---- 2025-05-15 23:44 194507 P_1_MCMC.o
-a---- 2025-05-15 23:44 2022912 P_1_MCMC_05_15_23_44_39.dll
-a---- 2025-05-15 23:44 36432 P_1_MCMC_05_15_23_44_39.err
-a---- 2025-05-15 23:44 1115 P_1_MCMC_05_15_23_44_39.log
I attach dynamicRegistrations_05_15_23_43_51.err, P_1_code_MID_1_05_15_23_43_59.err and P_1_MCMC_05_15_23_44_39.err.
When compiling in R with standard BLAS libraries, I get the following files:
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2025-05-15 23:36 1823744 dynamicRegistrations_05_15_23_36_25.dll
-a---- 2025-05-15 23:36 1899008 P_1_code_MID_1_05_15_23_36_25.dll
-a---- 2025-05-15 23:37 2023424 P_1_MCMC_05_15_23_37_05.dll
And the following compiler output:
---
g++ -std=gnu++17 -I"C:/Users/SG14/AppData/Local/Programs/R/R-45~1.0/include" -DNDEBUG -DR_NO_REMAP -I"C:\Users\SG14\R\win-library\4.5\nimble\include" -I"" -DEIGEN_MPL2_ONLY=1 -Wno-misleading-indentation -Wno-ignored-attributes -Wno-deprecated-declarations -std=c++11 -I"C:/rtools45/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c dynamicRegistrations_05_15_23_36_25.cpp -o dynamicRegistrations_05_15_23_36_25.o
g++ -std=gnu++17 -shared -s -static-libgcc -o dynamicRegistrations_05_15_23_36_25.dll tmp.def dynamicRegistrations_05_15_23_36_25.o -LC:\Users\SG14\R\win-library\4.5\nimble\CppCode -lnimble_x64 -lRlapack -lRblas -LC:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/rtools45/x86_64-w64-mingw32.static.posix/lib -LC:/Users/SG14/AppData/Local/Programs/R/R-45~1.0/bin/x64 -lR
using C++ compiler: 'G__~1.EXE (GCC) 14.2.0'
g++ -std=gnu++17 -I"C:/Users/SG14/AppData/Local/Programs/R/R-45~1.0/include" -DNDEBUG -DR_NO_REMAP -I"C:\Users\SG14\R\win-library\4.5\nimble\include" -I"" -DEIGEN_MPL2_ONLY=1 -Wno-misleading-indentation -Wno-ignored-attributes -Wno-deprecated-declarations -std=c++11 -I"C:/rtools45/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c P_1_code_MID_1.cpp -o P_1_code_MID_1.o
g++ -std=gnu++17 -I"C:/Users/SG14/AppData/Local/Programs/R/R-45~1.0/include" -DNDEBUG -DR_NO_REMAP -I"C:\Users\SG14\R\win-library\4.5\nimble\include" -I"" -DEIGEN_MPL2_ONLY=1 -Wno-misleading-indentation -Wno-ignored-attributes -Wno-deprecated-declarations -std=c++11 -I"C:/rtools45/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c P_1_code_MID_1_nfCode.cpp -o P_1_code_MID_1_nfCode.o
g++ -std=gnu++17 -shared -s -static-libgcc -o P_1_code_MID_1_05_15_23_36_25.dll tmp.def P_1_code_MID_1.o P_1_code_MID_1_nfCode.o -LC:\Users\SG14\R\win-library\4.5\nimble\CppCode -lnimble_x64 -lRlapack -lRblas -LC:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/rtools45/x86_64-w64-mingw32.static.posix/lib -LC:/Users/SG14/AppData/Local/Programs/R/R-45~1.0/bin/x64 -lR
using C++ compiler: 'G__~1.EXE (GCC) 14.2.0'
In file included from P_1_code_MID_1.h:6,
from P_1_code_MID_1.cpp:7:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/NimArr.h: In instantiation of 'NimArr<nDim, T>& VecNimArr<ndim, T>::operator[](unsigned int) [with int ndim = 1; T = double]':
P_1_code_MID_1.cpp:42:37: required from here
42 | lifted_d1_over_sqrt_oPtau_cP_Vec[i-1].setSize(1);
| ^
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/NimArr.h:1862:35: warning: format '%i' expects argument of type 'int', but argument 3 has type 'std::vector<NimArr<1, double>, std::allocator<NimArr<1, double> > >::size_type' {aka 'long long unsigned int'} [-Wformat=]
1862 | "values.size() is only %i\n",
| ~^
| |
| int
| %lli
1863 | i, values.size());
| ~~~~~~~~~~~~~
| |
| std::vector<NimArr<1, double>, std::allocator<NimArr<1, double> > >::size_type {aka long long unsigned int}
In file included from C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/string:51,
from C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/locale_classes.h:40,
from C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/ios_base.h:41,
from C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/ios:44,
from C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/ostream:40,
from C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/iostream:41,
from P_1_code_MID_1.cpp:6:
In static member function 'static _Up* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(_Tp*, _Tp*, _Up*) [with _Tp = const int; _Up = int; bool _IsMove = false]',
inlined from '_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = const int*; _OI = int*]' at C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/stl_algobase.h:521:30,
inlined from '_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = const int*; _OI = int*]' at C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/stl_algobase.h:548:42,
inlined from '_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = __gnu_cxx::__normal_iterator<const int*, vector<int> >; _OI = int*]' at C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/stl_algobase.h:555:31,
inlined from '_OI std::copy(_II, _II, _OI) [with _II = __gnu_cxx::__normal_iterator<const int*, vector<int> >; _OI = int*]' at C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/stl_algobase.h:651:7,
inlined from 'static _ForwardIterator std::__uninitialized_copy<true>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const int*, std::vector<int> >; _ForwardIterator = int*]' at C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/stl_uninitialized.h:147:27,
inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const int*, vector<int> >; _ForwardIterator = int*]' at C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/stl_uninitialized.h:185:15,
inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator<const int*, vector<int> >; _ForwardIterator = int*; _Tp = int]' at C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/stl_uninitialized.h:373:37,
inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]' at C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/stl_vector.h:606:31,
inlined from 'void VecNimArr<ndim, T>::setRowDims(int, std::vector<int>) [with int ndim = 1; T = double]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/NimArr.h:1884:26:
C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/stl_algobase.h:452:30: warning: 'void* __builtin_memmove(void*, const void*, long long unsigned int)' forming offset 4 is out of the bounds [0, 4] [-Warray-bounds=]
452 | __builtin_memmove(__result, __first, sizeof(_Tp) * _Num);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g++ -std=gnu++17 -I"C:/Users/SG14/AppData/Local/Programs/R/R-45~1.0/include" -DNDEBUG -DR_NO_REMAP -I"C:\Users\SG14\R\win-library\4.5\nimble\include" -I"" -DEIGEN_MPL2_ONLY=1 -Wno-misleading-indentation -Wno-ignored-attributes -Wno-deprecated-declarations -std=c++11 -I"C:/rtools45/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c P_1_MCMC.cpp -o P_1_MCMC.o
g++ -std=gnu++17 -I"C:/Users/SG14/AppData/Local/Programs/R/R-45~1.0/include" -DNDEBUG -DR_NO_REMAP -I"C:\Users\SG14\R\win-library\4.5\nimble\include" -I"" -DEIGEN_MPL2_ONLY=1 -Wno-misleading-indentation -Wno-ignored-attributes -Wno-deprecated-declarations -std=c++11 -I"C:/rtools45/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c P_1_code_MID_1.cpp -o P_1_code_MID_1.o
g++ -std=gnu++17 -shared -s -static-libgcc -o P_1_MCMC_05_15_23_37_05.dll tmp.def P_1_MCMC.o P_1_code_MID_1.o -LC:\Users\SG14\R\win-library\4.5\nimble\CppCode -lnimble_x64 -lRlapack -lRblas -LC:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/rtools45/x86_64-w64-mingw32.static.posix/lib -LC:/Users/SG14/AppData/Local/Programs/R/R-45~1.0/bin/x64 -lR
using C++ compiler: 'G__~1.EXE (GCC) 14.2.0'
In file included from C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/RcppNimbleUtils.h:25,
from C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/NamedObjects.h:28,
from C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/EigenTypedefs.h:26,
from P_1_MCMC.cpp:8:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/NimArr.h: In instantiation of 'NimArr<nDim, T>& VecNimArr<ndim, T>::operator[](unsigned int) [with int ndim = 1; T = double]':
P_1_MCMC.cpp:724:14: required from here
inlined from 'virtual nimSmartPtr<waicNimbleList> waicClass_dummy::get()' at P_1_MCMC.cpp:787:17:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '*<return-value>.nimSmartPtr<waicNimbleList>::realPtr' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'nimSmartPtr<T>::~nimSmartPtr() [with T = waicNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:116:29,
inlined from 'virtual nimSmartPtr<waicNimbleList> waicClass_dummy::get()' at P_1_MCMC.cpp:787:17:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '<unknown>' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
P_1_MCMC.cpp: In member function 'virtual nimSmartPtr<waicNimbleList> waicClass_dummy::get()':
P_1_MCMC.cpp:787:17: note: returned from 'void* operator new(std::size_t)'
787 | Interm_45 = new waicNimbleList;
| ^~~~~~~~~~~~~~
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'void nimSmartPtr<T>::setPtr(const nimSmartPtr<T>&) [with T = waicNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:49:39,
inlined from 'nimSmartPtr<T>& nimSmartPtr<T>::operator=(const nimSmartPtr<T>&) [with T = waicNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:79:11,
inlined from 'virtual nimSmartPtr<waicNimbleList> waicClass_dummy::calculateWAIC(int, double)' at P_1_MCMC.cpp:805:17:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '*<return-value>.nimSmartPtr<waicNimbleList>::realPtr' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'nimSmartPtr<T>::~nimSmartPtr() [with T = waicNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:116:29,
inlined from 'virtual nimSmartPtr<waicNimbleList> waicClass_dummy::calculateWAIC(int, double)' at P_1_MCMC.cpp:805:17:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '<unknown>' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
P_1_MCMC.cpp: In member function 'virtual nimSmartPtr<waicNimbleList> waicClass_dummy::calculateWAIC(int, double)':
P_1_MCMC.cpp:805:17: note: returned from 'void* operator new(std::size_t)'
805 | Interm_47 = new waicNimbleList;
| ^~~~~~~~~~~~~~
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'void nimSmartPtr<T>::setPtr(const nimSmartPtr<T>&) [with T = waicDetailsNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:49:39,
inlined from 'nimSmartPtr<T>& nimSmartPtr<T>::operator=(const nimSmartPtr<T>&) [with T = waicDetailsNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:79:11,
inlined from 'virtual nimSmartPtr<waicDetailsNimbleList> waicClass_dummy::getDetails(bool)' at P_1_MCMC.cpp:795:17:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '*<return-value>.nimSmartPtr<waicDetailsNimbleList>::realPtr' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'nimSmartPtr<T>::~nimSmartPtr() [with T = waicDetailsNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:116:29,
inlined from 'virtual nimSmartPtr<waicDetailsNimbleList> waicClass_dummy::getDetails(bool)' at P_1_MCMC.cpp:795:17:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '<unknown>' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
P_1_MCMC.cpp: In member function 'virtual nimSmartPtr<waicDetailsNimbleList> waicClass_dummy::getDetails(bool)':
P_1_MCMC.cpp:795:17: note: returned from 'void* operator new(std::size_t)'
795 | Interm_46 = new waicDetailsNimbleList;
| ^~~~~~~~~~~~~~~~~~~~~
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'nimSmartPtr<T>::~nimSmartPtr() [with T = waicNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:116:29,
inlined from 'SEXPREC* CALL_waicClass_dummy_get(SEXP)' at P_1_MCMC.cpp:860:85:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '<anonymous>.nimSmartPtr<waicNimbleList>::realPtr' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'nimSmartPtr<T>::~nimSmartPtr() [with T = waicDetailsNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:116:29,
inlined from 'SEXPREC* CALL_waicClass_dummy_getDetails(SEXP, SEXP)' at P_1_MCMC.cpp:878:92:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '<anonymous>.nimSmartPtr<waicDetailsNimbleList>::realPtr' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'nimSmartPtr<T>::~nimSmartPtr() [with T = waicNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:116:29,
inlined from 'SEXPREC* CALL_waicClass_dummy_calculateWAIC(SEXP, SEXP, SEXP)' at P_1_MCMC.cpp:900:95:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '<anonymous>.nimSmartPtr<waicNimbleList>::realPtr' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'nimSmartPtr<T>::~nimSmartPtr() [with T = waicNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:116:29,
inlined from 'double MCMC::calculateWAIC(int)' at P_1_MCMC.cpp:1101:37:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '<anonymous>.nimSmartPtr<waicNimbleList>::realPtr' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'nimSmartPtr<T>::~nimSmartPtr() [with T = waicNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:116:29,
inlined from 'double MCMC::calculateWAIC(int)' at P_1_MCMC.cpp:1103:1:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '<anonymous>.nimSmartPtr<waicNimbleList>::realPtr' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'nimSmartPtr<T>::~nimSmartPtr() [with T = waicNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:116:29,
inlined from 'nimSmartPtr<waicNimbleList> MCMC::getWAIC()' at P_1_MCMC.cpp:1108:31:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '<anonymous>.nimSmartPtr<waicNimbleList>::realPtr' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'nimSmartPtr<T>::~nimSmartPtr() [with T = waicNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:116:29,
inlined from 'nimSmartPtr<waicNimbleList> MCMC::getWAIC()' at P_1_MCMC.cpp:1112:18:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '<unknown>' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
P_1_MCMC.cpp: In member function 'nimSmartPtr<waicNimbleList> MCMC::getWAIC()':
P_1_MCMC.cpp:1112:18: note: returned from 'void* operator new(std::size_t)'
1112 | Interm_27 = new waicNimbleList;
| ^~~~~~~~~~~~~~
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'nimSmartPtr<T>::~nimSmartPtr() [with T = waicNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:116:29,
inlined from 'nimSmartPtr<waicNimbleList> MCMC::getWAIC()' at P_1_MCMC.cpp:1118:1:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '<unknown>' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
P_1_MCMC.cpp: In member function 'nimSmartPtr<waicNimbleList> MCMC::getWAIC()':
P_1_MCMC.cpp:1112:18: note: returned from 'void* operator new(std::size_t)'
1112 | Interm_27 = new waicNimbleList;
| ^~~~~~~~~~~~~~
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'nimSmartPtr<T>::~nimSmartPtr() [with T = waicNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:116:29,
inlined from 'nimSmartPtr<waicNimbleList> MCMC::getWAIC()' at P_1_MCMC.cpp:1118:1:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '<anonymous>.nimSmartPtr<waicNimbleList>::realPtr' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'nimSmartPtr<T>::~nimSmartPtr() [with T = waicDetailsNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:116:29,
inlined from 'nimSmartPtr<waicDetailsNimbleList> MCMC::getWAICdetails(bool)' at P_1_MCMC.cpp:1127:18:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '<unknown>' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
P_1_MCMC.cpp: In member function 'nimSmartPtr<waicDetailsNimbleList> MCMC::getWAICdetails(bool)':
P_1_MCMC.cpp:1127:18: note: returned from 'void* operator new(std::size_t)'
1127 | Interm_29 = new waicDetailsNimbleList;
| ^~~~~~~~~~~~~~~~~~~~~
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'nimSmartPtr<T>::~nimSmartPtr() [with T = waicDetailsNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:116:29,
inlined from 'nimSmartPtr<waicDetailsNimbleList> MCMC::getWAICdetails(bool)' at P_1_MCMC.cpp:1135:1:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '<unknown>' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
P_1_MCMC.cpp: In member function 'nimSmartPtr<waicDetailsNimbleList> MCMC::getWAICdetails(bool)':
P_1_MCMC.cpp:1127:18: note: returned from 'void* operator new(std::size_t)'
1127 | Interm_29 = new waicDetailsNimbleList;
| ^~~~~~~~~~~~~~~~~~~~~
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'nimSmartPtr<T>::~nimSmartPtr() [with T = waicDetailsNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:116:29,
inlined from 'nimSmartPtr<waicDetailsNimbleList> MCMC::getWAICdetails(bool)' at P_1_MCMC.cpp:1135:1:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '<anonymous>.nimSmartPtr<waicDetailsNimbleList>::realPtr' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'nimSmartPtr<T>::~nimSmartPtr() [with T = waicNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:116:29,
inlined from 'SEXPREC* CALL_MCMC_getWAIC(SEXP)' at P_1_MCMC.cpp:1290:78:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:147:29: warning: 'void operator delete(void*)' called on pointer '<anonymous>.nimSmartPtr<waicNimbleList>::realPtr' with nonzero offset 56 [-Wfree-nonheap-object]
147 | virtual ~pointedToBase() {};
| ^
In destructor 'virtual pointedToBase::~pointedToBase()',
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:144:14,
inlined from 'void pointedToBase::removeWatcher()' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:132:8,
inlined from 'nimSmartPtr<T>::~nimSmartPtr() [with T = waicDetailsNimbleList]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/smartPtrs.h:116:29,
inlined from 'SEXPREC* CALL_MCMC_getWAICdetails(SEXP, SEXP)' at P_1_MCMC.cpp:1308:85:
In file included from P_1_code_MID_1.h:6,
from P_1_code_MID_1.cpp:7:
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/NimArr.h: In instantiation of 'NimArr<nDim, T>& VecNimArr<ndim, T>::operator[](unsigned int) [with int ndim = 1; T = double]':
P_1_code_MID_1.cpp:42:37: required from here
42 | lifted_d1_over_sqrt_oPtau_cP_Vec[i-1].setSize(1);
| ^
C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/NimArr.h:1862:35: warning: format '%i' expects argument of type 'int', but argument 3 has type 'std::vector<NimArr<1, double>, std::allocator<NimArr<1, double> > >::size_type' {aka 'long long unsigned int'} [-Wformat=]
1862 | "values.size() is only %i\n",
| ~^
| |
| int
| %lli
1863 | i, values.size());
| ~~~~~~~~~~~~~
| |
| std::vector<NimArr<1, double>, std::allocator<NimArr<1, double> > >::size_type {aka long long unsigned int}
In file included from C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/string:51,
from C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/locale_classes.h:40,
from C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/ios_base.h:41,
from C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/ios:44,
from C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/ostream:40,
from C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/iostream:41,
from P_1_code_MID_1.cpp:6:
In static member function 'static _Up* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(_Tp*, _Tp*, _Up*) [with _Tp = const int; _Up = int; bool _IsMove = false]',
inlined from '_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = const int*; _OI = int*]' at C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/stl_algobase.h:521:30,
inlined from '_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = const int*; _OI = int*]' at C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/stl_algobase.h:548:42,
inlined from '_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = __gnu_cxx::__normal_iterator<const int*, vector<int> >; _OI = int*]' at C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/stl_algobase.h:555:31,
inlined from '_OI std::copy(_II, _II, _OI) [with _II = __gnu_cxx::__normal_iterator<const int*, vector<int> >; _OI = int*]' at C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/stl_algobase.h:651:7,
inlined from 'static _ForwardIterator std::__uninitialized_copy<true>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const int*, std::vector<int> >; _ForwardIterator = int*]' at C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/stl_uninitialized.h:147:27,
inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const int*, vector<int> >; _ForwardIterator = int*]' at C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/stl_uninitialized.h:185:15,
inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator<const int*, vector<int> >; _ForwardIterator = int*; _Tp = int]' at C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/stl_uninitialized.h:373:37,
inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]' at C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/stl_vector.h:606:31,
inlined from 'void VecNimArr<ndim, T>::setRowDims(int, std::vector<int>) [with int ndim = 1; T = double]' at C:\Users\SG14\R\win-library\4.5\nimble\include/nimble/NimArr.h:1884:26:
C:/rtools45/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/14.2.0/include/c++/bits/stl_algobase.h:452:30: warning: 'void* __builtin_memmove(void*, const void*, long long unsigned int)' forming offset 4 is out of the bounds [0, 4] [-Warray-bounds=]
452 | __builtin_memmove(__result, __first, sizeof(_Tp) * _Num);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---
I hope this helps.
Stephen