Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Bluetooth SDK Forum Discussions

ilHw_4713311
Level 3
Level 3
First solution authored 25 replies posted 10 replies posted

Hello.

Tool: Modustoolbox 2.2

Target: CYBT-413055-02

 

How can I avoid build error with "undefined reference". I do need "snprintf".

I add #include "stdio.h". What library do I have to add?

 

ilHw_4713311_0-1620029223372.png

 

0 Likes
1 Solution
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

I don't see any issue when I checked the snprintf in an empty btsdk application for the same platform. May I know btsdk version which you are using? Could you please update to the latest and try?

 

Thanks,

-Dheeraj

View solution in original post

0 Likes
2 Replies
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

I don't see any issue when I checked the snprintf in an empty btsdk application for the same platform. May I know btsdk version which you are using? Could you please update to the latest and try?

 

Thanks,

-Dheeraj

0 Likes
ilHw_4713311
Level 3
Level 3
First solution authored 25 replies posted 10 replies posted

Thanks for your reply. It is delayed to test your suggestion due to my business trip.

I could make it with empty project. and snprintf works fine in empty project.

I'll retry again in my target project. Thanks a lot.

0 Likes