![]() |
|
#11
|
|||
|
|||
|
i think waltp pointed the same thing out in a previous post last week or so: your declarations go in .h files. All your definitions go in .cpp files.
__________________
spasms!!! |
|||
|
#12
|
|||
|
|||
|
Quote:
I see, thanks! Is it just good programming practice or is it a necessary thing? Hmmm I think I need to know how compilation is done in C++.... How does the header files know that the definitions are in a particular cpp file? Does it seek every file that includes it? |
|
#13
|
||||
|
||||
|
Quote:
Quote:
__________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
|
#14
|
|||
|
|||
|
Quote:
cpp file includes h file. cpp gets compiled into an object file. main gets compiled into an object file. then main and cpp file get linked and turn into an executable. __________________
spasms!!! |
|
#15
|
|||
|
|||
|
Quote:
Ahhhh that makes sense, thanks! |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Operator Overloading: << | aaroncohn | C++ Forum | 36 | 07-Dec-2004 20:22 |
| Hmm what seems to be the problem here? error C2061: syntax error | pablowablo | C++ Forum | 5 | 12-Jun-2004 23:11 |
| OpenGL always reports error | mvt | OpenGL Programming | 2 | 04-Jun-2004 07:42 |
| Visual C++ 6 Compiler error | vip3r | C++ Forum | 2 | 13-Apr-2004 15:34 |
| [script] E-mail webmaster error page | BobbyDouglas | PHP Code Library | 0 | 19-Aug-2003 21:10 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The