Pages: [1]   Go Down
Author Topic: Error Compiling - Help please.  (Read 1986 times)
0 Members and 1 Guest are viewing this topic.
Reading, Berkshire
Offline Offline
Full Member
***
Karma: 2
Posts: 132
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Everyone,
Hope you're enjoying your Sundays.

Code:
#include <avr/io.h>
#include "config.h"
#include "filesys.h"
#include "player.h"
#include "vs10xx.h"
#include "record.h"
#include <SoftwareSerial.h>

SoftwareSerial mySerial(2, 3);//pin2-Rx,pin3-Tx(note: pin3 is actually later used as volume down input)

void setup()
{
  Serial.begin(9600);
  //Serial.println("Hello test!");
  mySerial.begin(19200);// used for receiving command data from the iPod dock.
  
  InitSPI();

  InitIOForVs10xx();

  InitIOForKeys();
  
  InitIOForLEDs();

  InitFileSystem();

  //VsSineTest();

  Mp3Reset();
  
}


void loop()
{
#if defined(__AVR_ATmega1280__)
   // If play/stop button is pressed during boot, enter recording.
   if (0== PSKey)
   {
   delay(20);
while(0 == PSKey);
delay(20);
        Record();
   }
#endif

   Play();

   while(1);
  
}


brings up this

Quote
In file included from C:\Program Files\arduino-1.0\libraries\music_v1_13/filesys.h:5,
                 from music.cpp:4:
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:5:22: error: WProgram.h: No such file or directory
In file included from C:\Program Files\arduino-1.0\libraries\music_v1_13/filesys.h:5,
                 from music.cpp:4:
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:19: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:20: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:21: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:22: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:52: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:53: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:56: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:58: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:61: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:73: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:74: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:75: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:76: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:77: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:78: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:89: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:90: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:91: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:92: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:93: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:94: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:95: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:108: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:109: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:112: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:114: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:117: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:129: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:130: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:131: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:132: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:133: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:134: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:145: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:146: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:147: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:148: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:149: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:150: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:151: error: 'byte' does not name a type
C:\Program Files\arduino-1.0\libraries\music_v1_13/buffer.h:158: error: 'byte' does not name a type
In file included from music.cpp:4:
C:\Program Files\arduino-1.0\libraries\music_v1_13/filesys.h:10: error: 'byte' does not name a type

When trying to upload the sample code for the Seeeduino music shield. Any idea what the problem is?

Thanks in advance, You're all ace.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 46113
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Any idea what the problem is?
Sure. That library is not compatible with Arduino 1.0. The key is this message:
Quote
error: WProgram.h: No such file or directory
That same message has been posted more than once.

To save you the trouble of searching, change WProgram.h to Arduino.h.
Logged

Reading, Berkshire
Offline Offline
Full Member
***
Karma: 2
Posts: 132
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Cheers for the reply.

This also helped.

http://www.jjoe64.com/2011/12/adk-arduino-wprogramh-not-found.html
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 19
Posts: 3114
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Reading the sticky called 'Read this before posting a programming question' would also have helped.

http://arduino.cc/forum/index.php/topic,97455.0.html
Logged

Pages: [1]   Go Up
Jump to: