p_adib wrote:
I have 3 files:
parent.cpp
child.cpp
driver.cpp
I am working in visual C++ 6.0 and have all the files in one same
project. When I ask the IDE to biuld my project, it compiles the code
in such a way that the order makes it incorrect. For example, it
compiles the parent.cpp file after child.cpp . Any ideas on how to
specify a building order? I know that eclipse does this automatically
for java, but what about for visual studio C++?
..cpp files can compile in any order. Their order can never be incorrect.
They may, upon rare occassion, link in the wrong order. You probably don't
have that problem.
You need to report the actual problem you have, before thinking the build
order will fix this problem. If, for example, you have missing identifiers,
then you might have incomplete .h files.
Next, you must understand this newsgroup is only qualified to discuss raw
C++ itself, not all its compilers or their options. If you have a problem
that any C++ developer could help you with, post it here. If your problem
appears to come from VC++, try news:microsoft.public.vc.language instead.
--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!