Missing #include

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
scw2hi
Posts: 56
Joined: Fri 07 Jan 2005 13:06
Location: Hildesheim

Missing #include

Post by scw2hi » Tue 27 Oct 2015 11:16

Hi,

again (For the third time) I had to patch your source files to run my project using SecureBridge.

I had to add
#include <Winsock.hpp>
to the file: ...\Devart\SecureBridge for RAD Studio XE8\Include\Win32\ScSSHSocket.hpp

Am I doing something wrong or were you not yet aware of this problem?

Best regards

Wolfgang

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

Re: Missing #include

Post by zat » Wed 28 Oct 2015 10:02

Сonfirm this.
When add :

Code: Select all

#include <Winsock.hpp> 
in ScSSHSocket.hpp, all compiled without errors, otherwise:
[bcc32 Error] ScSSHSocket.hpp(79): E2316 'Winsock' is not a member of 'Winapi'
[bcc32 Error] ScSSHSocket.hpp(79): E2040 Declaration terminated incorrectly

-----
RS 10 Seattle
SB 6.6.9

scw2hi
Posts: 56
Joined: Fri 07 Jan 2005 13:06
Location: Hildesheim

Re: Missing #include

Post by scw2hi » Wed 28 Oct 2015 15:03

Yes exactly,

and not only with RS10 Seattle, also for the latest versions for XE8

astman
Posts: 4
Joined: Tue 17 Sep 2013 12:37

Re: Missing #include

Post by astman » Mon 02 Nov 2015 10:19

Hi,

I also have to patch the source files. Please solve the problem !

Best regard,
Astrid

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

Re: Missing #include

Post by ViktorV » Fri 20 Nov 2015 09:44

We will fix this issue in the next build of SecureBridge.

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

Re: Missing #include

Post by zat » Thu 14 Apr 2016 13:20

win7 Pro x32
RS 10 Seattle
SB 7.0.1

In version 7.0.1 now copile error:
[bcc32 Error] ScSSHSocket.hpp(79): E2316 'Winsock' is not a member of 'Winapi'

In the file: ...\Devart\SecureBridge for RAD Studio XE8\Include\Win32\ScSSHSocket.hpp :

1. I had to add

Code: Select all

#include <Winsock.hpp>
2. comment string:

Code: Select all

#include <winsock2.h> 
Now all compile.

Code: Select all

   #include <Winsock.hpp>
   //#include <winsock2.h>
   

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

Re: Missing #include

Post by ViktorV » Fri 15 Apr 2016 09:44

We are now trying to solve the issue, since behavior of С++ Builder compiler differs depending on version.

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

Re: Missing #include

Post by zat » Fri 01 Jul 2016 19:27

win7 Pro x64
RS 10.1 Berlin
SB 7.1.2

In version 7.1.2 now copile error:
[bcc32 Error] ScSSHSocket.hpp(80): E2316 'Winsock' is not a member of 'Winapi'

In the file: ...\Devart\SecureBridge for RAD Studio 10.1\Include\Win32\ScSSHSocket.hpp
change:

Code: Select all

//#include <winsock2.h>
#include <Winapi.WinSock.hpp>
Now all compile.
Only I have that problem?

totte_karlsson
Posts: 6
Joined: Fri 12 Feb 2016 17:19

Re: Missing #include

Post by totte_karlsson » Tue 02 May 2017 19:12

Hello,

Having the same problem as everyone else in this post.

Upgraded to SecureBridge 8.0.1.

Added

#include <Winapi.WinSock.hpp>
before the line
#include <winsock2.h>

in Scsshsocket.HPP

Thanks for an otherwise excellent component!
-tk

stlcours
Posts: 33
Joined: Wed 14 Sep 2011 20:22

Re: Missing #include

Post by stlcours » Thu 01 Feb 2018 13:56

//#include <winsock2.h>
#include <Winapi.WinSock.hpp>

It has not be fixed for SecureBridge 8.1.2 (05-Oct-2017). Please.

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

Re: Missing #include

Post by ViktorV » Fri 02 Feb 2018 15:03

Possible issue solutions for different versions of C ++ Builder are listed above. The error cause is not in the SecureBridge code, but that С++ Builder compiler differs depending on version.

Post Reply