User forums > Using Code::Blocks
codeblock problem under windows vista rtm
garanzia:
finally i am able to compile my source code (opengl) in vista !!!!! :lol:
only 3 file need to be copy to lib folder because of CODEBLOCK not detect these file links .
--> as.exe
--> ld.exe
--> cc1plus.exe
thanks for everybody that help me . :D
luneo7:
I found a workahound....
Install Code::Blocks in c:\CodeBlocks
and then copy the batches files inside the batches.zip, to C:\CodeBlocks\bin, and rename ld.exe to ld1.exe.
Open Code::Blocks, Settings, Compiller, Select GCC, and in Programs, rename every *.exe to *.bat (except for gdb.exe, lust leave it as it is) (ex.: mingw32.exe to mingw32.bat) ...
Almost done...
Click on the Start menu and right click Computer, then Proprieties, and then on the left pane, click Advanced system configuration, there will be a button called Environment Variables (or something like that), click it, now in System Variables, search Path, edit it and add: ;C:\CodeBlocks\bin\;C:\CodeBlocks\include\;C:\CodeBlocks\mingw32\bin\;C:\CodeBlocks\libexec\gcc\mingw32\3.4.4\;C:\CodeBlocks\lib\
Click on Ok...
And now you can open Code::Blocks and use it :D
[attachment deleted by admin]
nev0:
I found a simpler way to do this, this is with the released Vista version.
If you've followed the instruction to install MinGW under C:\MinGW
Remember which file it cannot find, find the file concerned under MinGW directory, I had a problem compiling a simple Hello World program, and it was complaining it can't find "cc1plus", this was under C:\MinGW\libexec\gcc\mingw32\3.4.5, so what you do is,
In CB Go to:
Settings->Compiler and Debugger
Select "Toolchain executables" at the drop down that says "Compiler settings"
Click additional paths tab, add the path of the missing file to it.
That's it. No messing with environment variables or files within CB or MinGW. Good Luck
heydzatsmi:
what do you mean by saying : "and then copy the batches files inside the batches.zip, to C:\CodeBlocks\bin."
What is a "batch file"
Thanks for your help : )
bugmenot:
@Nev0
After adding the path to cc1plus.exe to Additional paths
CodeBlocks still keeps annoying me with the error:
mingw32-g++.exe: installation problem, cannot exec `cc1plus': No such file or directory
I'm using Vista Home Premium.
MinGW Path: C:\MinGW
CB Path: C:\Program Files\CodeBlocks
I installed MinGW following the
article in the wiki.
//edit
Adding path of cc1plus.exe to "Path" environment variable
solved the problem.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version