Visual C++ Compiler

This is a discussion on Visual C++ Compiler within the Tech Board forums, part of the Community Boards category; 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 ...

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    22

    Question 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.
    Last edited by Dave_Sinkula; 10-01-2006 at 11:45 AM. Reason: Changed tags.

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,438
    place cing.get() at the end of the code before return 0. Read the FAQ on this website
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #3
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    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;
    }

  4. #4
    Cat
    Cat is offline
    Registered User
    Join Date
    May 2003
    Posts
    1,571
    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 ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

  5. #5
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    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?

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,494
    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++.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  7. #7
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    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

  8. #8
    Registered User
    Join Date
    Sep 2006
    Posts
    22
    Thank you Everyone! Thanks A Lot! And well swgh...I have MSVC++ 6.0.

  9. #9
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    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;
    }

  10. #10
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,494
    > Thank you Everyone!
    Well, what was the answer?
    You found the cheese, now share it with the rest of us!
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  11. #11
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    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

  12. #12
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C compiler for Visual studio?
    By xtrmi in forum C Programming
    Replies: 6
    Last Post: 09-01-2008, 04:41 PM
  2. pointer to array of objects of struct
    By undisputed007 in forum C++ Programming
    Replies: 12
    Last Post: 03-02-2004, 03:49 AM
  3. Linking error
    By DockyD in forum C++ Programming
    Replies: 10
    Last Post: 01-20-2003, 04:27 AM
  4. <list>
    By Unregistered in forum C++ Programming
    Replies: 9
    Last Post: 02-24-2002, 03:07 PM
  5. Free Visual C Compiler?
    By unanimous in forum C Programming
    Replies: 3
    Last Post: 12-05-2001, 02:15 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21