hello all, im having a problem with my Visual studio 2008 , i recently tried to move my project to VC++ environment ( from codeblocks) , after making a console project and then adding files, when i try to compile the project i get the error :http://i39.tinypic.com/1z4xtle.jpg
which as you can see ,says:"The system can not find the file specified"
i also have the same problem with another project ( GUI this time), it gives me the same error message !

i have this kind of error with all of my projects in C++ or VC++, i dont know why this is happening!
and this is another screen shot showing the same error happening for another project this time a Visual C++ project! http://master.huricane.googlepages.com/error2.JPG

any help?

06-19-2009

brewbuck

If you bother to look in the output window (I can see it in the screenshot) you can see that the build failed.

I'm not sure, but that might result in your .exe not being found ;)

06-19-2009

Masterx

Quote:

Originally Posted by brewbuck

If you bother to look in the output window (I can see it in the screenshot) you can see that the build failed.

I'm not sure, but that might result in your .exe not being found ;)

tanx, so how am i supposed to solve that ? and what on earth made the build to fail ?

06-19-2009

brewbuck

Quote:

Originally Posted by Masterx

tanx, so how am i supposed to solve that ? and what on earth made the build to fail ?

Maybe the error messages will help?

06-19-2009

Masterx

Quote:

Originally Posted by brewbuck

Maybe the error messages will help?

sorry i dont get it , if i could i wouldnt post in first place :( im not familiar with VS , ive always worked with CB and or DevCpp

06-19-2009

rags_to_riches

How are we supposed to help you with no error messages and no code???

06-19-2009

Masterx

Quote:

Originally Posted by rags_to_riches

How are we supposed to help you with no error messages and no code???

did you check the first post? and see the screenshots! ?
talking about source code! this doesnt make any difference .
from a simple hello world program to a GUI hex editor , they are all the same, i get the same error!

06-19-2009

rags_to_riches

You're not "listening."

Your build failed, but you haven't provided the errors which are causing your build to fail. They're not on the screenshots.

06-19-2009

Masterx

Quote:

Originally Posted by rags_to_riches

You're not "listening."

Your build failed, but you haven't provided the errors which are causing your build to fail. They're not on the screenshots.

my bad , im sorry , i misunderstood you, yeah i checked that there is an error when linking :

i noticed that Microsoft's Visual C++ compiler tends to compile whatever .cpp it finds it the project no matter whether it was referenced and used in the project or not! unlike the codeblocks! that was my problem!

06-19-2009

Masterx

i corrected that . now it compiles fine

06-21-2009

Elysia

You can exclude files from being compiled by right-clicking a file and select properties. There you can select an option to exclude it.
Might be worth knowing.