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