TLexemInfos undefined in 7.0.1 ???

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
roddyp
Posts: 6
Joined: Wed 15 Oct 2014 08:28

TLexemInfos undefined in 7.0.1 ???

Post by roddyp » Wed 13 Apr 2016 23:29

I'm trying to use 7.0.1 with RadStudio/C++Builder 2010, and it's failing to compile "Scasn1.hpp".

These lines (55,56) cause the problem:
....
TLexemInfos FElems;
TLexemInfos FArray;

The (first) error is
[BCC32 Error] Scasn1.hpp(55): E2303 Type name expected

TLexemInfos doesn't seem to be defined in any of the HPP files....???

zat
Posts: 23
Joined: Tue 21 Jun 2011 13:08

Re: TLexemInfos undefined in 7.0.1 ???

Post by zat » Thu 14 Apr 2016 13:31

XS 10
SB 7.0.1

Also have this problem after upgrade from 6.6.9 to 7.0.1:
[bcc32 Error] ScASN1.hpp(56): E2303 Type name expected
[bcc32 Error] ScASN1.hpp(56): E2139 Declaration missing ;
[bcc32 Error] ScASN1.hpp(57): E2303 Type name expected
[bcc32 Error] ScASN1.hpp(57): E2238 Multiple declaration for 'TLexemInfo::TLexemInfos'
[bcc32 Error] ScASN1.hpp(56): E2344 Earlier declaration of 'TLexemInfo::TLexemInfos'
[bcc32 Error] ScASN1.hpp(57): E2139 Declaration missing ;
Failed

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: TLexemInfos undefined in 7.0.1 ???

Post by ViktorV » Fri 15 Apr 2016 09:33

The issue is related to С++ Builder 10 compiler specificity. To solve the issue, comment out the following lines in the ScASN1.hpp file:

Code: Select all

  TLexemInfos FElems;
  TLexemInfos FArray;

roddyp
Posts: 6
Joined: Wed 15 Oct 2014 08:28

Re: TLexemInfos undefined in 7.0.1 ???

Post by roddyp » Fri 15 Apr 2016 09:45

ViktorV wrote:The issue is related to С++ Builder 10 compiler specificity. To solve the issue, comment out the following lines in the ScASN1.hpp file:

Code: Select all

  TLexemInfos FElems;
  TLexemInfos FArray;
Did you mean "RadStudio 10" or "RadStudio 2010"? I have 2010, and I think zat is using 10...

I'll give that a try. I considered it, but thought it would make the following C++ members misaligned compared to the Delphi ones... :(

roddyp
Posts: 6
Joined: Wed 15 Oct 2014 08:28

Re: TLexemInfos undefined in 7.0.1 ???

Post by roddyp » Fri 15 Apr 2016 10:08

roddyp wrote: I'll give that a try. I considered it, but thought it would make the following C++ members misaligned compared to the Delphi ones... :(
Ah. They're the last elements in the structure.

Thanks very much. That works fine now, and - better yet - is successfully negotiating SSH MAC with a system we'd previously been unable to work with :)

zat
Posts: 23
Joined: Tue 21 Jun 2011 13:08

Re: TLexemInfos undefined in 7.0.1 ???

Post by zat » Fri 15 Apr 2016 10:12

ViktorV wrote:The issue is related to С++ Builder 10 compiler specificity. To solve the issue, comment out the following lines in the ScASN1.hpp file:

Code: Select all

  TLexemInfos FElems;
  TLexemInfos FArray;
Rad Studio Seattle (RS 10 ) now compiled without error.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: TLexemInfos undefined in 7.0.1 ???

Post by ViktorV » Fri 15 Apr 2016 10:40

It is good to see that the issue has been solved. Feel free to contact us if you have any further questions about SecureBridge.

Post Reply