CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2001
    Location
    San Diego
    Posts
    102

    ReleaseUMinDependency error

    I have been working with this dll trying to modify it. Things were working pretty good and then all of a sudden I am getting the following error:
    Code:
    Linking...
       Creating library ReleaseUMinDependency/WMPreview.lib and object ReleaseUMinDependency/WMPreview.exp
    LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
    ReleaseUMinDependency/WMPreview.dll : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.
    
    WMPreview.dll - 2 error(s), 0 warning(s)
    I can't figure out what I did to do this. I even went to the original dll that was a copy of the one I was modifing and it did the same thing.

    Does anyone have a solution as to what I have to do to fix this?

    Thanks in advance.

    Mike@spb

  2. #2
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,626
    From the error, I would suspect you changed the type of project you're creating (in project, settings).

    Since it's looking for _main.. you've probably changed this to a console application.

    A GUI type app would typically have WinMain(), and a Dll would have DllMain().

  3. #3
    Join Date
    Sep 2002
    Posts
    1,747
    Undefine the _ATL_MIN_CRT symbol in the Project | Settings... Dialog. That's probably the cause of the error.
    */*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/

    "It's hard to believe in something you don't understand." -- the sidhi X-files episode

    galathaea: prankster, fablist, magician, liar

  4. #4
    Join Date
    Nov 2001
    Location
    San Diego
    Posts
    102
    Yes that was the problem I had to remove all references to _Alt_MIN_CRT in project->settings

    Thanks,

    Mike@spb

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