10.40 - Compile error TCP.Lib line 332

I installed 10.40 on my lab computer, and no problems with the installation.

When I compile a preexisting project however, I get an error

line 332 : ERROR TCP.LIB : Unmatched ‘{’.
line 334 : ERROR TCP.LIB : s previously defined.
line 343 : ERROR TCP.LIB : _s is out of scope/ not declared.
line 344 : WARNING TCP.LIB : Conversion to incompatible pointer type
line 346 : ERROR TCP.LIB : Missing character ‘;’.
line 346 : WARNING TCP.LIB : Type mismatch: incompatible types void * and unsigned int used in expression.
line 346 : ERROR TCP.LIB : Invalid struct reference.
line 348 : WARNING TCP.LIB : Conversion to incompatible pointer type
line 349 : ERROR TCP.LIB : ) is missing/expected.
line 349 : WARNING TCP.LIB : Insufficient arguments.
line 349 : ERROR TCP.LIB : Invalid struct reference.
line 350 : ERROR TCP.LIB : ‘}’ doesn’t match open token on line 349.
line 352 : WARNING TCP.LIB : Conversion to incompatible pointer type

It compiles OK with 10.21 - no errors

I have narrowed the problem down - but no solution

I am using Modbus - initially I copied the 10.21 Modbus files over, but subsequently I intalled 9.62 and copied those files over into the Rabbit4000\Modbus lib directory.

Always the same error

When I comment out the MODBUS_TCP_Init funtion - the program compiles OK (I have to create a dummy MODBUS_TCP_tick function). If I comment the MODBUS_TCP_Init back in, same errors as above.

Modbus worked OK with 10.21 - I created my own BSP library funtion for my own application.

Any ideas how to fix this so that it may compile

This was a bug in the TCP.lib

added a ‘_s’ on line 327 and 331 instead of ‘s’, and problem went away (as per rabbit email tech support)