我按如下方式创建了一个类:
#include <iostream>
#define DLLEXPORT _declspec( dllexport )
using namespace std;
class DLLEXPORT xyz
{
public:
void printclass();
};我的目标是将类xyz导出到dll。
下面是与此相同的.cxx文件。
#include "xyz.h"
void xyz::printclass()
{
cout<<"hello";
}项目构建正常,但调试文件夹中没有*.dll。取而代之的是*.dll.embed.manifest和*.dll.intermediate.manifest。我想知道这些*.manifest文件是什么。我如何才能为我的项目获得*.dll。
我已经在visual studio中创建了这个项目。
发布于 2012-03-23 15:21:45
您需要查看解决方案目录,而不是您的项目目录。
一个解决方案可以有多个项目,每个项目都有自己的调试和发布文件夹。每个项目都将其最终文件写入解决方案的调试和发布目录,该目录包含项目文件夹。
假设解决方案的名称也是XYZ,请在"Documents\Visual Studio\Projects\XYZ\Debug"中查找
https://stackoverflow.com/questions/9835388
复制相似问题