compiling time

Y

Yavuz Sar?g?l

I compile my project but every time all files in the project are
compiled even I made a small changes in one of files. I didn't
understand the reson. Can anybody help me
 
V

Victor Bazarov

Yavuz said:
I compile my project but every time all files in the project are
compiled even I made a small changes in one of files. I didn't
understand the reson. Can anybody help me

Yes, somebody in a newsgroup dedicated to your compiler should be able
to help you. Most common cause for such behaviour is incorrectly set-
up dependencies in a make file or a project file. But this has NOTHING
to do with C++ _language_ and everything to do with the build system
you're using. Find an appropriate newsgroup. Since you didn't state
what compiler/OS you're using, see the FAQ and the Welcome message for
a list of recommended newsgroups.

V
 
D

Daniel Aarno

How do you compile it, (gcc makefiles windoze)?
What did you modify (.h file, .cc/.cpp file)?
 
D

David Lindauer

Yavuz said:
I compile my project but every time all files in the project are
compiled even I made a small changes in one of files. I didn't
understand the reson. Can anybody help me

common reasons are:

1) you modified a file that got included into a myriad of other files;
in this case the build process doesn't know any better than to rebuild
ALL the files because of the change.
2) you don't have the build process set up right
3) the date and time stamps on your source files are NEWER than the date
and time your computer is currently using. That will cause build
processes to fail because the objects are always older than the source
files.

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,176
Messages
2,570,950
Members
47,503
Latest member
supremedee

Latest Threads

Top