Results 1 to 8 of 8
  1. #1

    simple C++ Question

    Simple C++ Question
    I am just learning C++
    I am getting the error
    Link Error: Unidentified Symbol: _WinCRTStartup in module entry pont

    here is my code




    [QUOTE]

    #include <iostream>

    using namespace std;

    int main()

    {

    cout << "Hello World" << endl;
    return 0;

    }

    {/Quote]

    The code is right, what is wrong?

  2. #2
    Join Date
    Aug 2002
    Location
    deville
    Posts
    214
    could be iostream.h
    8th computer classes sure come in handy

  3. #3
    no still same problem
    http://www.pcshopper.org <- PCShopper is so easy to navigate your grandmother could do it. Some of the best computer deals on the net are contained there.

  4. #4
    i am using code warrior 7.0
    http://www.pcshopper.org <- PCShopper is so easy to navigate your grandmother could do it. Some of the best computer deals on the net are contained there.

  5. #5
    Join Date
    Jul 2002
    Location
    USA
    Posts
    1,125
    #include <iostream.h>

    int main()
    {

    cout << "Hello World" << endl;

    return 0;
    }

    That should work fine.

  6. #6
    no same problem
    http://www.pcshopper.org <- PCShopper is so easy to navigate your grandmother could do it. Some of the best computer deals on the net are contained there.

  7. #7
    Join Date
    Jun 2002
    Location
    Planet Earth
    Posts
    112
    Honestly I don't see anything wrong with your code at all. Your version or the one that Rob provided should work without problems. The error your getting is coming from the linker not being able to resolve the _WinCRTStartup symbol, which I have no clue what that's all about.

    I'm not familiar with the compiler you're using so I can only give you general things to look for/try. I'm assuming you're trying to compile your program from within the IDE, right? Perhaps you've got another file associated with that project that you don't realize is there? Make sure your .cpp file is the only one being compiled and that there aren't any other files associated with your project (well except for iostream as you'll need that for cout). If anything... try compiling from the command line. Otherwise... I'm not sure what else to tell you at this moment.

  8. #8
    Join Date
    Jul 2002
    Location
    USA
    Posts
    1,125
    Then the compiler is having problems. Try usign a different compiler such as Microsoft's Visual C++.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •