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

2019-02-21 08:30发布

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

标签: c++ dll
4条回答
Rolldiameter
2楼-- · 2019-02-21 08:57

At the bottom Show output from: Change to Build Look in the folder identified.

查看更多
小情绪 Triste *
3楼-- · 2019-02-21 09:06

I had the same problem, a careful reading of the build log helped me to solve it.

For me it was this issue...

查看更多
▲ chillily
4楼-- · 2019-02-21 09:08

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 ==========

查看更多
我只想做你的唯一
5楼-- · 2019-02-21 09:14

I have had issues w/ C# and VB where VS will not create output files. The root issue seems to be that it lost its mind w/ respect to a reference.

I trouble shot this way

  1. exclude all files
  2. adding in a stub class1 file / compile / verify files are created
  3. add files back one by one and eventually you can determine what the issue is

    The issue for me was a .Net version mismatch. The reference had a higher version than the project failing

No answer as to why VS does not yield a compile error in this situation. If I delete the reference altogether , it definitely complains.

greg

查看更多
登录 后发表回答