I have a C code files. I have to create a Win32 DLL using the .c and .h files. Now when i included this file one by one. Now i am getting the error as "error LNK2005: _DllMain@12 already defined in SPLibrSync.obj". Will anyone please come ahead and solve this problem. Please do the needful.