Visual C++ compiler error

When I try to build a C++ file I get an error having to do with "Unresolved external _main". I searched through all the related files and there was no such string. What would cause this


Answer this question

Visual C++ compiler error

  • drachx

    The compiler/linker is looking for a main function that doesn't exist. Do you have a Main() or WinMain() method declared and accessible



  • lmttag

    yes my wife is really ashlee simpson and she's a singer but she wants to do movies also

    Have you built this project as a DLL or is something you've built from a blank slate Under your project properties you should have a field for the project's entry point -- this should either be left blank or match the name of your DLLMain entry point.



  • Els001

    Hello

    Re: Visual C++ compiler error [in VC 6.0]

    Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1

    For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups.

    OTP

    Thanks

    Damien



  • evolvd

    Any ideas Is your wife really Ashlee Simpson Isn't she a movie star or something Any one else know what could be wrong

  • pidnas

    I should have mentioned that it is a C++ dll file that I am trying to compile. There is a DLLMain function in it which is supposed to be the entry point for the dll.

  • Rajesh Ladda

    I didn't see any field for entry point under the properties menu selection. It wasn't under the projects menu either. I am working with Microsoft Visual Studio 6.0. Isn't that the one you are referring to

    I am a musician also. I play jazz written by people like Dizzy Gillespie and Thelonious Monk. I have heard of your spouse, but unfortunately I am not up to date on the current popular artists. It's a pleasure to make your acqaintance, so to speak.



  • Visual C++ compiler error