Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Multiple declarations ... __fastcall EComPort

Help
Willem
2012-08-01
2014-12-02
  • Willem
    Willem
    2012-08-01

    Hi
    I am having trouble getting Comport 4.11f to work with CppB5.  I have used this program years before and was verry happy with it.  I downloaded 4.11f and installed it in the components pallette.  The examples gives compile error in CPort.hpp ( multiple declarations for " __ fastcall EComPort::EComPort(int) and again , multiple declarations for " __ fastcall EComPort::EComPort(int,int) .

    I tried creating a new project, placing a comport component on the blank Form1.  Even this does not compile, gives the same errors. 

    Have I buggered up the instalation or what?

    Thx

     

  • Anonymous
    2012-08-02

    You've not buggered it up.

    There is a note in the readme.txt about this issue for C++ Builder.

    The .hpp file C++ Builder creates for cport.pas will have a bug in it.
    The first time you compile a project, you will get one or two duplicate
    definitions within the EComPort exception class.  It seems to be safe to
    delete or comment out the duplicates.

     
  • Kenny
    Kenny
    2014-12-02

    Change Code type from Integer to Byte.
    FCode: Integer; => FCode: Byte;
    ACode: Integer; => ACode: Byte;