Tag g++

[Solved] C++ programs on Mac OS

A default macOS installation will include something that pretends to be gcc but that’s just a legacy concern so that portable programs will properly detect a compiler when you do a source install with the usual ./configure && make &&…

[Solved] can not understand this SEGFAULT [closed]

Here is one issue: void WaveTableManager::insert(WaveTable * WT,int position) { if (wtvector.size()<=position) wtvector.resize(position); wtvector[position]=WT; // < — Out of bounds access } When you call resize(), the upper bound is vector::size()-1. Since position is the new size of the vector,…

[Solved] SDL2 Exporting to linux

Well I solved the problem i was installing wrong SDL2 libraries: used these: sudo apt-get install libsdl2-dev sudo apt-get install libsdl2-image-dev sudo apt-get install libsdl2-ttf-dev 1 solved SDL2 Exporting to linux

[Solved] missing binary operator before token “(“

You misspelled defined: #if definied(_WIN32) || definied(_WIN64) || definied(__WIN32__) #elif definied(__linux) || definied(__linux__) || definied(linux) should be: #if defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) #elif defined(__linux) || defined(__linux__) || defined(linux) solved missing binary operator before token “(”