vc的一个问题
谁能帮我看看下面这段话?我Visual Studio不太会用,这个COIN_DLL该在哪里定义?能用中文给我讲讲吗?多谢了!对了,我用的是Visual Studio Net 2003Note that either COIN_DLL or COIN_NOT_DLL _must_ be defined by the
application programmer on MSWindows platforms, or else the #error
statement will hit. Set up one or the other of these two defines in
your compiler environment according to how the library was built --
as a DLL (use "COIN_DLL") or as a LIB (use "COIN_NOT_DLL").
(Setting up defines for the compiler is typically done by either
adding something like "/DCOIN_DLL" to the compiler's argument line
(for command-line build processes), or by adding the define to the
list of preprocessor symbols in your IDE GUI (in the MSVC IDE, this
is done from the "Project"->"Settings" menu, choose the "C/C++" tab,
then "Preprocessor" from the dropdown box and add the appropriate
define)). 对了,我找到那个preprocessor的地方,里面是一串WIN32;_DEBUG;_WINDOWS;_USRDLL;CONSTRUCT3D_EXPORTS;USE_TGS;SOUND
是不是我在后面加一个coin_dll就可以了啊?$汗$ 咳....没头没尾的。大致:
COIN是一个组件,你既可以通过直接调用.DLL的形式使用它,也可以通过编译的时候链接.LIB来使用。
此外应用此组件的程序,编译的时候需要特殊的Proproccessor。这个组件貌似是其他软件系统的扩展接口。
具体要做的:
1. 要么在你的源程序里面Load那个DLL,要么在编译环境中设置调用相应的LIB
2. 在编译设置里,按照1楼下半段写的,"Project"->"Settings" -> "C/C++" -> "Preprocessor",在最后加上;DCOIN_DLL
页:
[1]