-
Visual C++ Compiler
Please see this image link:-
http://img422.imageshack.us/img422/6554/1mf0.jpg
When I compile and then execute, it just comes Linking at the bottom and after that I cannot see the output! Its taking too much time. I think the output will not come if even if there were no errors. Can you tell me a solution for this or tell me how to speed up this process or while clicking on File>New> What kind of Files, Projects or Workspaces should I choose? I had chose C++ Source file for this program.
-
place cing.get() at the end of the code before return 0. Read the FAQ on this website
-
While an image is a good way to display a cpogram (people can't give out about code tags etc), it may be more appropriate in future to copy and paste the code here -
[code]int main( void )
{
std::cout<< "Hello, World!";
return 0;
}[/code]
becomes
Code:
int main( void )
{
std::cout<< "Hello, World!";
return 0;
}
-
The point of the image is that his compiler seems to stall forever on linking, it's not a code question.
Probably the wrong board to troubleshoot compiler issues, a mod will move it.
-
You should also use <iostream>, not <iostream.h>, and use some kind of namespace (either standard, or throw some std:: 's on front of your cout's and endl's
alokrsx, you using vista?
-
Make a backup!
It might be down to corrupted source browser / object files.
You could try deleting the entire Debug directory (which contains the object files and some other stuff), then do a rebuild all.
The .ncb and .opt files can be got rid of as well (after quitting vc++). They'll be recreated the next time you run vc++.
-
Your code formatting is a little squashed, try placing whitespace inbetween a few lines to make it more readable, what version of MSVC++ is that? I have 2003..net, and mine does not look like that
-
Thank you Everyone! Thanks A Lot! And well swgh...I have MSVC++ 6.0.
-
Is this the first time this has happened?
What happens when you compile and run this?
Code:
#include <iostream>
int main( void )
{
int len=3, wid=5, area;
area= len*wid;
std::cout<< "Width: " << wid << std::endl;
std::cout<< "Length: " << len << std::endl;
std::cout<< "Area: " << area << std::endl;
return 0;
}
-
> Thank you Everyone!
Well, what was the answer?
You found the cheese, now share it with the rest of us!
-
You may as well dump that compiler, it is very out-dated nowdays. If you want to stick with MS then grab the 2005 Express edition on free download form their website. It comes with a compiler that is much more user friendly
-
MSVC 6 has a big problem with corrupting projects and the class wizard file as well as the intellisense database. In fact it has a problem with everything that was supposed to make it bigger and better.
I would rather use MSVC .NET Express edition. Not sure how much longer it's available for d/l.