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

Thread: Faust IDE & Teensy4.1

  1. #1

    Faust IDE & Teensy4.1

    Trying to get a Faust code running on a teensy 4.1 but when I am compiling I get this error message:

    Code:
    Arduino: 1.8.15 (Mac OS X), TD: 1.54, Board: "Teensy 4.1, Serial, 600 MHz, Faster, US English"
    
    /var/folders/3v/4ljrlvr50vd_9fv8pjdyb0pw0000gn/T/arduino_build_669814/sketch/FaustSawtooth.cpp.cpp:1:1: error: stray '##' in program
     ##line 10 "/Users/Christian/Documents/Arduino/Faust Test/fausttest/FaustSawtooth/faustSawtooth.ino"
     ^
    /var/folders/3v/4ljrlvr50vd_9fv8pjdyb0pw0000gn/T/arduino_build_669814/sketch/FaustSawtooth.cpp.cpp:1:3: error: 'line' does not name a type
     ##line 10 "/Users/Christian/Documents/Arduino/Faust Test/fausttest/FaustSawtooth/faustSawtooth.ino"
       ^
    faustSawtooth:0: error: 'line' does not name a type
    In file included from /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4/WProgram.h:45:0,
                     from /var/folders/3v/4ljrlvr50vd_9fv8pjdyb0pw0000gn/T/arduino_build_669814/pch/Arduino.h:6,
                     from /Users/Christian/Documents/Arduino/Faust Test/fausttest/FaustSawtooth/FaustSawtooth.h:30,
                     from /Users/Christian/Documents/Arduino/Faust Test/fausttest/FaustSawtooth/faustSawtooth.ino:47:
    /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4/wiring.h:209:15: error: conflicting declaration of 'void loop()' with 'C' linkage
     void loop(void);
                   ^
    /Users/Christian/Documents/Arduino/Faust Test/fausttest/FaustSawtooth/faustSawtooth.ino:16:6: note: previous declaration with 'C++' linkage
     void loop() {
          ^
    Mehrere Bibliotheken wurden für "SD.h" gefunden
     Benutzt: /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/SD
     Nicht benutzt: /Applications/Teensyduino.app/Contents/Java/libraries/SD
    'line' does not name a type
    
    
    Dieser Bericht wäre detaillierter, wenn die Option
    "Ausführliche Ausgabe während der Kompilierung"
    in Datei -> Voreinstellungen aktiviert wäre.
    Here is the Code I am running:
    Code:
    #include <Audio.h>
    #include "FaustSawtooth.h"
    
    FaustSawtooth faustSawtooth;
    AudioOutputI2S out;
    AudioControlSGTL5000 audioShield;
    AudioConnection patchCord0(faustSawtooth,0,out,0);
    AudioConnection patchCord1(faustSawtooth,0,out,1);
    
    void setup() {
      AudioMemory(2);
      audioShield.enable();
      audioShield.volume(0.5);
    }
    
    void loop() {
      faustSawtooth.setParamValue("freq",random(50,1000));
      delay(50);
    }
    I created the .cpp and .h file from the online faust thing as explained in the tutorial and I also changed the ...gcc command to ...g++

  2. #2
    ... solved I had to rename the folder from /FaustSawtooth to /faustSawtooth ...

Posting Permissions

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