Build error?

This is a discussion on Build error? within the C++ Programming forums, part of the General Programming Boards category; Ok now im new to all of this and was trying to learn C++ using C++ book for dummies and ...

  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    5

    Build error?

    Ok now im new to all of this and was trying to learn C++ using C++ book for dummies and I cant even get like 4 paragraphs in without becomming frustrated with trying to figure this out. Everytime I compile and run it says [Build error] [main.o] Error1. Why is this happening? Im following the directions exactly as they are said...

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,264
    you've left out a lot of information we need. What compiler are you using, and what OS? What does the code look like? Are you using a Makefile?

    For starters, just try to compile and run a basic program:
    Code:
    #include <iostream>
    int main()
    {
        std::cout << "Hello World" << std::endl;
    }
    See if you can get that running.

  3. #3
    Registered User
    Join Date
    Feb 2008
    Posts
    5
    Im using bloodsheed C++ and im on vista.This is what it looks like when I start a new project.
    Code:
    #include <cstdlib>
    #include <iostream>
    
    using namespace std;
    
    int main(int argc, char *argv[])
    {
        system("PAUSE");
        return EXIT_SUCCESS;
    }
    I copy and pasted the code you said and it says the same thing.

  4. #4
    Super unModrator
    Join Date
    Dec 2007
    Posts
    321
    To make sure you installed your IDE properly,
    Try this:
    Code:
    #include<iostream>
    using namespace std;
    int main()
    {
          cout<<"Hello World";
          cin.ignore();
          cin.get();
          return 0;
    }

  5. #5
    Registered User
    Join Date
    Feb 2008
    Posts
    5
    Doesnt work either, how do I know if I installed my IDE properly or what an IDE even is? All I did was download the program and followed the instructions...

  6. #6
    Super unModrator
    Join Date
    Dec 2007
    Posts
    321
    Quote Originally Posted by Poisvated View Post
    Im using bloodsheed C++ and im on vista.This is what it looks like when I start a new project.
    Code:
    #include <cstdlib>
    #include <iostream>
    
    using namespace std;
    
    int main(int argc, char *argv[])
    {
        system("PAUSE");
        return EXIT_SUCCESS;
    }
    I copy and pasted the code you said and it says the same thing.
    Do you know what this program is supposed to do-- nothing!

  7. #7
    Registered User
    Join Date
    Feb 2008
    Posts
    5
    So how can a program that does nothing still say there is a build error?

  8. #8
    Super unModrator
    Join Date
    Dec 2007
    Posts
    321
    well the download page says it is compatible with 95/98/NT/2000/xp. and you are on vista. IDK, maybe some incompatibility. try M$ VS 2008

  9. #9
    Registered User
    Join Date
    Feb 2008
    Posts
    5
    thnx for the help, once I get back from work ill give it a shot and come to the forums, im glad I found this site.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Testing some code, lots of errors...
    By Sparrowhawk in forum C Programming
    Replies: 48
    Last Post: 12-15-2008, 04:09 AM
  3. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 02:01 AM
  4. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM

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