views:

53

answers:

3

One of my project is not building (after so many hours also) ... Its not proceeding further ... The psuedocode is like this:

While building my project with Visual Studio 2008:

#pragma message("This is going to Include map.h")
#include <map>
#pragma message("The Included operation of map.h over")

For the above code snippet, the build output is showing the first message and the second message is not at all displaying (even after several hours). What might be caused this problem?. What could be wrong with the include <map> statement?

A: 

I would try using process explorer from sysinternals to see what files are being accessed during compilation. Could it be that you've got networked #include paths?

Edric
The VS 2008 Include files option has all the paths from local disk only. i.e., Tools ->Options->VC++ Directories -> Include files -> all the paths are from the local disk.Can you elaborate on process explorer from sysinternals to see what files are being accessed during compilation. How to use?
bhadri
In procexp, find the CL process that presumably is taking a long time. Frome the "view" menu, select "show lower pane"; Also View/Lower Pane View/Handles. Then you can see all the files that CL is accessing.
Edric
A: 

@Edric

The VS 2008 Include files option has all the paths from local disk only. i.e., Tools ->Options->VC++ Directories -> Include files -> all the paths are from the local disk.

Can you elaborate on process explorer from sysinternals to see what files are being accessed during compilation. How to use?

bhadri
A: 

after several hours... doesn't sound like a compiler problem, more like a fault with the computer or filesystem. Open map in notepad and see if that takes time, run chkdsk to see if there are faults on the disk.

gbjbaanb
The map opening in Notepad is fast ... but building only consuming so much of time.
bhadri
perhaps the .pch file creation is at fault, delete all temporary file and try again.
gbjbaanb