[Linker Error] Unresolved external 'TOpenGLAPPanel::' referenced ....

bianchenghaonan 2012-04-27 02:58:09
编译出现这个问题:
[Linker Error] Unresolved external 'TOpenGLAPPanel::' referenced from D:\PROGRAM FILES (X86)\BORLAND\CBUILDER6\PROJECTS\UNIT1.OBJ

我在网上查了一下,是没有lib文件的原因。于是我用 Project->Add to Project 把相应的OpenGLAP.lib文件添加到工程上来,于是问题解决了。

可是问题很奇怪。在安装这个组建之前,我已经把这个组件的lib文件,也就是上面的OpenGLAP.lib文件和相关的bpi文件、Object File文件都已经放到安装目录的 CBuilder\Lib文件中去了,为什么不会再CBuilder\Lib文件中找呢。而要手动加。
...全文
89 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
ccrun.com 2012-04-27
  • 打赏
  • 举报
回复
默认的C++Builder工程,只添加一些系统自带的lib,如vcl.lib之类的,OpenGLAP.lib这属于三方库,所以要手工添加到工程中才能编译成功。

光把 OpenGLAP.lib 这些文件复制到$(BCB)\lib之下,只有一个用处,就是不用在工程选项中手工添加library path就可以#pragma link "xxx.lib",如此而已。
Note that Delphi IDE does not move components to the new default place on components palette when you install new version of same component(s). So if you already has EhLib installed, then installation new (3.0) version does not move EhLib components to the 'EhLib' page. To force Delphi IDE to move compontes to the default place on components palette do next: Open menu: Component->Configure Palette. Select '[All]' line in Pages listbox. Click 'Default Pages' button. 4. Installation Help ----------------- 1. This version of library doesn't have help files for Delphi8 and Delphi2005. 2. Delphi 4.x - 7.x: Copy the EhLib.hlp and EhLib.cnt files to the Delphi HELP subdirectory. Select Help|Customize to start the OpenHelp application. Add the EhLib.cnt file to the Contents page, add the EhLib.hlp file to the Index and Link pages. 3. C++Builder 4.x - 6.x: Copy the EhLib.hlp and EhLib.cnt files to the C++Builder HELP subdirectory. Select Help|Customize to start the OpenHelp application. Add the EhLib.cnt file to the Contents page, add the EhLib.hlp file to the Index and Link pages. 5. Demonstration Programs ---------------------- Demonstration programs use tables from the DEMOS directory and BDE alias "DBDEMOS". DEMOS/DEMO1 - Demonstration of use TDBGridEh, TPrintDBGridEh, TDBLookupComboboxEh and TPreviewBox. Requare EhLibBDE.Pas file from DataService directory DEMOS/DirTree - Demonstration of use TDBGridEh and TMemTableEh in tree-view mode. DEMOS/IbDemo - Demonstration of use TMemTableEh, TBDEDataDriverEh. DEMOS/MasterDetailType3 - Demonstration of master/detail relation for TMemTableEh component. DEMOS/SQLDataDriver - Demonstration of use TSQLDataDriver. DEMOS/TreeView - Demonstration of use TDBGridEh and TMemTableEh in tree-view mode

604

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder VCL组件使用和开发
社区管理员
  • VCL组件使用和开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧