想弄nmake,百度上基础资料太少,都是linux的makefile,弄了2天才一点点效果
头痛中。。。
以下记录
//main.cpp
#include <iostream>
using namespace std;
//把Test.h改名为TestLib.h,并去掉_declspec(dllexport)
#include "TestLib.h"
#pragma comment(lib, "Test.lib")
int main()
{
cout<<"hello world"<<endl;
string curName;
Test t;
t.printName("wujingtao", curName);
int num = t.getNum();
string cnName = t.getCnName();
string usName = t.getUsName();
cout<<curName<<endl;
cout<<usName<<endl;