CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Create a DLL

  1. #1
    Join Date
    Oct 2003
    Posts
    72

    Talking Create a DLL

    Hi guys

    I'm creating a simple DLL in vc++ 6.0 (Win 32 Dynamic Library)
    After I have added all files that I need to create the dll when I build the project I obtain this link error


    Linking...
    nafxcwd.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in C_Sirio.obj
    Debug/C_Sirio.dll : fatal error LNK1169: one or more multiply defined symbols found
    Error executing link.exe.

    Can You help me?

  2. #2
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: Create a DLL

    Are you sure you are creating Win 32 Dynamic Link Library?
    If you did not add any code, errors like that are highly irregular.
    What code/files did you add to a project?

    This error indicates clearly that you have DllMain defined multiple times.

    Usually error like that happens id you create regular MFC dll and provide own WinMain.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

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