Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Silly C++ question re: "utility/dspinst.h"

  1. #1
    Member
    Join Date
    Sep 2020
    Location
    Massachusetts
    Posts
    50

    Silly C++ question re: "utility/dspinst.h"

    Hello,
    I'm trying to make a an Audio Object and I need to #include "utility/dspinst.h" .
    Path is not found. I am using the installer-installer Audio Library.

    I know this file is in the Audio Library, and I see source code in the library referencing it.

    How do I make this path, in quotation marks, work like a <library path> ? I do not want to clone the Audio Library and move my Audio Object into its path.

    I just tried simply adding #include <Audio.h> above #include "utility/dspinst.h" and it works.
    Is that good practice?

    I am really enjoying working with C++, but I'm rusty.

    Ben

  2. #2
    Junior Member
    Join Date
    Sep 2020
    Posts
    9
    I'm really surprised <utility/dspinst.h> doesn't work. "utility" is a subdir of arduino\hardware\teensy\avr\libraries\Audio and it already finds <Audio.h> in there so <utility/dspinst.h> should tell it to look for dspinst.h from the same base.

    (but then again I've never really understood the "mangling" that Arduino does on things like header searches )

  3. #3
    Member
    Join Date
    Sep 2020
    Location
    Massachusetts
    Posts
    50
    Ha, it probably does work.
    I just need to be schooled in modern C++.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •