How did you setup VS? Like, there is an option that specifies where the build directory goes. If you accidentally changed it, Visual C++ might have gotten confused when you tried to Build+Run.
How did you setup VS? Like, there is an option that specifies where the build directory goes. If you accidentally changed it, Visual C++ might have gotten confused when you tried to Build+Run.
i also checked the debug folder and it only has the debug log in it. I tried using dev-bloodshed c++, and I get an error message when I run it saying it can't find the bin folder or somthing to that extent.
Last edited by gijake; 08-17-2006 at 05:31 PM.
Can you post the source you're trying to compile?Originally Posted by gijake
Oh, and it's Dev-C++.
just a start of a simple calculator one of my friends wants.
Code:#include <iostream> using namespace std; double Abs(double Nbr) { if( Nbr >= 0 ) return Nbr; else return -Nbr; } double SquareRoot(double Nbr) { double Number = Nbr / 2; const double Tolerance = 1.0e-7; do Number = (Number + Nbr / Number) / 2; while( Abs(Number * Number - Nbr) > Tolerance); return Number; } int main() { double Number: double Nbr = SquareRoot(Number); cin>>Number; cout<< Nbr; return 0; }
Well no wonder:
It should be:Code:double Number:
EDIT: And you're using a variable without initializing it, so of course it would hang even if it didn't have any syntax errors.Code:double Number;
EDIT2: And looking at your other code, I think you should start here:
http://www.cprogramming.com/tutorial/lesson1.html
And see if you can compile a "hello world" program first. Then go onto making your own programs.
Last edited by joeprogrammer; 08-17-2006 at 07:21 PM.
ok, I did a hello world program (which I have done in the past) and it wont compile, I get the sam eerror, lack or error, and lack of program results as with everything else the poeple have so kindly suggjested.
Is the output of the build the same? What about on the Dev-C++ compiler?
If they both refuse, maybe need to reinstall them. Failing that, I would say that maybe something in your OS is corrupt.
every time I install the dev-c++, I get this error message when I run it "There dosen't seem to be a GNU Make file PATH in Dec-c++'s Bin path. Please make sure the you have GNU Make and adjust Bin setting or system PATH enviroment veriable and that make setting in Compiler Option contains correct filename, otherwise you will not be able to compile anything." Then the program starts, and I can't compile anything. I had the come up awhile ago, and I forgot what I did to fix it. I have tried reinstalling it. if anybody can find out what is wrong with it, I will give them a cookie.
Try installing this:
http://www.gnu.org/software/make/make.html
EDIT: sorry, this won't work, it's source code -- I'll try to find a Windows binary for you
EDIT2: Try this: http://unxutils.sourceforge.net/
Last edited by joeprogrammer; 08-17-2006 at 08:56 PM.