How to find out in code what is causing error LNK2001: unresolved external symbol _main problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Angus Comber (ac_at_NOiteloffice.com.PLEASENOSPAM)
Date: 07/20/04


Date: Tue, 20 Jul 2004 15:18:49 +0100

Hello

Here is the link error:

Linking...
   Creating library ReleaseMinDependency/Pop.lib and object
ReleaseMinDependency/Pop.exp
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseMinDependency/Pop.dll : fatal error LNK1120: 1 unresolved externals

I realise I can remove ATL_MIN_CRT in my project but would rather find out
what C runtime function in my code is causing the problem. Is there an easy
way to find this ... or is the only thing to do look through each line of
code?

Angus Comber
angus@NOSPAMiteloffice.com



Relevant Pages

  • Migrating EVC3 to EVC4 link error
    ... I'm getting the following link error when I migrated my ... functioning EVC3 app to EVC4 ... Linking... ...
    (microsoft.public.pocketpc.developer)
  • Re: error LNK2020: unresolved token (0A00003D) linhas2.__dtor
    ... LINK: fatal error LNK1120: 1 unresolved externals* ... everything runs well in compilation time but one link error ...
    (microsoft.public.dotnet.languages.vc)
  • LINK error 2020
    ... I got the following link error in my release build (I am using vc7 on ... LINK: fatal error LNK1120: 1 unresolved externals ...
    (comp.lang.cpp)
  • LNK 2020 error ...
    ... I got the following link error in my release build: ... LINK: fatal error LNK1120: 1 unresolved externals ... The debug build is ok. ...
    (microsoft.public.vc.language)
  • lnk 1104 error
    ... I've seen this problem answered on the 'net that you can get this link error ... ($VcInst/lib or whatever) ... for my library paths and include paths but I still ... get the error: fatal error LNK1104: cannot open file 'C:\Program.obj' ...
    (alt.comp.lang.learn.c-cpp)