dev-c++
I have just downloaded dev-c++. Please can someone tell me what the difference is between a source file and a project, and which I need to use for a simple program including four libaries.
Also Why when I try to compile does it come up with errors saying no such file or directory as iostream.h. when I use the command #include. I have also tried adding on the project options, it also does nothing. any help would be greatly appreciated.
A source file is a simple .cpp file, where you write you code. A project file is used as a container for many .cpp files and .h files that are needed for one program.
As for your iostream problem, I can''t see why that is happening. Perhaps you messed around with the include directories in Dev-C++''s options?
|.dev-c++.|.the gimp.|.seti@home.|.dbpoweramp.|.torn.|.=w=.|
As for your iostream problem, I can''t see why that is happening. Perhaps you messed around with the include directories in Dev-C++''s options?
|.dev-c++.|.the gimp.|.seti@home.|.dbpoweramp.|.torn.|.=w=.|
A source is your code, usually ending in .cpp, .hpp, .c, .h, .cc, .hh
A project is a grouping of source files.
that doesn''t work?
try
A project is a grouping of source files.
#include <iostream.h>
that doesn''t work?
try
#include <iostream>using namespace std;
~~~~~Screaming Statue Software. | OpenGL FontLibWhy does Data talk to the computer? Surely he's Wi-Fi enabled... - phaseburn
nope changing iostream.h to iostream just makes more errors there is definately something wrong with this program . or so it seems.
Hello
Alright. I''ll try to explain the differences between all of the files.
.CPP These are c++ source files. They contain code that you wright.
.H/.HPP These are header files. They contain common definitions and stuff and often use other libraries. You can create your own header files and use ones included with the compiler.
.LIB These are libraries. Include them with "#pragma comment".
.DLL These are com objects. You can link to them to access functions inside.
.OBJ These are intermediat files combined into the executable by the linker.
I have no idea why #include and will not work. It works for me on dev c++
-~-The Cow of Darkness-~-
.CPP These are c++ source files. They contain code that you wright.
.H/.HPP These are header files. They contain common definitions and stuff and often use other libraries. You can create your own header files and use ones included with the compiler.
.LIB These are libraries. Include them with "#pragma comment".
.DLL These are com objects. You can link to them to access functions inside.
.OBJ These are intermediat files combined into the executable by the linker.
I have no idea why #include and will not work. It works for me on dev c++
-~-The Cow of Darkness-~-
-~-The Cow of Darkness-~-
#include works but doesnt there seems to be aproblem with the program or something i have no idea whats going on.
Hello
Please try to describe the error you are getting. I tried dev-c++ and it worked for me.
-~-The Cow of Darkness-~-
-~-The Cow of Darkness-~-
-~-The Cow of Darkness-~-
this is the exact error read it:
22 C:\Dev-Cpp\Untitled1.cpp:2 iostream.h: No such file or directory.
ive searched all of the dev-C++ files no iostream.h nothing ...its seems to be the only one missing.
it comes with a in a project already made with a hello world file i used that compiled it and got this error for yeh
although ive tried making many programs all ending with the same first error.
[edited by - KohryuSan on March 19, 2003 4:26:54 PM]
22 C:\Dev-Cpp\Untitled1.cpp:2 iostream.h: No such file or directory.
ive searched all of the dev-C++ files no iostream.h nothing ...its seems to be the only one missing.
it comes with a in a project already made with a hello world file i used that compiled it and got this error for yeh
although ive tried making many programs all ending with the same first error.
[edited by - KohryuSan on March 19, 2003 4:26:54 PM]
Hello
Hmm... it sounds as if dev-c++ cannot locate the include directory. I noticed this major bug, except mine could not load the templates directory. Try to work through the settings. I suggest downloading mingw if you''re moderately good with dos, otherwise you could by MSVC 6.0 proffessional for less than $80(US).
-~-The Cow of Darkness-~-
-~-The Cow of Darkness-~-
-~-The Cow of Darkness-~-
iostream.h is old. It''s not included with dev-c++ because of this. Use iostream. The program you''re compiling now is wrong. You may not understand it now, but you will soon enough.
Why not try the following free online book? It will teach you a lot about the c++ language.
Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
Why not try the following free online book? It will teach you a lot about the c++ language.
Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement