Sony's Developer World forum

    • Home
    • Forum guidelines

    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)

    Spresense
    3
    4
    1629
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JITHUL last edited by

      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

      1 Reply Last reply Reply Quote
      • K
        KamilTomaszewski DeveloperWorld last edited by

        Hi @JITHUL

        If you want to use main.cxx instead of main.c then you need to modify the Makefile 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 the main function:

        extern "C" int main(int argc, char *argv[])
        {
        

        Best Regards,
        Kamil Tomaszewski

        J 1 Reply Last reply Reply Quote
        • J
          JITHUL @KamilTomaszewski last edited by

          @kamiltomaszewski Thanks for your help, that worked!

          1 Reply Last reply Reply Quote
          • LilyManning
            LilyManning last edited by LilyManning

            I am a developer in a slightly different field, but your post helped me with some things, thank you 👍

            1 Reply Last reply Reply Quote
            • First post
              Last post
            Developer World
            Copyright © 2021 Sony Group Corporation. All rights reserved.
            • Contact us
            • Legal