What is '_Sxtcp_connect_0' in UDP application?

Technical questions regarding the XTC tools and programming with XMOS.
jsgn3
Member
Posts: 9
Joined: Tue Jan 07, 2020 4:10 pm

What is '_Sxtcp_connect_0' in UDP application?

Post by jsgn3 »

I am developing a UDP application with uses amongst other
the library lib_xtcp (4.0.1). When I compile the program
this call causes an error:

---
xtcp_connect(c_xtcp,
BROADCAST_PORT,
broadcast_addr,
XTCP_PROTOCOL_UDP);
---

The error is:

---
Compiling tcp_reflect.xc
Rebuild .build/_obj.rsp
Creating Gigabit.xe
../src/tcp_reflect.xc: Error: Undefined reference to '_Sxtcp_connect_0'
---

I have no single clue about what ''_Sxtcp_connect_0" is. I found it nowhere
in the software, libraries or on the internet, for that matter.

Any idea what ''_Sxtcp_connect_0" is and how to solve this error?


User avatar
akp
XCore Expert
Posts: 578
Joined: Thu Nov 26, 2015 11:47 pm

Post by akp »

Did you clean the project prior to build? Errors like this can show up if you don't.
jsgn3
Member
Posts: 9
Joined: Tue Jan 07, 2020 4:10 pm

Post by jsgn3 »

Yes, I did.
User avatar
CousinItt
Respected Member
Posts: 360
Joined: Wed May 31, 2017 6:55 pm

Post by CousinItt »

Note the current revision of lib_xtcp is 6.0.0. Have you included a link to the library in your makefile?
jsgn3
Member
Posts: 9
Joined: Tue Jan 07, 2020 4:10 pm

Post by jsgn3 »

CousinItt wrote: Thu Jan 16, 2020 12:09 pm Note the current revision of lib_xtcp is 6.0.0. Have you included a link to the library in your makefile?
I used an example which needs 4.0.1. So I do not link to 6.0.0.

Because of the problems we have with all this we decided to go
for an FPGA.