   Visual C++ 2008 Pro, create dll using an empty project template
  I set up several projects which I first tested as using the "Configuration Type" executable and those were also created as empty projects at first.Now I want to be able to switch some of those projects to dll's but I tried several options, none of them have worked.Although I have been able to set must of the properties in the project I still have this problem..dll file but no .libThe way I prepare my code for the dll was this:Building windows dllI hope is enough generic to be used in the VC++ environment. I can produce the dll binary, but when trying to link other dll's depending on the first one, the linker complains because can't find the lib's.For instance, first I have a ImageLoader.dll. Them MeshLoader.dll uses ImageLoader.dll, I can compile and produce ImageLoader.dll, but when trying to build the MeshLoader the problem arises. I also have used the Configuration Properties -> Linker -> Import library property to specify the output lib/IMPLIB:$(MyOutputFolder)ImageLoader.libbut it doesn't produce any lib at all.I noticed when adding a new project using the IDE wizard which has the default Application settings for a DLL, it works and produces the dll and lib. Is it really needed the StdAfx and such? Anyone who has woked fixing this issue?   
/* Make sure functions are exported with C linkage under C++ compilers. */#ifdef __cplusplusextern "C"{#endifRemoving this condition fix the problem, I can compile and produce lib and dll.   