Web Analytics Made Easy -
StatCounter c++ compiling errors... very odd! - CodingForum

Announcement

Collapse
No announcement yet.

c++ compiling errors... very odd!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • c++ compiling errors... very odd!

    Hi, my VC++ 6 is acting wierd. After i try running a few small programs, it gives me this error:

    --------------------Configuration: a - Win32 Debug--------------------
    Linking...
    LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol [email protected]
    Debug/a.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.

    a.exe - 2 error(s), 0 warning(s)

    EVEN IF MY PROGRAM IS THIS!

    #include <iostream.h>

    int main()
    {
    cout << "Hey";

    return 0;
    }

  • #2
    Looks like you're trying to compile and run your program as a Windows app instead of as a console app (So it searches for a WinMain as it's entry point instead of main). When you create a new project, choose the "Win32 Console Application" and not "Win32 Application".

    shmoove

    Comment

    Working...
    X