Multiple declarations ... __fastcall EComPort

  • Willem

    Willem - 2012-08-01

    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?


  • 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;


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks