Other Parts Discussed in Thread: ENERGIA
Hello, I am interfacing C++ wavelet library [wavelet lib] with Code composer studio but I am getting lots of bad memory allocation error. list of errors is shown below
C:/Users/LaxmiKant/workspace_v6_1/lpcc3200_waveletone/Debug\liblpcc3200_waveletone.a(waveletnew.o): In function `__gnu_cxx::new_allocator<double>::allocate(unsigned int, void const*)': c:\ti\ccsv6\tools\compiler\gcc-arm-none-eabi-4_8-2014q3\arm-none-eabi\include\c++\4.8.4\ext/new_allocator.h:102: undefined reference to `std::__throw_bad_alloc()' C:/Users/LaxmiKant/workspace_v6_1/lpcc3200_waveletone/Debug\liblpcc3200_waveletone.a(waveletnew.o): In function `std::vector<double, std::allocator<double> >::_M_check_len(unsigned int, char const*) const': c:\ti\ccsv6\tools\compiler\gcc-arm-none-eabi-4_8-2014q3\arm-none-eabi\include\c++\4.8.4\bits/stl_vector.h:1339: undefined reference to `std::__throw_length_error(char const*)' C:/Users/LaxmiKant/workspace_v6_1/lpcc3200_waveletone/Debug\liblpcc3200_waveletone.a(waveletnew.o): In function `std::vector<std::complex<double>, std::allocator<std::complex<double> > >::_M_check_len(unsigned int, char const*) const': c:\ti\ccsv6\tools\compiler\gcc-arm-none-eabi-4_8-2014q3\arm-none-eabi\include\c++\4.8.4\bits/stl_vector.h:1339: undefined reference to `std::__throw_length_error(char const*)' C:/Users/LaxmiKant/workspace_v6_1/lpcc3200_waveletone/Debug\liblpcc3200_waveletone.a(waveletnew.o): In function `__gnu_cxx::new_allocator<std::complex<double> >::allocate(unsigned int, void const*)': c:\ti\ccsv6\tools\compiler\gcc-arm-none-eabi-4_8-2014q3\arm-none-eabi\include\c++\4.8.4\ext/new_allocator.h:102: undefined reference to `std::__throw_bad_alloc()' c:\ti\ccsv6\tools\compiler\gcc-arm-none-eabi-4_8-2014q3\arm-none-eabi\include\c++\4.8.4\ext/new_allocator.h:102: undefined reference to `std::__throw_bad_alloc()' collect2.exe: error: ld returned 1 exit status gmake: *** [RR_HR_Peak_Rev1.out] Error 1 gmake: Target `all' not remade because of errors. **** Build Finished ****
The code is imported from the Energia 15 environment. As soon as I remove wavelet function call "swt or iswt" from program it compiles well while including "wavelet.h" that means the library is compiling well.
When I change runtime support library settings to "libstdc++.a" from project properties window it shows the following errors.
what could be wrong here?