Arduino libraries dont work with sanguino

so i recently put together a sanguino on my breadboard... everything works fine. until i try to upload a library to the sanguino, when that happens i get an error like

"{ expected before class in file (and then it gives the hex file for the library code)"

or something like that, im not with my stuff atm but can someone please help?

is there something i doing wrong? did i not put the right libraries in? or i there something else i should do?

Showing your program is the very least you can do for us to give you some help...

Not even saying which libraries to import is assuming we have very good guessing skills. That may be right, but not for me. Mine are pretty rusty at the moment. Sorry.

any sample sketch doesnt work.... u can look through any one. heres the error

In file included from DumpFile.cpp:20: C:\Users\Nik\Desktop\arduino-0022\libraries\SD/SD.h:26: error: expected class-name before '{' token

I modified my boards.txt to have a sanguino entry that was the same as an Arduino, except for the "build.mcu" setting, and the SD "datalogger" example compiled fine for me. What version of the Arduino code are you running, and what changes did you make to it? As far as I know, the Sanguino environment hasn't been updated for arduino-0022, and it probably needs to be...

yeah it hasn't. im running 0022 and i haven't modified it at all... i just added the sanguino folder to the hardware section... what exactly did u do? and was it for the arduino 0022?

I added the following to .../hardware/arduino/boards.txt:

##############################################################

sang.name=Arduino sang
sang.upload.protocol=stk500
sang.upload.maximum_size=32256
sang.upload.speed=115200
sang.bootloader.low_fuses=0xff
sang.bootloader.high_fuses=0xde
sang.bootloader.extended_fuses=0x05
sang.bootloader.path=optiboot
sang.bootloader.file=optiboot_atmega328.hex
sang.bootloader.unlock_bits=0x3F
sang.bootloader.lock_bits=0x0F
sang.build.mcu=atmega644p
sang.build.f_cpu=16000000L
sang.build.core=arduino

All this does is pass the build mcu type to the compiler when the sketch is compiled, but in arduino0022, most of the core will actually work on a very wide range of CPUs (thanks to Mark Sproul) (as per the release notes:

* Refactoring core to use register-based, not CPU-based, #ifdefs.
  Patch by Mark Sproul.
  http://code.google.com/p/arduino/issues/detail?id=307
  http://code.google.com/p/arduino/issues/detail?id=315
  http://code.google.com/p/arduino/issues/detail?id=316
  http://code.google.com/p/arduino/issues/detail?id=323
  http://code.google.com/p/arduino/issues/detail?id=324
  http://code.google.com/p/arduino/issues/detail?id=340

At least I think so. I can't find my Sanguino :-(

It still doesn’t work!! >.< i dont know whats wrong! this really pisses me off!! im trying to read from an sd card and send it via spi to an mp3 decoder and now i have to do it manually!

Revert to Arduino 0018 ?

couldn't i try to manipulate this code and get it the way i want?

yeah, but you sound pretty frustrated at this point. Are there sanguino forums somewhere?

Ahhh! ok so i got the fat16 library to work with the sanguino.! but is there a way to change the pins of the library because it was designed for the ethernet shield