User forums > Using Code::Blocks
Set to ANSI C standard?
drewvoros:
Thanks Tim and Thomas for the response!
Yea this is unfortunate that my prof is suggesting such an outdated compiler. Or least he is suggesting an inferior IDE and has not instructed anyone to update the version of MinGW 2.95 that comes with it standard. ???
I think I'll stick with CB and the GNU GCC to write my code and test and finally before submission I'll do one run through through C-Free's MinGW 2.95 compiler (oh Thomas c-free is free for the 4.0 version). I'll mark off the suggested compiler build options that you suggested (in CB) too, Thomas.
This way I'll still be able to use CB and just the other inferior IDE for a double check.
I'm going to ask the prof if he would suggest us to update the version of MinGW in his IDE of choice. When I hear back perhaps I'll need a bit more help to check off new boxes?
I'll post back when I hear. If not I'll mark the thread solved. Thanks so much with the help!
BlueHazzard:
Be aware!:
two compilers with different version on one system is not a good idea. Especially mingw, because of his hard coded paths (i don't know if they are fixed now)... I woul recommend you to use one compiler in a vm, or at least keep your PATH in sync with the compiler you are using (delete the other compiler from the PATH variable)
Jenna:
--- Quote from: BlueHazzard on January 31, 2015, 10:03:06 am ---Be aware!:
two compilers with different version on one system is not a good idea. Especially mingw, because of his hard coded paths (i don't know if they are fixed now)... I woul recommend you to use one compiler in a vm, or at least keep your PATH in sync with the compiler you are using (delete the other compiler from the PATH variable)
--- End quote ---
And do not install any of these compilers in "\MinGW" on any disk, at least not if you want/need to install multiple versions on one system.
thomas:
--- Quote from: jens on January 31, 2015, 10:40:41 am ---
--- Quote from: BlueHazzard on January 31, 2015, 10:03:06 am ---Be aware!:
two compilers with different version on one system is not a good idea. Especially mingw, because of his hard coded paths (i don't know if they are fixed now)... I woul recommend you to use one compiler in a vm, or at least keep your PATH in sync with the compiler you are using (delete the other compiler from the PATH variable)
--- End quote ---
And do not install any of these compilers in "\MinGW" on any disk, at least not if you want/need to install multiple versions on one system.
--- End quote ---
That works pretty well if you have recent versions (and reasonable builds).
I have both MinGW (4.8.1) and MSYS installed on C:\, LLVM (the Visual Studio overload) in C:\Programs (x86)\LLVM, and
mingw-w64-4.9.2-w32, mingw-w64-4.9.2-w64, tdm-4.9.2-w32, and tdm-4.9.2-w64 side by side in D:\buildtools.
Code::Blocks works with any of these.
Only issues are that
a) LLVM seriously sucks because it is incapable of exception handling and borrows that functionality with some obscure hack that I do not quite understand fully from the first compiler install that it finds in PATH. Which happens to be... not precisely a rock solid solution especially if you regularly update compilers and have multilib compilers among your set of compilers. In particular, if you use exceptions with 64bit code on my machine, LLVM will borrow TDM's multilib version to throw SJLJ 32-bit exceptions which fails with missing symbols.
b) The compiler management in Code::Blocks isn't really meant to be used with half a dozen versions of the same compiler at the same time and divine the correct version for every case without user interaction. It certainly works as designed, but not always as wanted (without manually changing project options). Admittedly, it would be hard to implement something much better, too.
drewvoros:
Heard back from Prof. he is indeed using mingw2.95
So I think I have my global compiler setting flags ticked for that now in CB, Thanks Thomas!
Oh sorry about the confusion, I don't plan on installing mingw2.95 also into CB, what I meant is that I will install both IDEs and be using CB and the GNU GCC to write source and compile and test.... then right upon submission I'll open the source in the other IDE and test with its mingw compiler. 2 compilers but in 2 different environments. (At least I think this is the best option for me right now if I want to use CB but also want to make sure compiling on my Prof's machine goes as expected)
Thanks everyone for the helpful guidance. I'll mark the Thread Solved.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version