sprintf

Fully featured ARM compilers available on Windows, Linux, and macOS.
Post Reply
Author
Message
kamputty
Posts: 31
Joined: 22 Aug 2012 21:34

sprintf

#1 Post by kamputty » 14 Feb 2023 15:50

Hi all,

I think I'm going mad! I'm trying to use the "sprintf" API, and no love...I've included <stdio.h>, and still no love...

Does this compiler support this? I looked at the "Log" support, and it won't work for me...I need to format my data.

What am I missing?!

~Kam

sgssn
Posts: 35
Joined: 13 Sep 2021 16:24

Re: sprintf

#2 Post by sgssn » 15 Feb 2023 10:21

Hi
there was once a thread like that:
viewtopic.php?f=238&t=78904&hilit=sprintf

perhaps it helps?

Gerhard

drthth
Posts: 16
Joined: 15 May 2023 06:28

Re: sprintf

#3 Post by drthth » 28 May 2023 05:09

Hi all,

I have a similar but even worse problem with NECTO v3.0.0. My compiler always says "undefined identifier "sprintf" in expression" and he is right. This function doesn't exist ??!!??. Unfortunately I can't find any hint if there is only another name for this function or if such a basic function is "really" not available. If I have to write such a function myself I can go back to assembler too. The proclaimed "easy programming" of NECTO and MikroSDK should look differently to me.

If someone can help me I would be very grateful.

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: sprintf

#4 Post by IvanJeremic » 30 May 2023 08:25

Hi,

Unfortunately there is no Sprintf function in our libraries at the moment, there are in the legacy SDK in Necto Studio though.
setups.png
setups.png (6.49 KiB) Viewed 667 times
leagcy.png
leagcy.png (14.54 KiB) Viewed 667 times
I have mentioned this to the developers so they can fix this issue as soon as possible.

Regards,

Ivan.

drthth
Posts: 16
Joined: 15 May 2023 06:28

Re: sprintf

#5 Post by drthth » 31 May 2023 01:31

Thank you Ivan, I'll try with the legacy. Meanwhile I helped me for my current use with the "uint16_2_str()" function but it is not so universal.

Post Reply

Return to “PIC32 AI Compilers”