User forums > Using Code::Blocks
Set up GLEW in CODE::BLOCKS
searcher:
Hello again:
In trying to find the source of my problem I have discovered the following.
In my path variable, one of the entries is :
C:\program files (x86)\codeblocks\mingw\libexec\gcc\x-86-64-pc-mingw32\4.7.1
However, when I try to locate this I find instead :
...........\libexec\gcc\mingw32\4.4.1
Could this be the source of my problem ? Does someone know what to do ?
Please help if you can. Thankyou.
MortenMacFly:
--- Quote from: searcher on August 27, 2012, 08:52:13 pm ---In my path variable, one of the entries is :
C:\program files (x86)\codeblocks\mingw\libexec\gcc\x-86-64-pc-mingw32\4.7.1
However, when I try to locate this I find instead :
...........\libexec\gcc\mingw32\4.4.1
--- End quote ---
None of these should be in your PATH environment. I don't know why you did that, but I wouldn't wonder if this screws things.
Altogether it looks like you are mixing compiler versions here. Did you overwrite an existing compiler installation with another? Did you install multiple compilers with different version and apply them all in PATH? Try to locate all GCC compilers on your machine, remove them all and install a new (your target compiler) from scratch.
searcher:
@MortenMacFly:
Thankyou for a reply. Yes I may have made a mistake in installation when I downloaded MSYS in order to build GLEW from source. As you suggest I have removed both CodeBlocks-MinGw10.0.5 and MSYS in order to get rid of the compilers. I can easily reinstall codeblocks. However, I don't know what to do about the PATH - currently it looks like this:
c:\program files (x86)\codeblocks\mingw\bin;c:\program files (x86)\codeblocks\mingw\libexec\gcc\x86-64-pc-mingw32\4.7.1;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files (x86)\jZip;C:\Program Files\Windows Imaging\;C:\Program Files (x86)\codeblocks\MinGW\bin\;C:\msys\1.0\bin;C:\windows\sysWOW64\
I do know how to edit - but I am not at all sure what should be left in and what removed. Your expert advice would be much appreciated. (The GLEW problem can wait for now !). Thanks.
MortenMacFly:
--- Quote from: searcher on August 28, 2012, 10:52:33 pm ---I do know how to edit - but I am not at all sure what should be left in and what removed.
--- End quote ---
It depends on you OS - google for "change PATH environment variable [YOUR OS]".
Remove all these references(some occur multiple times):
c:\program files (x86)\codeblocks\mingw\bin
c:\program files (x86)\codeblocks\mingw\libexec\gcc\x86-64-pc-mingw32\4.7.1
C:\Program Files (x86)\codeblocks\MinGW\bin\
C:\msys\1.0\bin
searcher:
@MortenMacFly:
I have edited the PATH re your suggestion. Everything seems to be O.K. except for the original problem with GLEW detailed above - same 28 error messages as before.
One thing I noticed (may be irrelevant) is on the compiler global settings, tool chain executables page. The last entry indicates "make" however there is no such file in the listed directory. There IS a file called "mingw32-make" ????
Thankyou for your assistance.
[attachment deleted by admin]
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version