Become a leader in the IoT community!
New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!
hi, @ifreakio the issue you’re facing is likely due to name mangling in C++. You can fix this by declaring the `_write` function with `extern “C”`, which makes sure the C standard library recognizes it correctly. This should get your SWV printf output working as expected
Thanks @darkai042 , I am gonna try using `extern “C”` to resolve the name mangling issue. Just to clarify, should I apply `extern “C”` to the `_write` function only, or are there other parts of the code that also need this adjustment in C++?
CONTRIBUTE TO THIS THREAD