Hello. I've got very strange problem, propably with dev c++ includes and
libraries. On windows 7 all project was warking great, but suddenly my laptop
has crashed to death, and I'm trying to make it working on another pc with win
XP. I created new dev project and pasted old main file to the new one. I
oncluded all necessary files as it was on windows 7, but after compilation
with no errors, no warning nothing happens. The new created exe-file cannot be
run manually from comand line or just double click - it doesn't even come to
the task manager. In Project options -> parameters -> inker, I've got
-lglut32 -lglu32 -lopengl -lwinmm and in library derectories : C:\Dev-Cpp\lib and C:\Dev-Cpp\include\GL (these are correct paths)
I downloaded glut version 7.6 by using check for download/updates - package
manager.
In my project's top I've got :
include <windows.h>
define GLUT_DISABLE_ATEXIT_HACK
include <gl glut.h="">
include <gl gl.h="">
include <gl glu.h="">
I have no idea why it just doesn't want to work correctly. What else can I do?
I would appreciate any help, thank you from mountain.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry, I've been offline for couple of days. I installed windows 7 against,
and everything seemed to work fine, my project ompiled and started
succesfully. But two days ago, I managed the program cannot be started
manually from project folder. I reinstalled dev and tried to configure it
couple times. In dev 4.9.9.2 program compile and launch properly, but if I
close and reopen dev project program is not starting. After reinstallation of
dev c++ it work properly until I close my project, so it's very strange. I
downloaded new version of program : 5.0.0.6 and make everything like this
tuttorial says :
"http://onecore.net/dev-c-opengl.htm" -
download and install dev pack, add standard comands in project options -
linker and add your old main.cpp file into your project. After compilation
without errors, warning program is not starting.
Here's my compile log:
Compiler: Default Compiler
Building Makefile: "C:\Users\peterka\Desktop\kostka - klawiatura +
scroll\szescian\Makefile.win"
Executing make clean
rm -f main.o Project1.exe
The compile looks good. The problem may be something you are doing in the
program.
The program may be starting and not displaying the window.
Have you tried using a debugger? Or putting cout statements in the program to
trace execution?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I really don't know whats happening on my system. Few hours later program
couldn't start after compilation by using the key combination ctrl + f10, but
it could be runned manually by just double clicking. After few further
ompilations, program is starting normally from dev c++ and from that moment
everything works perfect. I hope nothing will change and it will work every
next time. For now, maybe to someone with simmilar problem, I suggest
configure anything like the link's tutorial above and download newest version
of dev c++. It seems for me work, at least for now hehe ;) Thank you for
reply, any help is always appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello. I've got very strange problem, propably with dev c++ includes and
libraries. On windows 7 all project was warking great, but suddenly my laptop
has crashed to death, and I'm trying to make it working on another pc with win
XP. I created new dev project and pasted old main file to the new one. I
oncluded all necessary files as it was on windows 7, but after compilation
with no errors, no warning nothing happens. The new created exe-file cannot be
run manually from comand line or just double click - it doesn't even come to
the task manager. In Project options -> parameters -> inker, I've got
-lglut32 -lglu32 -lopengl -lwinmm and in library derectories : C:\Dev-Cpp\lib and C:\Dev-Cpp\include\GL (these are correct paths)
I downloaded glut version 7.6 by using check for download/updates - package
manager.
In my project's top I've got :
include <windows.h>
define GLUT_DISABLE_ATEXIT_HACK
include <gl glut.h="">
include <gl gl.h="">
include <gl glu.h="">
I have no idea why it just doesn't want to work correctly. What else can I do?
I would appreciate any help, thank you from mountain.
Post the compile log.
Sorry, I've been offline for couple of days. I installed windows 7 against,
and everything seemed to work fine, my project ompiled and started
succesfully. But two days ago, I managed the program cannot be started
manually from project folder. I reinstalled dev and tried to configure it
couple times. In dev 4.9.9.2 program compile and launch properly, but if I
close and reopen dev project program is not starting. After reinstallation of
dev c++ it work properly until I close my project, so it's very strange. I
downloaded new version of program : 5.0.0.6 and make everything like this
tuttorial says :
"http://onecore.net/dev-c-opengl.htm" -
download and install dev pack, add standard comands in project options -
linker and add your old main.cpp file into your project. After compilation
without errors, warning program is not starting.
Here's my compile log:
Compiler: Default Compiler
Building Makefile: "C:\Users\peterka\Desktop\kostka - klawiatura +
scroll\szescian\Makefile.win"
Executing make clean
rm -f main.o Project1.exe
g++.exe -c main.cpp -o main.o -I"C:/Program Files/Dev-Cpp/include"
-I"C:/Program Files/Dev-Cpp/include/GL" -I"C:/Program Files/Dev-Cpp/lib"
g++.exe main.o -o "Project1.exe" -L"C:/Program Files/Dev-Cpp/lib"
-L"C:/Program Files/Dev-Cpp/lib/gcc" -static-libstdc++ -static-libgcc
-L"C:/Program Files/Dev-Cpp/include/GL" -L"C:/Program Files/Dev-Cpp/lib"
-mwindows -lglut32 -lglu32 -lopengl32 -lwinmm -lgdi32
Execution terminated
Compilation successful
The compile looks good. The problem may be something you are doing in the
program.
The program may be starting and not displaying the window.
Have you tried using a debugger? Or putting cout statements in the program to
trace execution?
I really don't know whats happening on my system. Few hours later program
couldn't start after compilation by using the key combination ctrl + f10, but
it could be runned manually by just double clicking. After few further
ompilations, program is starting normally from dev c++ and from that moment
everything works perfect. I hope nothing will change and it will work every
next time. For now, maybe to someone with simmilar problem, I suggest
configure anything like the link's tutorial above and download newest version
of dev c++. It seems for me work, at least for now hehe ;) Thank you for
reply, any help is always appreciated.