Board index › Products › Audio Codec Shield

Error Compiling

12 posts · 13629 views

Error Compiling

by vaxon » Mon Jun 11, 2012 17:18 UTC
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

by guest » Tue Jun 12, 2012 00:59 UTC
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

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

Thanks!

Re: Error Compiling

by guest » Tue Jun 12, 2012 19:18 UTC
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

by guest » Thu Jun 14, 2012 07:20 UTC
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

by instantplaces » Mon Aug 13, 2012 22:34 UTC
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

by guest » Tue Aug 14, 2012 00:44 UTC
what is your setup?
arduino uno and arduino1.0?
ive only got a duemilanove handy
but will check on that

Re: Error Compiling

by instantplaces » Tue Aug 14, 2012 00:54 UTC
yes-- setup is arduino uno, arduino 1.0
osx 10.6.4

Re: Error Compiling

by guest » Tue Aug 14, 2012 01:00 UTC
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

by guest » Tue Aug 14, 2012 01:08 UTC
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

Re: Error Compiling

by instantplaces » Tue Aug 14, 2012 02:52 UTC
that was it-- needed to take libraries out of subfolder. thanks for your prompt replies!

Re: Error Compiling

by guest » Tue Aug 14, 2012 12:39 UTC
glad you got it working
and thanks for pointing out the problem