GameKiller - Bringing The Pain To Each And Every Game!
Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 22

Thread: another

  1. #1
    Renown Hacker Feedback Score 0 FrickFrack's Avatar
    Join Date
    Dec 2009
    Location
    Texas
    Posts
    417
    Thanks
    315
    Thanked 78 Times in 68 Posts
     

    Default another

    im using build solution with the new Microsoft Visual C++ 2010 beta and now get this error message when i hit build solution.

    1>------ Build started: Project: sample1, Configuration: Debug Win32 ------
    1> sample1.cpp
    1>cusers\owner\documents\visual studio 2010\projects\sample1\sample1\sample1.cpp(7): warning C4627: '#include <iostream>': skipped when looking for precompiled header use
    1> Add directive to 'StdAfx.h' or rebuild precompiled header
    1>cusers\owner\documents\visual studio 2010\projects\sample1\sample1\sample1.cpp(20): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source?
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


  2. Sponsored


  3. #2
    The New Guy Feedback Score 0
    Join Date
    Jan 2010
    Posts
    20
    Thanks
    2
    Thanked 8 Times in 3 Posts
     

    Default Re: another

    Can you post your source code?


  4. #3
    Renown Hacker Feedback Score 0 FrickFrack's Avatar
    Join Date
    Dec 2009
    Location
    Texas
    Posts
    417
    Thanks
    315
    Thanked 78 Times in 68 Posts
     

    Default Re: another

    /* This is a simple C++ program.

    Call this file Sample.cpp.

    */

    #include <iostream>

    using namespace std;

    // A C++ program begins at main().

    int main()

    {

    cout << "C++ is power programming.";

    return 0;

    }

    yes im a noob at C++ but im doing a tut and am stuck.


  5. #4
    The New Guy Feedback Score 0
    Join Date
    Jan 2010
    Posts
    20
    Thanks
    2
    Thanked 8 Times in 3 Posts
     

    Default Re: another

    When I input the code into my C++ compiler, I get no error message. And by reading the code, there seems to be nothing wrong.

    I guess it wouldn't do much if you add endl, so that the coding line becomes

    cout << "C++ is power programming." << endl;


  6. #5
    Renown Hacker Feedback Score 0 FrickFrack's Avatar
    Join Date
    Dec 2009
    Location
    Texas
    Posts
    417
    Thanks
    315
    Thanked 78 Times in 68 Posts
     

    Default Re: another

    hmm well...ill go try it and if it works ill let you know and thank you =)

    I am still getting a lot of errors...idk im trying pretty hard to learn C++ but its just not going my way.


  7. #6
    Аdministrator

    Feedback Score 1 (100%) freedompeace's Avatar
    Join Date
    Jul 2009
    Location
    Melbourne, Australia
    Posts
    4,876
    Thanks
    62
    Thanked 2,960 Times in 746 Posts
     

    Default Re: another

    You don't have "StdAfx.h"/

    Try repairing your Visual Studio installation.


  8. #7
    Renown Hacker Feedback Score 0 FrickFrack's Avatar
    Join Date
    Dec 2009
    Location
    Texas
    Posts
    417
    Thanks
    315
    Thanked 78 Times in 68 Posts
     

    Default Re: another

    again not trying to sound like a noob...but how do i repair it? lol


  9. #8
    Аdministrator

    Feedback Score 1 (100%) freedompeace's Avatar
    Join Date
    Jul 2009
    Location
    Melbourne, Australia
    Posts
    4,876
    Thanks
    62
    Thanked 2,960 Times in 746 Posts
     

    Default Re: another

    Quote Originally Posted by frickfrack
    [Dear Visitor, you're restricted from viewing links until you are registered & logged on.
    Click Here To Register Today
    again not trying to sound like a noob...but how do i repair it? lol
    Start > Control Panel > Add/Remove Programs (may also be called 'Uninstall Programs') > Visual Studio > Repair


  10. The Following User Says Thank You to freedompeace For This Useful Post:

    FrickFrack (01-06-2010)

  11. #9
    Renown Hacker Feedback Score 0 FrickFrack's Avatar
    Join Date
    Dec 2009
    Location
    Texas
    Posts
    417
    Thanks
    315
    Thanked 78 Times in 68 Posts
     

    Default Re: another

    okay im repairing it now ill let you know if that helped.

    the repair didnt work for me...are there any other IDE's that i can code C++ in with a compiler and all that jazz?


  12. #10
    The New Guy Feedback Score 0
    Join Date
    Jan 2010
    Posts
    20
    Thanks
    2
    Thanked 8 Times in 3 Posts
     

    Default Re: another

    Well, like you, I'm just getting started out, and Code::Blocks seems to be working pretty well for me. You should give that a try


  13. The Following User Says Thank You to xbOw00 For This Useful Post:

    FrickFrack (01-06-2010)

  14. #11
    Renown Hacker Feedback Score 0 FrickFrack's Avatar
    Join Date
    Dec 2009
    Location
    Texas
    Posts
    417
    Thanks
    315
    Thanked 78 Times in 68 Posts
     

    Default Re: another

    do you have a link or a website for it i can go to?

    i found code::blocks...but it says on there site that i need a new compiler that this one wont work for windows 7

    i have figured out all i needed thank you xbOw00.


  15. #12
    The New Guy Feedback Score 0
    Join Date
    Jan 2010
    Posts
    20
    Thanks
    2
    Thanked 8 Times in 3 Posts
     

    Default Re: another

    No problem ^^"


  16. #13
    Renown Hacker Feedback Score 0 FrickFrack's Avatar
    Join Date
    Dec 2009
    Location
    Texas
    Posts
    417
    Thanks
    315
    Thanked 78 Times in 68 Posts
     

    Default Re: another

    Also thank you freedompeace for trying to help me repair my Microsoft Visual C++...but i fail at repair not your fault it didnt work its mine lol.


  17. #14
    Game Rapist Feedback Score 0 Dwarf's Avatar
    Join Date
    Jul 2009
    Location
    MapleStory Section
    Posts
    1,165
    Thanks
    115
    Thanked 255 Times in 97 Posts
     

    Default Re: another

    Add
    Code:
    #include "stdafx.h"
    
    on top of your code.


  18. #15
    Banned Feedback Score 0
    Join Date
    Aug 2009
    Posts
    120
    Thanks
    0
    Thanked 24 Times in 15 Posts
     

    Default Re: another

    Either include "StdAfx.h" at the top, or make a new project with the "Empty Project" template.

    Quote Originally Posted by freedompeace
    [Dear Visitor, you're restricted from viewing links until you are registered & logged on.
    Click Here To Register Today
    You don't have "StdAfx.h"/

    Try repairing your Visual Studio installation.

    [Dear Visitor, you're restricted from viewing links until you are registered & logged on.
    Click Here To Register Today


    Repairing the installation won't help. He probably chose the "Win32 Console Application" template at the template selection window and accidentally removed the include because he copy and pasted the code from the tutorial he had recently written.


Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!
SEO Blog

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Winner for September 2010
GameKiller.net
Design Copyright © 2009 - 2010 GameKiller, All Rights Reserved.
GameKiller.net is not responsible for any content in any posting made by users on the site.
All times are GMT -4. The time now is 05:12 PM. SEO by vBSEO 3.5.1 PL1