Window DLL and LIB export
2014-01-03 10:46
190 查看
1. lib export way
有三种导出方法,如下:
/IMPLIB 选项重写 LINK 在生成包含导出的程序时所创建的导入库的默认名称。
默认名称由主输出文件的基名称和扩展名 .lib 组成。 如果指定了下列一项或多项内容,则程序包含导出:
源代码中的
__declspec(dllexport) 关键字
.def 文件中的
EXPORTS 语句
LINK 命令中的
/EXPORT 规范
2. dllexport export way
_declspec( dllexport ) void fun1( ... )
{
......
}
_declspec( dllexport ) void fun2( )
{
......
}
3. .def export way
project GLRender will export GLRender.lib, and generate GLRender.dll
3.1 project property
by vs2010, create empty (win32) project, select dll configuration type,
or after generating project, modify configuration type to dll, see diagram as followings
3.2 add .def file to project
3.3 configure export
有三种导出方法,如下:
/IMPLIB 选项重写 LINK 在生成包含导出的程序时所创建的导入库的默认名称。
默认名称由主输出文件的基名称和扩展名 .lib 组成。 如果指定了下列一项或多项内容,则程序包含导出:
源代码中的
__declspec(dllexport) 关键字
.def 文件中的
EXPORTS 语句
LINK 命令中的
/EXPORT 规范
2. dllexport export way
_declspec( dllexport ) void fun1( ... )
{
......
}
_declspec( dllexport ) void fun2( )
{
......
}
3. .def export way
project GLRender will export GLRender.lib, and generate GLRender.dll
3.1 project property
by vs2010, create empty (win32) project, select dll configuration type,
or after generating project, modify configuration type to dll, see diagram as followings
3.2 add .def file to project
3.3 configure export
相关文章推荐
- CV_EXPORT定义的作用,lib及dll的区别
- Using dllimport and dllexport in C++ Classes
- [under the hood]Reduce EXE and DLL Size with LIBCTINY.LIB
- symbian 静态接口DLL(IMPORT_C and EXPORT_C)
- Reduce EXE and DLL Size with LIBCTINY.LIB
- 【转】CV_EXPORT定义的作用,lib及dll的区别
- What is DLL and Lib?
- Difference between .DLL And .LIB
- Under The Hood: Reduce EXE and DLL Size with LIBCTINY.LIB
- __declspec(dllexport) and __declspec(dllimport)
- CV_EXPORT定义的作用,lib及dll的区别
- How to call DLL and LIB files (SDK)
- about dll export and import
- lib and dll
- Reduce EXE and DLL Size with LIBCTINY.LIB
- LIB/DLL/CRT//MD, /MT, /LD and more under Windows
- CV_EXPORT定义的作用,lib及dll的区别
- Reduce EXE and DLL Size with LIBCTINY.LIB
- How to make dll and lib using bakefile.
- How to create .lib file when you only have .dll and .h files