Dev-C++ won't find my files! When I try to comple it says"G++ no such direcrory or file". I have already been to Bloodshed's board and couldn't get much help. I am a newbie, but if I could actually comple stuff I could learn C++.
Dev-C++ won't find my files! When I try to comple it says"G++ no such direcrory or file". I have already been to Bloodshed's board and couldn't get much help. I am a newbie, but if I could actually comple stuff I could learn C++.
"A computer is this amazingly fast.....but stupid machine." - C++ for dummies
Did you download the IDE with or without mingw? Bloodshed gives you a choice.
If not, then you have to set the path to the compiler you want to use. Otherwise it should set everything up for you. If you downloaded the version 5 beta try version 4 instead.
If a tree falls in the forest, and no one is around to see it, do the other trees make fun of it?
I DID download 4. I found the options you were talking about. I'll just have to play around with them.
"A computer is this amazingly fast.....but stupid machine." - C++ for dummies
Where did you install Dev-C++ ? If you installed it to C:\Dev-C++ there should be no problems. If you installed it to for example C:\Program Files\Dev-C++ , you must open the Compiler Options dialog window, and change all of the path statements to where it is installed on your computer.
The location is C:\Dev-C++.
I changed around some directories and almost got it to compile something, but I got confused about the object file, linking, editing the resource file, and the makefile. I just don't understand anything.
Whenever I try to compile something, and I link an object file, if it doesn't compile correctly, then it moves/deletes the object file.
"A computer is this amazingly fast.....but stupid machine." - C++ for dummies
Oh, BTW, currently I am working on a Hello World program, but I want to make screen savers.
"A computer is this amazingly fast.....but stupid machine." - C++ for dummies
Whenever a compile/link fails, the object file and even the previously created exe file will get deleted, that is how it works, that is not a problem. If it is attempting to compile your source files, you have Dev-C++ installed properly.
The resource file (.rc) contains icon information and code for building a Graphical User Interface for Windows mode applications, and icon information for Console mode applications. The .rc file is compiled with Windres.exe.
Makefiles are a way to automate the operation of compiling and linking multiple files, it determines which files have been modified and those that have not, and only runs the compiler on those modified, saving time in large programming projects. Makefiles are passed to Make.exe for execution. The new Dev-C++ 5 uses makefiles to compile/link all projects.
Then how do I get the object file back after an unsuccessful compile? Everytime i try to recomplie it, the file doesn't come back. I know that I don't have to start over.
When I am ready to comple I should have these files:
cpp
projectname.obj
a resource object
a resource file
makefile
and something else that I'm probably forgetting
right? Then it will make an .exe.
I can understand the cout command and everything, I just can't compile anytrhing.
"A computer is this amazingly fast.....but stupid machine." - C++ for dummies
Oh! perhaps I should explain what I do when I try to complie.
1. Start new project (windows application)
2.I type in the code after all the windows info
3. Try to complie. C++ file and object file shows up.
4. Try to link object file and compile again.
5. Get error message about "file doesn't exist" or "Bin never used". Sometimes resource object shows up.
6. Make makefile and look at resource file.
7. Try to compile. Doesn't work so I fiddle with stuff.
"A computer is this amazingly fast.....but stupid machine." - C++ for dummies
Wrong. First step is your problem. With a windows program you MUST have WinMain, and NOT main(). So you will want to make it a console application
The Bin Never Used error won't do anything to stop u compilation or anything, it happens all of the time