CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 1999
    Posts
    6

    Runtime Error, C++,Urgent

    I have a program, when i run it on vc++ environment,has no compilation errors,but gives a runtime linker error libcd.lib(crt0.obj) unresolvable external symbol _main.Which i tried unable to rectify it.Urgent

    Suresh kumar K

  2. #2
    Join Date
    Apr 1999
    Location
    Germany
    Posts
    418

    Re: Runtime Error, C++,Urgent

    Hi,

    if you want to write a Windows app you have the wrong options in the Project Settings. If you're writing a console app you need to define a main() function, which is the entry point for the whole app.

    Martin

  3. #3
    Join Date
    Aug 1999
    Posts
    6

    Re: Runtime Error, C++,Urgent

    I tried my level best with the settings,it is sdk program.Could you help me with some more information.I even tried for console app,so success.

    Suresh kumar K

  4. #4
    Join Date
    Apr 1999
    Location
    Germany
    Posts
    418

    Re: Runtime Error, C++,Urgent

    An SDK program? Du you mean a program for Windows written in C? Okay, did you run the Ressource Compiler? Even if you don't have ressources in your program it will "stamp" it so that the Exe loader recognizes the correct subsystem.

    Martin

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured