# Latest 'Main' branch of +TCP has compilation error after last commit

**URL:** <https://forums.freertos.org/t/latest-main-branch-of-tcp-has-compilation-error-after-last-commit/19632>\
**Category:** Libraries\
**Created:** [March 26, 2024, 9:02am UTC](https://forums.freertos.org/t/latest-main-branch-of-tcp-has-compilation-error-after-last-commit/19632 "2024-03-26T09:02:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pete-pjb](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/pete-pjb/32/5940_2.png) [@pete-pjb](https://forums.freertos.org/u/pete-pjb)\
**Post date:** [March 26, 2024, 9:02am UTC](https://forums.freertos.org/t/latest-main-branch-of-tcp-has-compilation-error-after-last-commit/19632/1 "2024-03-26T09:02:46Z")

</div>

Dear All,

I am using the GCC tool chain for ARMv8…

I have found after pulling the latest ‘Main’ branch of +TCP I am unable to build the library. I get the following errors:

```auto
|Description|Resource|Path|Location|Type|
|---|---|---|---|---|
|unknown type name 'ConstSocket_t'; did you mean 'xSocket_t'?|FreeRTOS_Routing.h|/OTG_zus_FreeRTOS/TCP/include|line 326|C/C++ Problem|
|unknown type name 'Socket_t'; did you mean 'xSocket_t'?|FreeRTOS_Routing.h|/OTG_zus_FreeRTOS/TCP/include|line 327|C/C++ Problem|

```

I have found a quick fix is to simply add the line **#include “FreeRTOS\_Sockets.h”** to _line 34 of FreeRTOS\_Routing.h._

Normally I would investigate, find the best solution and submit a pull request but I am too busy right now, sorry 😳. Just thought someone might be able to check it out and decide if my quick fix is really the best answer and take the best course of action.

Kind Regards,

Pete

---

<div class="post-metadata">

**Author:** ![tony-josi-aws](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tony-josi-aws](https://forums.freertos.org/u/tony-josi-aws)\
**Post date:** [March 26, 2024, 9:34am UTC](https://forums.freertos.org/t/latest-main-branch-of-tcp-has-compilation-error-after-last-commit/19632/2 "2024-03-26T09:34:48Z")

</div>

Thanks, @pete-pjb for opening a discussion on this issue.

Including `FreeRTOS_Sockets.h` seems to be the right fix to me. Wondering if the error was generated for you by an application source file since compilation of library source files are not detecting this as `FreeRTOS_Routing.h` is separately included wherever `FreeRTOS_Sockets.h` is included.

---

<div class="post-metadata">

**Author:** ![pete-pjb](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/pete-pjb/32/5940_2.png) [@pete-pjb](https://forums.freertos.org/u/pete-pjb)\
**Post date:** [March 26, 2024, 9:43am UTC](https://forums.freertos.org/t/latest-main-branch-of-tcp-has-compilation-error-after-last-commit/19632/3 "2024-03-26T09:43:31Z")

</div>

Hi @tony-josi-aws,

Thanks for picking this up.

I basically have my own library which combines the kernel, +TCP, +FAT; I link directly to just the source files relevant for my applications from my workspace as downloaded from GIT, but I also have a number of custom files to provide various bespoke network and file system integration for various parts of my hardware platform, so for sure I am compiling with different conditions than just a straight compile of the +TCP library which I expect is what has highlighted the problem, if that makes sense?

Kind Regards,

Pete

---

<div class="post-metadata">

**Author:** ![tony-josi-aws](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tony-josi-aws](https://forums.freertos.org/u/tony-josi-aws)\
**Post date:** [March 26, 2024, 11:38am UTC](https://forums.freertos.org/t/latest-main-branch-of-tcp-has-compilation-error-after-last-commit/19632/4 "2024-03-26T11:38:49Z")

</div>

@pete-pjb

Created a PR [here](https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/pull/1123).

Thanks

---

<div class="post-metadata">

**Author:** ![pete-pjb](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/pete-pjb/32/5940_2.png) [@pete-pjb](https://forums.freertos.org/u/pete-pjb)\
**Post date:** [March 26, 2024, 11:42am UTC](https://forums.freertos.org/t/latest-main-branch-of-tcp-has-compilation-error-after-last-commit/19632/5 "2024-03-26T11:42:06Z")

</div>

Thanks Tony.

All the best…
