cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
headers
headers
Aug 10, 2013 at 12:56pm UTC
hellcoder
(114)
when we create a class (and thats header)say classX=(classX.cpp+classX.h) and want to use in a main.cpp do i need to also compile the classX.cpp before using it in main.cpp?
Aug 10, 2013 at 1:14pm UTC
AbstractionAnon
(6954)
It doesn't matter the order in which you compile classx.cpp and main.cpp.
However, both need to be compiled before you can link them together into an executable.
Topic archived. No new replies allowed.