Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
Spresense SDK using IDE (VScode)
-
Hi there,
I am developing an applicaiton using Spresense SDK with VScode, able to create a project and loaded to the board and it is working. Next step is to incorporate the 'audio_pcm_capture_main.cxx' file in the audio_pcm_capture example. But it doesn't create a nuttx.spk file when I changed the 'main.c' to main.cxx. can you shed some light on how to add .cxx file in the current project?
Many thanks.,
Jithul -
Hi @JITHUL
If you want to use
main.cxx
instead ofmain.c
then you need to modify theMakefile
in the application folder:# Main source code MAINSRC = main.cxx
If you don't define it, the default is:
MAINSRC = $(APP_FOLDER_NAME)_main.c
Remember also to add a
extern "C"
before themain
function:extern "C" int main(int argc, char *argv[]) {
Best Regards,
Kamil Tomaszewski -
@kamiltomaszewski Thanks for your help, that worked!
-
I am a developer in a slightly different field, but your post helped me with some things, thank you