萍聚社区-德国热线-德国实用信息网

 找回密码
 注册

微信登录

微信扫一扫,快速登录

萍聚头条

查看: 1414|回复: 2

vc的一个问题

[复制链接]
发表于 2006-12-7 20:50 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册 微信登录

x
谁能帮我看看下面这段话?我Visual Studio不太会用,这个COIN_DLL该在哪里定义?能用中文给我讲讲吗?多谢了!对了,我用的是Visual Studio Net 2003

Note 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)).
Die von den Nutzern eingestellten Information und Meinungen sind nicht eigene Informationen und Meinungen der DOLC GmbH.
 楼主| 发表于 2006-12-7 20:55 | 显示全部楼层
对了,我找到那个preprocessor的地方,里面是一串WIN32;_DEBUG;_WINDOWS;_USRDLL;CONSTRUCT3D_EXPORTS;USE_TGS;SOUND
是不是我在后面加一个coin_dll就可以了啊?$汗$
Die von den Nutzern eingestellten Information und Meinungen sind nicht eigene Informationen und Meinungen der DOLC GmbH.
发表于 2006-12-8 21:03 | 显示全部楼层
咳....没头没尾的。大致:

COIN是一个组件,你既可以通过直接调用.DLL的形式使用它,也可以通过编译的时候链接.LIB来使用。

此外应用此组件的程序,编译的时候需要特殊的Proproccessor。这个组件貌似是其他软件系统的扩展接口。

具体要做的:
1. 要么在你的源程序里面Load那个DLL,要么在编译环境中设置调用相应的LIB
2. 在编译设置里,按照1楼下半段写的,"Project"->"Settings" -> "C/C++" -> "Preprocessor",在最后加上;DCOIN_DLL
Die von den Nutzern eingestellten Information und Meinungen sind nicht eigene Informationen und Meinungen der DOLC GmbH.
您需要登录后才可以回帖 登录 | 注册 微信登录

本版积分规则

手机版|Archiver|AGB|Impressum|Datenschutzerklärung|萍聚社区-德国热线-德国实用信息网

GMT+1, 2025-3-11 20:22 , Processed in 0.077004 second(s), 19 queries , MemCached On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表