User forums > Using Code::Blocks

C::B doesn't show g++ as a compiler option (MSWindows)

(1/4) > >>

OldFangle:
Hi
I'm new.  Using MSWindows 7 64-bit. 
Installed C::B using codeblocks-13.12mingw.exe
That part's working.
Now trying to figure how to get SFML working with it.
Using CMake I built SFML-2.2. [* note further on]
C:\Program Files (x86)\CodeBlocks\MinGW\bin  is on the System PATH.

Following instructions on http://www.sfml-dev.org/tutorials/2.2/start-cb.php  I'm getting an error message about libstdc++-6.dll . 
Also following instructions on that web page I've configured C::B's Project\Build Options  where Directories are selected for compiler settings, linker settings.  As far as I know I've got paths to \bin, \include, et cetera, entered correctly in those places.
(In #define all I have is SFML_STATIC)

I've been trying to learn what 'entry point' means, and I've read many opinions about that .dll, many solutions offered, which often mention that one must be sure to be using g++ compiler rather than GCC.
Although g++.exe is in the \MinGW\bin  , I can't figure a way to get it to show up in the C::B compiler selection menu.  I can't see it, so can't select it.  But apparently if I could figure how to do that, then with that compiler this .dll problem would be fixed...?

* I built SFML because someone in a Forum message suggested it, but before that I'd installed SFML-2.2-windows-gcc-4.9.2-mingw-32-bit .  I may take a big step back to that point, restart with that package of SMFL, but meanwhile if anyone has dealt with this problem and can share up-to-date tips about how to at least understand what the trouble is and what it means, much obliged.

Thanks

stahta01:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Post a full re-build log and you might get some help.
Do NOT and I will just ignore you.

Edit: The CB default Toolchain name for MinGW GCC C/C++ is likely "GNU GCC Compiler"

Tim S.

OldFangle:

--- Quote from: stahta01 on January 08, 2015, 07:01:22 pm ---Post a full re-build log and you might get some help.
Edit: The CB default Toolchain name for MinGW GCC C/C++ is likely "GNU GCC Compiler"

--- End quote ---

Thanks for the link.

According to what I've been reading about GCC and g++, they are different in certain important ways, and g++ is what I should have as a compiler in order to avoid the error message I'm finding.

I don't have access to g++  and that's the problem, not any problem with g++ behaviour during a build/run.

I'm trying to figure how to get g++ to show up in the compiler selection menu so that I can select it.

GCC is the default selection but g++ isn't visible in that menu and I've read that they're not precisely the same compiler.

Thanks again.

stahta01:
You are on my list of people to ignore.

Tim S.

OldFangle:

--- Quote from: stahta01 on January 08, 2015, 09:18:51 pm ---You are on my list of people to ignore.

--- End quote ---

Why?  I'm explaining this as best I can.  I can't build anything with g++ because I can't access it yet.  There's no log, there's nothing to show.  The only compiler error at this point is my inability to understand how to get the g++ compiler on a path so that code::blocks can include it in the selection menu.

Cheers

Navigation

[0] Message Index

[#] Next page

Go to full version