# Compilation Errors with Borland CBuilder

**URL:** <https://forum.commonvisionblox.com/t/compilation-errors-with-borland-cbuilder/30>\
**Category:** C-style API\
**Tags:** activex, cbuilder\
**Created:** [May 8, 2017, 2:43pm UTC](https://forum.commonvisionblox.com/t/compilation-errors-with-borland-cbuilder/30 "2017-05-08T14:43:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GaunterODim](https://avatars.discourse-cdn.com/v4/letter/g/ed655f/32.png) [@GaunterODim](https://forum.commonvisionblox.com/u/GaunterODim)\
**Post date:** [May 8, 2017, 2:43pm UTC](https://forum.commonvisionblox.com/t/compilation-errors-with-borland-cbuilder/30/1 "2017-05-08T14:43:32Z")

</div>

I have added a display control and an image control to my application’s form (Borland CBuilder 6), now I get two errors:

1. CBuilder shows me the message _The CVimage1CVCError method referenced by CVimage1-\>OnCVCError has an incompatible parameter list. Remove the reference?_
2. When trying to compile the compiler complains about a duplicate definition of `ERRORTIMEOUT`.  
😕

---

<div class="post-metadata">

**Author:** ![illusive](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/illusive/32/61_2.png) [@illusive](https://forum.commonvisionblox.com/u/illusive)\
**Post date:** [May 8, 2017, 2:57pm UTC](https://forum.commonvisionblox.com/t/compilation-errors-with-borland-cbuilder/30/2 "2017-05-08T14:57:09Z")

</div>

Hi @GaunterODim,

Both issues have a similar origin: I guess you imported the Common Vision Blox ActiveX controls through the development environment (_Component_ - _Import ActiveX Control_) rather than through the wrapper package that came with Common Vision Blox.

As CBuilder is unable to properly process the signature of `CVCError` on its own it’ll instead offer to remove the function entirely - which explains your problem number 1. Problem number 2 is caused by the CBuilder defining the symbol `ERRORTIMEOUT` somewhere in its headers - leading to a conflict with the automatically generated wrapper for the Common Vision Blox image control.

Both can be avoided by using the package installed to the directory _%CVB%\Lib\C\Packages_ (if there is nothing in this directory or if this directory does not exist you might have installed a runtime-only setup of Common Vision Blox).

To fix this, you should first of all remove the imported/generated Common Vision Blox control wrapper files from your _CBuilder\Imports_ directory. Then open the file _CVB\_CBuilder6.bpk_ from the _%CVB%\Lib\C\Packages_ directory. If you want, remove any controls you won’t need, then hit _Compile_ and afterwards _Install_. This will install the newly generated wrappers and make the control available in the CBuilder tool bar.

Before using them, make sure that your library path (_Tools_ - _Environment Options…_ - _Library_) contains the folder _$(CVB)\Lib\C_.
