Problem with Visual C++ 6.0

This is a discussion on Problem with Visual C++ 6.0 within the C++ Programming forums, part of the General Programming Boards category; Hello every one. I just got XP and I installed Visual Studio 6.0 on my computer. When I opened Visual ...

  1. #1
    Registered User
    Join Date
    May 2005
    Location
    Texas
    Posts
    103

    Problem with Visual C++ 6.0

    Hello every one. I just got XP and I installed Visual Studio 6.0 on my computer. When I opened Visual C++ 6.0 I wanted to compile a free-bug error code. Then I checked it with a regular simple code like the "Hello World" program. It didnt't work. It said an error. Why?? It was a simple code that every code should have compiled. Well, if need here is the code I put:

    Code:
    #include <iostream>
    
    using namespace std;
    
    int main()
    {
     cout<<"Hello World!"<<endl;
    return 0;
    }
    And here comes the error from Visual C++ 6.0 :

    Code:
    --------------------Configuration: Code - Win32 Debug-------------------
    Compiling...
    Code.cpp
    Linking...
    libcpd.lib(wiostrea.obj) : fatal error LNK1143: invalid or corrupt file: no symbol for comdat section 0x105
    Error executing link.exe.
    
    Code.exe - 1 error(s), 0 warning(s)
    Please can anyone help me?? I don't want a good compiler wasted along with a lot of money. Thankyou!

  2. #2
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,681
    First off, have you downloaded and installed the latest service pack (SP6)?

    Second, what type of project did you create initially? When you create a new project, you are asked what type of project you want created. You should have selected a "Win32 Console Application".

    Lastly, you might want to check here for a highly recommended list of fixes to several of the headers.
    I used to be an adventurer like you... then I took an arrow to the knee.

  3. #3
    Registered User
    Join Date
    May 2005
    Location
    Texas
    Posts
    103
    Thankyou I'll check

  4. #4
    Registered User
    Join Date
    May 2005
    Location
    Texas
    Posts
    103
    It still shows the same error. Why???

  5. #5
    Registered User
    Join Date
    May 2005
    Location
    Texas
    Posts
    103
    Now, it compiles, thankyou. But when the program ends, it doesn't say:
    Press any key to continue . . .
    why? Can I fix it??

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 04:45 PM
  2. Problem executing C program in Visual C++ 6.0
    By ladyscarlet99 in forum C++ Programming
    Replies: 2
    Last Post: 10-10-2005, 05:48 AM
  3. Erros in Utility Header File
    By silk.odyssey in forum C++ Programming
    Replies: 4
    Last Post: 12-22-2003, 05:17 AM
  4. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 04:44 PM
  5. Visual Basic Adodc Problem
    By rahat in forum Windows Programming
    Replies: 1
    Last Post: 01-20-2002, 05:55 AM

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