Page 1 of 1

Missing #include

Posted: Tue 27 Oct 2015 11:16
by scw2hi
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

Re: Missing #include

Posted: Wed 28 Oct 2015 10:02
by zat
С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

Re: Missing #include

Posted: Wed 28 Oct 2015 15:03
by scw2hi
Yes exactly,

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

Re: Missing #include

Posted: Mon 02 Nov 2015 10:19
by astman
Hi,

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

Best regard,
Astrid

Re: Missing #include

Posted: Fri 20 Nov 2015 09:44
by ViktorV
We will fix this issue in the next build of SecureBridge.

Re: Missing #include

Posted: Thu 14 Apr 2016 13:20
by zat
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>
   

Re: Missing #include

Posted: Fri 15 Apr 2016 09:44
by ViktorV
We are now trying to solve the issue, since behavior of С++ Builder compiler differs depending on version.

Re: Missing #include

Posted: Fri 01 Jul 2016 19:27
by zat
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?

Re: Missing #include

Posted: Tue 02 May 2017 19:12
by totte_karlsson
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

Re: Missing #include

Posted: Thu 01 Feb 2018 13:56
by stlcours
//#include <winsock2.h>
#include <Winapi.WinSock.hpp>

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

Re: Missing #include

Posted: Fri 02 Feb 2018 15:03
by ViktorV
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.