User forums > Using Code::Blocks
CodeBlocks sucks
bcc32x:
--- Quote from: Krice on October 14, 2018, 12:34:20 pm ---
--- Quote from: bcc32x on October 12, 2018, 09:20:15 am ---The default TDM compiler really sucks. Don't blame everything on me. Don't try to teach me what to do what not to do, I don't care.
--- End quote ---
That's strange, because std::to_string works if you turn on c++11 or newer flag. There might be some differences or bugs in other platforms (or 32 vs. 64 bit) though. But if that's the case then use another compiler for the features you need. You can shout at the compiler or IDE all you want, it doesn't help compiling the program. There is a kind of a problem when you use new C++ features, because lack of compiler support in older versions. You simply have to think about it when choosing the IDE/compiler for your project before you do anything else.
--- End quote ---
Embedded TDM has error. If I use latest i686-posix-dwarf from MinGW64 (8.1.0) it's no problem. By default, since that version of GCC the default standard C++ is shifted from c98 to c11, you don't have to append -std=c++11.
bcc32x:
--- Quote from: Biplab on October 14, 2018, 06:41:01 pm ---
--- Quote from: bcc32x on October 12, 2018, 09:20:15 am ---
--- Quote from: Krice on October 04, 2018, 10:45:51 pm ---
--- Quote from: bcc32x on October 04, 2018, 01:26:03 pm ---I complain your default shipped TDM-GCC because it's broken
--- End quote ---
It does work, but the default C++ support is not C++11, it's older. You can turn on C++11 in compiler settings (project-build options-compiler flags), and even 14, but I think 14 is experimental in that version of TDM. But when you turn on "have gcc follow C++11 standard" flag things like std::to_string does work. Usually what happens is that compilers or IDEs or any tools or programs aren't broken, you are. Fix yourself and trust me, you'll become a better person and a better programmer.
--- End quote ---
No it not works: 'to_string' is not a member of 'std'
You should check c++ std status on GNU site: https://www.gnu.org/software/gcc/projects/cxx-status.html
The default TDM compiler really sucks. Don't blame everything on me. Don't try to teach me what to do what not to do, I don't care.
This forums really sucks. I can't even access it (even when not logged in) from google search result. isitdownrightnow.com always gives server down for more than ~7 days or not responding blah blah. You should reverse your words. Check yourself first, check this forums, not checking me. I spent time to search before ask. I didn't intended to waste time of anyone, just because I'm afraid and I'm very dislike mr. obfuscated attitude (which I see arrogant and childish, impolite) so I tried to avoid him. You know, he's the most active here aside from bluehazzard, when you post a new pic it's very likely he will be the one answering you, which I would rather have 0 reply than his answer >:(
--- End quote ---
You need to enable -std=c++11 option to use std::to_string(). It is not enabled by default but one can easily enable it from Project > Build options > Compiler settings Bundled compiler may not be state of the art but not absolutely broken either.
There were issues with forum and website access. I also faced difficulty accessing forum.
Regarding your other issues - I'm sure some of them, if not all, can be solved as long as you explain them correctly. You need to help us to help you.
--- End quote ---
Thank you. You're very kind. I like it.
I checked the same option but with std=c++14 (not 11) :)
p/s: I'm still using CB now. Since it happily link my FPC compiled dll other problems are trivial :)
lesh:
For what it is worth, as a newcomer, I found CB excellent. I was looking for a sane alternative to Windows Visual Studio in order to write a Win32 graphical app. in C (I really can not stand C++). I find the layout and operation of CB logical and (reasonably) easy to follow. Project now complete - and many thanks to the originators.
Les. :)
stringbean:
I downloaded CB yesterday, 1/1/19, and it worked for about an hour. I was following along with a C++ tutorial program on the internet and CB worked just fine. Fired up the computers and tried to continue where I had left off. But CB will not work. It presents a pretty picture of the Start Here - CB then; create new project; console application ; console welcome screen next ; C++ next ; Console indicates project title: I enter test then hit button NEXT ; GNU GCC Compiler NEXT ; and I get an error message = Couldn't create the project directory: C:\Users\test\ . This did not happen yesterday. What is wrong?
oBFusCATed:
c:\users\ is a special folder and probably you don't have permissions to write in it. Choose some other folder...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version