When trying to compile I get the message below and stops compiling. If I compile in Cygwin all is well and the executable is made. So how does one get the winerror.h file?
Dev-Cpp/include/ole2.h:8:22:winerror.h "No such file or directory"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I know since you are working on this, it all makes sense to you, but try to remember, the rest of us have not been sitting there with you.
Starting with the basics REALLY helps us help you. The basics incldue:
(1) What version of Dev are you using, with what OS?
(2) Providing a simple example program, focused on the problem you are having...as simple as possible....do not ask folks to debug a long program in place
(3) Provide a copy of your full compile log. This will tell us about how the compiler is set up/called/and what its paths are...very helpful in cases like this.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-05-19
In my installation winerror.h is in the Dev-Cpp/include folder. Since the compiler has found ole2.h in that folder, this is not a path issue; winerror.h must be missing or misplaced in your installation your installation.
First try a file search to see if for some reasoin it has been moved . If you have a cygwin version, you could use that; i.e. copy it to the Dev include folder, I believe they are the same Anders Norlander headers, but beware of version issues.
However I would worry about how it got deleted or moved, and what else might be missing.
If you have used one of those nasty utilites that seek out and remove duplicate files to save space, this may have removed the file because you had a Cygwin duplicate.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Clifford,
Thanks for your input. I have just updated Dev-Cpp to 4.9.8.9 and figured that any missing files would refill. I guess not! I have no duplicate file seeker. The file does not show up in a search of cygwin either.
I'm Warren by the way!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The right mouse button brings up the copy menu Warren.
I recommend you check out the thread titled "The Forum FAQ - Please Read First" - it has a lot of useful information contributed by users, including how to ask questions, how to interpret your compile log, FAQ links...just a ton of neat stuff that really helps - an may even provoke questions - like who is this moron Wayne who keeps posting.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When trying to compile I get the message below and stops compiling. If I compile in Cygwin all is well and the executable is made. So how does one get the winerror.h file?
Dev-Cpp/include/ole2.h:8:22:winerror.h "No such file or directory"
I know since you are working on this, it all makes sense to you, but try to remember, the rest of us have not been sitting there with you.
Starting with the basics REALLY helps us help you. The basics incldue:
(1) What version of Dev are you using, with what OS?
(2) Providing a simple example program, focused on the problem you are having...as simple as possible....do not ask folks to debug a long program in place
(3) Provide a copy of your full compile log. This will tell us about how the compiler is set up/called/and what its paths are...very helpful in cases like this.
Wayne
In my installation winerror.h is in the Dev-Cpp/include folder. Since the compiler has found ole2.h in that folder, this is not a path issue; winerror.h must be missing or misplaced in your installation your installation.
First try a file search to see if for some reasoin it has been moved . If you have a cygwin version, you could use that; i.e. copy it to the Dev include folder, I believe they are the same Anders Norlander headers, but beware of version issues.
However I would worry about how it got deleted or moved, and what else might be missing.
If you have used one of those nasty utilites that seek out and remove duplicate files to save space, this may have removed the file because you had a Cygwin duplicate.
Clifford
Thanks Wayne I am new to all of this. Dec-Cpp 4.9.8.9 Win2K 266MHZ 96 MB ram
#include <iostream>
#include <fstream>
#include <string.h>
int main() {
char fname[256];
char input_str[256];
char *tok;
std::ifstream inf;
std::cout << "Enter file name: ";
std::cin.getline(fname, 255);
inf.open(fname);
if (inf)
std::cout << "File open successful." << std::endl;
while (!inf.eof()) {
inf.getline(input_str, 255);
tok = strtok(input_str, ", ");
while (tok) {
std::cout << tok << std::endl;
tok = strtok(NULL, ", ");
}
}
return 0;
}
Can't cut and paste log data. How do I do it?
Clifford,
Thanks for your input. I have just updated Dev-Cpp to 4.9.8.9 and figured that any missing files would refill. I guess not! I have no duplicate file seeker. The file does not show up in a search of cygwin either.
I'm Warren by the way!
The right mouse button brings up the copy menu Warren.
I recommend you check out the thread titled "The Forum FAQ - Please Read First" - it has a lot of useful information contributed by users, including how to ask questions, how to interpret your compile log, FAQ links...just a ton of neat stuff that really helps - an may even provoke questions - like who is this moron Wayne who keeps posting.
Wayne
Whats your problem, warren?!? If the compiler cant find a file, take it like a man and DEAL WITH IT!
Geez,
Stanky McPie
lol, how did this gentleman find his way into our humble little forum...
Kip
Well thanks to Wayne and Clifford. All problems solved--finally
Warren