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

Thread: Teensyduino 1.54 SD Errors

  1. #1
    Senior Member
    Join Date
    Jul 2017
    Posts
    103

    Teensyduino 1.54 SD Errors

    Hi all, i'm having errors compiling on 3.6 using the built in sd, i tried compiling the "SD > Files" example which is exactly how i use the library on my sketches and also gets the same compile errors, it's mainling and redefinition error for File

    error: redefinition of 'class File' class File : public Stream {


    error: previous definition of 'class File' class File : public FatFile, public Stream {


    another common error is

    error: 'class SDClass' has no member named 'sdfs'

    Is there a workaround that i'm not aware of? i keep seeing that the SD library has a compatibility layer to work with old libraries but i can't get it work.

  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    9,054
    Tried that -> no problems.

    Please check if you have other versions of df.h or sdfat installed. if yes, delete them.

    If you have still problems, please post the output of verbose compile.

  3. #3
    Senior Member
    Join Date
    Jul 2014
    Posts
    3,316
    do you have some sdfat-beta or local sdfat libraries around?

  4. #4
    Senior Member
    Join Date
    Jul 2017
    Posts
    103
    I didn't even realized i had a local SDFAT library installed, removing it fixed the issues, thank you for your help!

  5. #5
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    9,054
    You see that in the compiler window

Posting Permissions

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