Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 C++ DLL project - No output DLL file!

Tags:

c++

dll

I can compile the DLL project without any error. It says "Build succeeded". But I don't see any DLL file in the Debug or Release folder.

There are only .exp, .lib and .pdb files

like image 657
prolog Avatar asked May 12 '10 07:05

prolog


People also ask

How do I create a DLL in Visual Studio 2010?

Alternatively you can create a new solution by using File –> New –> Project... . Either way will open up the “Add New Project” dialog. Here you choose “Class Library” (in section Other Languages –> Visual C++ ) and specify a new for the project. This name will also be the name of the DLL file.

How do I add a DLL to C++ project in Visual Studio?

On the menu bar, choose File > New > Project to open the New Project dialog box. In the left pane of the New Project dialog box, select Installed > Visual C++ > Windows Desktop. In the center pane, select Dynamic-Link Library (DLL).


1 Answers

Visual Studio 2010 by default puts the output files in $(SolutionDir)\Debug or $(SolutionDir)\Release. It's quite likely you are looking at Debug and Release folders inside the project - which are the intermediate folders.

To find out where the output files got open Project Properties > General > Output Directory. By default it is $(SolutionDir)$(Configuration)\ which evaluates to either Debug or Release in your solution directory.

EDIT Visual Studio will tell you where it places the output files in the Output window. Just bring it up by going to "View > Output". It'll say something like this:

1> MFCInterop.vcxproj -> C:\temp\sotest\Debug\MFCInterop.dll
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

like image 59
Igor Zevaka Avatar answered Oct 05 '22 19:10

Igor Zevaka