News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

PANIC IN MY PC Problem in Windows with GLUT

Started by watt, March 09, 2007, 07:42:42 PM

Previous topic - Next topic

watt

hi!

when i run my application i have this error:

-------------- Build: Release in b ---------------
mingw32-g++.exe -Wall -O2 -g  -I"D:\needed\Needed\compiler needs\include" -I"C:\Program Files\CodeBlocks\include"  -c D:\programacao\b\main.cpp -o obj\Release\main.o
mingw32-g++.exe: installation problem, cannot exec `cc1plus': No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

TDragon

Quote from: watt on March 09, 2007, 07:42:42 PM
mingw32-g++.exe: installation problem, cannot exec `cc1plus': No such file or directory
Are you using Windows Vista? If so, MinGW has problems with it. There are workarounds other people have used that can be found if you search the forums.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

watt

Quote from: TDragon on March 09, 2007, 08:20:51 PM
Quote from: watt on March 09, 2007, 07:42:42 PM
mingw32-g++.exe: installation problem, cannot exec `cc1plus': No such file or directory
Are you using Windows Vista? If so, MinGW has problems with it. There are workarounds other people have used that can be found if you search the forums.
yes i'm using vista a i see this post:
http://forums.next.codeblocks.org/index.php?topic=4692.0
but i have some questios ...

"...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..."

whats the name of variable?

stahta01

Quote from: watt on March 09, 2007, 08:25:58 PM
Quote from: TDragon on March 09, 2007, 08:20:51 PM
Quote from: watt on March 09, 2007, 07:42:42 PM
mingw32-g++.exe: installation problem, cannot exec `cc1plus': No such file or directory
Are you using Windows Vista? If so, MinGW has problems with it. There are workarounds other people have used that can be found if you search the forums.
yes i'm using vista a i see this post:
http://forums.next.codeblocks.org/index.php?topic=4692.0
but i have some questios ...

"...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..."

whats the name of variable?

Path is the variable name, or at least it is under windows XP.
Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

watt

-------------- Build: Release in Game ---------------
mingw32-g++.bat -L\usr\lib -L"C:\Program Files\CodeBlocks\lib"  -o bin\Release\Game.exe obj\Release\main.o   -s  -lglut -lGL -lGLU -lXxf86vm  -mwindows
MinGW Enviroment Command Console
....
D:\programacao\Game>C:\CodeBlocks\bin\mingw32-g++.exe -L\usr\lib -L"C:\Program Files\CodeBlocks\lib" -o bin\Release\Game.exe obj\Release\main.o -s -lglut -lGL
ld: cannot find -lGL
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

I dont understend why appear "\usr\lib" !?
i have the GL

watt

-------------- Build: Debug in Game ---------------
mingw32-g++.bat -Wall -g -g  -I"C:\Program Files\CodeBlocks\include" -I"C:\Program Files\CodeBlocks\include"  -c D:\programacao\Game\main.cpp -o obj\Debug\main.cpp.o
MinGW Enviroment Command Console
The system cannot find the path specified.
....
D:\programacao\Game>C:\CodeBlocks\bin\mingw32-g++.exe -Wall -g -g -I"C:\Program Files\CodeBlocks\include" -I"C:\Program Files\CodeBlocks\include" -c D:\programacao\Game\main.cpp -o
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

now it is rhis error .... Help-me

watt

now i have other problems ...
i install the GLFW and all sorces i run, crash.
And i have this error in Glut projects.

-------------- Build: Debug in glut ---------------
mingw32-g++.bat -Wall -g  -IC:\CodeBlocks\include -IC:\CodeBlocks\include  -c D:\programacao\glut\main.cpp -o obj\Debug\main.o
MinGW Enviroment Command Console
....
D:\programacao\glut>C:\CodeBlocks\bin\mingw32-g++.exe -Wall -g -IC:\CodeBlocks\include -IC:\CodeBlocks\include -c D:\programacao\glut\main.cpp -o obj\Debug\main.o
In file included from D:\programacao\glut\main.cpp:15:
C:/CodeBlocks/include/GL/glut.h:50: error: redeclaration of C++ built-in type `short'