Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Conflict With winsock
#1
Hi:

  Have program BCB5 Indy 9? to upload txt files to site among other things. Using Indy component IdFTP the files are truncated at 1440 or 2880??
I tried ICS test program and it worked fine no trunction. I deleted Indy component and added ICS and immediate got errors:

[C++ Error] winsock.h(56): E2015 Ambiguity between 'u_int' and 'Idwinsock2::u_int'
[C++ Error] winsock.h(64): E2015 Ambiguity between 'fd_set' and '_fastcall Idwinsock2::fd_set(int,TFDSet &)'
[C++ Error] winsock.h(64): E2015 Ambiguity between 'fd_set' and '_fastcall Idwinsock2::fd_set(int,TFDSet &)'
[C++ Error] winsock.h(171): E2015 Ambiguity between 'u_long' and 'Idwinsock2::u_long'
[C++ Error] winsock.h(272): E2015 Ambiguity between 'u_char' and 'Idwinsock2::u_char'
[C++ Error] winsock.h(273): E2015 Ambiguity between 'u_short' and 'Idwinsock2::u_short'


and on and on

I deleted the ICS component and the errors were still there.

I invoked a a conditional _WINSOCKAPI_
 and changed WinSock.hpp:

#include <winsock2.h>
namespace Winsock
{
typedef fd_set *PFDSet;
typedef fd_set TFDSet;
}

And a new set of error messages:

[C++ Error] winsock2.h(104): E2015 Ambiguity between 'u_int' and 'Idwinsock2::u_int'
[C++ Error] winsock2.h(108): E2015 Ambiguity between 'fd_set' and '_fastcall Idwinsock2::fd_set(int,TFDSet &)'
[C++ Error] winsock2.h(108): E2015 Ambiguity between 'fd_set' and '_fastcall Idwinsock2::fd_set(int,TFDSet &)'
[C++ Error] winsock2.h(220): E2015 Ambiguity between 'u_long' and 'Idwinsock2::u_long'
[C++ Error] winsock2.h(321): E2015 Ambiguity between 'u_char' and 'Idwinsock2::u_char'
[C++ Error] winsock2.h(322): E2015 Ambiguity between 'u_short' and 'Idwinsock2::u_short'
[C++ Error] winsock2.h(323): E2015 Ambiguity between 'u_long' and 'Idwinsock2::u_long'

and on and on.

There are other Indy components in my program on other forms and I doubt deleting them all would help given that program was building fine before putting the ICS component on form.

Put Indy component back on problem form and still get same errors.

Help!! Pounding head against wall. Something seriously wrong with how these components work.

Thanks Robert
Reply


Messages In This Thread
Conflict With winsock - by tultalk - 08-24-2018, 05:52 PM
RE: Conflict With winsock - by rlebeau - 08-24-2018, 09:59 PM
RE: Conflict With winsock - by tultalk - 08-26-2018, 02:17 AM
RE: Conflict With winsock - by rlebeau - 08-27-2018, 08:15 PM
RE: Conflict With winsock - by tultalk - 08-26-2018, 03:14 PM
RE: Conflict With winsock - by tultalk - 08-26-2018, 06:55 PM
RE: Conflict With winsock - by tultalk - 08-27-2018, 11:39 AM
RE: Conflict With winsock - by tultalk - 08-27-2018, 01:34 PM
RE: Conflict With winsock - by tultalk - 08-28-2018, 02:24 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)