Page 1 of 2

Error Compiling

PostPosted: Mon Jun 11, 2012 10:18 am
by vaxon
Hello,
For some reason the examples aren't compiling for me.

"
In file included from sine_generator.cpp:19:
E:\Program Files (x86)\arduino-1.0\libraries\AudioCodec/AudioCodec.h: In function 'void AudioCodec_init()':
E:\Program Files (x86)\arduino-1.0\libraries\AudioCodec/AudioCodec.h:159: error: 'wire' was not declared in this scope
"
Line 159 of AudioCodec.h is the first time is does wire.write. I tried adding #include <Wire.h> in AudioCodec.h but it didn't make a difference.

Using Arduino 1.0.
Wire.h and SPI.h are in the correct places. I can include them in other sketches.
I put the files in the Arduino libraries directory as well as "My Documents\Arduino\libraries\" as instructed in AudioCodec.h

Any Ideas?

Re: Error Compiling

PostPosted: Mon Jun 11, 2012 5:59 pm
by guest
we have 2 different arduino libraries
because arduino didnt make 1.0 backwards compatible

it looks like youre using arduino1.0
are you using the appropriate codecshield library?

Re: Error Compiling

PostPosted: Tue Jun 12, 2012 10:06 am
by vaxon
Tried all three zips for here and "AudioCodecNew.zip" worked. "AudioCodecNew1.zip" does not. Is it compatible with ardunio1?

Thanks!

Re: Error Compiling

PostPosted: Tue Jun 12, 2012 12:18 pm
by guest
i must have screwed something up when uploading new files
i will fix that

im glad you got it working
and thanks for finding that bug

Re: Error Compiling

PostPosted: Thu Jun 14, 2012 12:20 am
by guest
ok i think i fixed it
if you want to try using New1 again

i also found a few bugs in New while i was in there as well

Re: Error Compiling

PostPosted: Mon Aug 13, 2012 3:34 pm
by instantplaces
I'm having the same problem-- examples do not compile.

"sine_generator.pde:-1: error: 'AudioCodec_init' was not declared in this scope"

sine_generator.cpp:19:24: error: AudioCodec.h: No such file or directory
sine_generator.cpp:43:27: error: sinetable.inc: No such file or directory

Tried all 3 libraries in Documents/Arduino/libraries. Tried Arduino 1.0 and 1.0.1.

Re: Error Compiling

PostPosted: Mon Aug 13, 2012 5:44 pm
by guest
what is your setup?
arduino uno and arduino1.0?
ive only got a duemilanove handy
but will check on that

Re: Error Compiling

PostPosted: Mon Aug 13, 2012 5:54 pm
by instantplaces
yes-- setup is arduino uno, arduino 1.0
osx 10.6.4

Re: Error Compiling

PostPosted: Mon Aug 13, 2012 6:00 pm
by guest
just verified that the libraries up on the wiki
work with arduino1.0 on a duemilanove

i remember the libraries folder being difficult to find on osx
is the sine generator sketch showing up under file->libraries->examples?

Re: Error Compiling

PostPosted: Mon Aug 13, 2012 6:08 pm
by guest
just checked on an uno
and that worked as well

i noticed that the libraries are in a subfolder inside the zip file
be sure to take the library out of the subfolder
when moving it into the library directory

i will fix that on the wiki page
as it might cause some confusion