Offt is a POSIX type, but not an ISO-C (ANSI) type. If you compile with -ansi, (or any of the other standards selection options which asserts STRICTANSI checking), you cannot expect it to be defined by the compiler implementation; it is a non-standard option with user-namespace semantics, so you need to define it. Off64t is similar, but currently not even a POSIX standard type, AFAIK. Try adding #include before the other includes, I think maybe even in a console app mysql needs some of the things defined by windows. I was learning Adam Drozdek's book 'Data Structures and Algorithms in C', well, I typed the code in page 15 in my vim and compiled it in terminal of my Ubuntu 11.10. Hi, I've been having difficulty getting my switch statements to work = properly. When I run the program no matter what I enter I get the = default response. It is always encouraged in C that you have one class per header file, see this discussion in SO.GManNickG answer's tells why this happen. But the best way to solve this is to put User class in one header file (User.h) and MyMessageBox class in another header file (MyMessageBox.h).Then in your User.h you include MyMessageBox.h and in MyMessageBox.h you include User.h. Hi lonelycloud, I have been having some problems with the XXXX does not name a type and I'm interested to see how did you fix yours. Im sorry I cant help you with your other problem. Each variable in C has a specific type, which determines the size and layout of the variable's memory; the range of values that can be stored within that memory; and the set of operations that can be applied to the variable. The name of a variable can be composed of letters, digits, and the underscore character.
/external-soundcard-for-traktor-pro.html. hi there
please see my header file and cpp file, when i compile them i get these error
classes.cpp:86.1: error: 'vehicle::vehicle' names the constructor, not the type
classes.cpp:172.1: error: 'driver::driver' names the constructor, not the type
here is my header file
here is my cpp file
so what is the mistake?
Since you marked this thread solved, I imagine that means you figured out you don't need to prepend member names with the classname at, e.g., line 7 of your .cpp file. :)
|