Click here to Skip to main content
11,712,143 members (65,267 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C++
Error when i try to compile a program.. A message is appeared saying that The system cannot find the file specified.

Any idea .. ??
Posted 2-Jan-13 8:12am
Sheikh Muhammad Haris at 2-Jan-13 14:17pm
What code have you written in your project. Mention the code of the line number at which this error appears.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Check your #include statements - you have probably miss-spelled the file, or missed out the ".h" on the end. The error message should tell you the file name it is looking for, and (*probably) the line it is looking for it at. If not, you can search for the given file name.
Scenic Design at 2-Jan-13 14:41pm
The actual error is ..
unable to start program 'C:\Work_Space\Studio\M number of lines\debug\M number of lines.exe'.
The system cannot find the file specified
OriginalGriff at 2-Jan-13 14:43pm
Have you tried a clean and then a full rebuild?
Scenic Design at 2-Jan-13 14:52pm
clean .. I don't know how to clean ..???? Can you please tell me . ?!
OriginalGriff at 2-Jan-13 14:56pm
On the Menu bar, under "Build" - you should have "clean solution".

In theory it should be done when you do a full rebuild, but I'm never sure VS gets it right every time.
Scenic Design at 2-Jan-13 14:55pm
Yep .. I got it ..
Thank you Sir .. GOD Bless You ...
OriginalGriff at 2-Jan-13 14:58pm
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 CHill60 280
1 Sergey Alexandrovich Kryukov 259
2 OriginalGriff 230
3 Andy Lanng 160
4 Richard MacCutchan 130
0 CHill60 280
1 Sergey Alexandrovich Kryukov 125
2 Andy Lanng 120
3 Abhinav S 95
4 Maciej Los 95

Advertise | Privacy | Mobile
Web01 | 2.8.150819.1 | Last Updated 2 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100