一:编译生成DLL文件的方法:
方法一:
1.cl /c FasterString.cpp ------->FasterString.obj
2.lib /DEF FasterString.obj ------->FasterString.exp and FasterString.lib
3.link /dll FasterString.exp FasterString.obj------ >FasterString.dll
方法二:
1.cl /c FasterString.cpp ------->FasterString.obj
2.link /dll FasterString.obj ------->FasterString.exp and FasterString.lib and FasterString.dll
方法三:
1.cl /LD FasterString.cpp ------>FasterString.obj and FasterString.exp and FasterString.lib and FasterString.dll
生成测试程序:
cl /EHsc TestString.cpp FasterString.lib --->TestString.exe