-
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?
-
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.