User forums > Help
SQLite3/C++11 Issues
Geowil:
--- Quote from: jens on March 22, 2014, 09:32:11 am ---If you have more than one MinGW installation, make sure none of them is in [anydrive]:\MinGW or the chosen installation might pick up incorrect libs.
This is a MinGW issue.
Chosing e.g \Mingw32 and \MinGW64 for 32- and 64-bit should work.
--- End quote ---
Neither of the installations (I have both 64 and 32 installed) are in MinGW. They are in TDM-GCC-32 and TDM-GCC-64. I also did not install PATH variables for either of them. The toolchain exe files are in the Codeblocks\MinGW\bin folder; currently contains MinGW 4.8.1 32-bit files.
--- Quote from: jens on March 22, 2014, 09:35:45 am ---See also this thread: http://forums.codeblocks.org/index.php/topic,19068.msg130636/topicseen.html#msg130636
--- End quote ---
I also tried this type of setup but I am still getting the same errors on to_string. So I uninstalled Codeblocks again as well as both versions of MinGW. I installed MinGW 32-bit first and made sure that no PATH variable was added. Next I installed Codeblocks, deleted the vanilla MinGW files from it (again checking the PATH field for any MinGW variables) and copied the 4.8.1 TDM MinGW files into the Codeblocks MinGW folder.
I changed the toolchain paths so that they were looking for the above mentioned exe files in D:\Codeblocks\MinGW\bin\ and tried a rebuild of my project; still get those to_string errors.
osdt:
--- Quote from: Geowil on March 22, 2014, 09:49:58 am ---... still get those to_string errors.
--- End quote ---
It's a known MinGW issue http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52015#c25 which probably won't be fixed for 32-Bit targets.
Geowil:
--- Quote from: osdt on March 22, 2014, 10:47:41 am ---
--- Quote from: Geowil on March 22, 2014, 09:49:58 am ---... still get those to_string errors.
--- End quote ---
It's a known MinGW issue http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52015#c25 which probably won't be fixed for 32-Bit targets.
--- End quote ---
Interesting and it explains a lot. Well if MinGW's developer's are going to be that intransigent I will just have to fall back to my fall-back plan of using string stream to create a jury rigged to_string function.
Geowil:
I finally got my project to build :D
I had to rebuild my SQLite amalgamation compile and also learned that for atoi you need cstdlib and cstdio in g++/gcc. Along with the string stream replacement for to_string c++11 everything works. Thanks for the help and suggestions.
Navigation
[0] Message Index
[*] Previous page
Go to full version