Pages: [1]   Go Down
Author Topic: TVOUT COMPILER ERROR  (Read 837 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is the code:
Quote
#include "TVout.h"
#include "fontALL.h"
#include "schematic.h"
#include "TVOlogo.h"


TVout TV;

int zOff = 150;
int xOff = 0;
int yOff = 0;
int cSize = 50;
int view_plane = 64;
float angle = PI/60;

float cube3d[8][3] = {
  {xOff - cSize,yOff + cSize,zOff - cSize},
  {xOff + cSize,yOff + cSize,zOff - cSize},
  {xOff - cSize,yOff - cSize,zOff - cSize},
  {xOff + cSize,yOff - cSize,zOff - cSize},
  {xOff - cSize,yOff + cSize,zOff + cSize},
  {xOff + cSize,yOff + cSize,zOff + cSize},
  {xOff - cSize,yOff - cSize,zOff + cSize},
  {xOff + cSize,yOff - cSize,zOff + cSize}
};
unsigned char cube2d[8][2];


void setup() {
  TV.begin(NTSC,120,96);
  TV.select_font(font6x8);
  intro();
  TV.println("I am the TVout\nlibrary running on a freeduino\n");
  TV.delay(2500);
  TV.println("I generate a PAL\nor NTSC composite  video using\ninterrupts\n");
  TV.delay(2500);
  TV.println("My schematic:");
  TV.delay(1500);
  TV.bitmap(0,0,schematic);
  TV.delay(10000);
  TV.clear_screen();
  TV.println("Lets see what\nwhat I can do");
  TV.delay(2000);
 
  //fonts
  TV.clear_screen();
  TV.println(0,0,"Multiple fonts:");
  TV.select_font(font4x6);
  TV.println("4x6 font FONT");
  TV.select_font(font6x8);
  TV.println("6x8 font FONT");
  TV.select_font(font8x8);
  TV.println("8x8 font FONT");
  TV.select_font(font6x8);
  TV.delay(2000);
 
  TV.clear_screen();
  TV.print(9,44,"Draw Basic Shapes");
  TV.delay(2000);
 
  //circles
  TV.clear_screen();
  TV.draw_circle(TV.hres()/2,TV.vres()/2,TV.vres()/3,WHITE);
  TV.delay(500);
  TV.draw_circle(TV.hres()/2,TV.vres()/2,TV.vres()/2,WHITE,INVERT);
  TV.delay(2000);
 
  //rectangles and lines
  TV.clear_screen();
  TV.draw_rect(20,20,80,56,WHITE);
  TV.delay(500);
  TV.draw_rect(10,10,100,76,WHITE,INVERT);
  TV.delay(500);
  TV.draw_line(60,20,60,76,INVERT);
  TV.draw_line(20,48,100,48,INVERT);
  TV.delay(500);
  TV.draw_line(10,10,110,86,INVERT);
  TV.draw_line(10,86,110,10,INVERT);
  TV.delay(2000);
 
  //random cube forever.
  TV.clear_screen();
  TV.print(16,40,"Random Cube");
  TV.print(28,48,"Rotation");
  TV.delay(2000);
 
  randomSeed(analogRead(0));
}

void loop() {
  int rsteps = random(10,60);
  switch(random(6)) {
    case 0:
      for (int i = 0; i < rsteps; i++) {
        zrotate(angle);
        printcube();
      }
      break;
    case 1:
      for (int i = 0; i < rsteps; i++) {
        zrotate(2*PI - angle);
        printcube();
      }
      break;
    case 2:
      for (int i = 0; i < rsteps; i++) {
        xrotate(angle);
        printcube();
      }
      break;
    case 3:
      for (int i = 0; i < rsteps; i++) {
        xrotate(2*PI - angle);
        printcube();
      }
      break;
    case 4:
      for (int i = 0; i < rsteps; i++) {
        yrotate(angle);
        printcube();
      }
      break;
    case 5:
      for (int i = 0; i < rsteps; i++) {
        yrotate(2*PI - angle);
        printcube();
      }
      break;
  }
}

void intro() {
unsigned char w,l,wb;
  int index;
  w = pgm_read_byte(TVOlogo);
  l = pgm_read_byte(TVOlogo+1);
  if (w&7)
    wb = w/8 + 1;
  else
    wb = w/8;
  index = wb*(l-1) + 2;
  for ( unsigned char i = 1; i < l; i++ ) {
    TV.bitmap((TV.hres() - w)/2,0,TVOlogo,index,w,i);
    index-= wb;
    TV.delay(50);
  }
  for (unsigned char i = 0; i < (TV.vres() - l)/2; i++) {
    TV.bitmap((TV.hres() - w)/2,i,TVOlogo);
    TV.delay(50);
  }
  TV.delay(3000);
  TV.clear_screen();
}

void printcube() {
  //calculate 2d points
  for(byte i = 0; i < 8; i++) {
    cube2d
  • = (unsigned char)((cube3d
    • * view_plane / cube3d[2]) + (TV.hres()/2));
        cube2d[1] = (unsigned char)((cube3d[1] * view_plane / cube3d[2]) + (TV.vres()/2));
      }
      TV.delay_frame(1);
      TV.clear_screen();
      draw_cube();
    }

    void zrotate(float q) {
      float tx,ty,temp;
      for(byte i = 0; i < 8; i++) {
        tx = cube3d
    • - xOff;
        ty = cube3d[1] - yOff;
        temp = tx * cos(q) - ty * sin(q);
        ty = tx * sin(q) + ty * cos(q);
        tx = temp;
        cube3d
    • = tx + xOff;
        cube3d[1] = ty + yOff;
      }
    }

    void yrotate(float q) {
      float tx,tz,temp;
      for(byte i = 0; i < 8; i++) {
        tx = cube3d
    • - xOff;
        tz = cube3d[2] - zOff;
        temp = tz * cos(q) - tx * sin(q);
        tx = tz * sin(q) + tx * cos(q);
        tz = temp;
        cube3d
    • = tx + xOff;
        cube3d[2] = tz + zOff;
      }
    }

    void xrotate(float q) {
      float ty,tz,temp;
      for(byte i = 0; i < 8; i++) {
        ty = cube3d[1] - yOff;
        tz = cube3d[2] - zOff;
        temp = ty * cos(q) - tz * sin(q);
        tz = ty * sin(q) + tz * cos(q);
        ty = temp;
        cube3d[1] = ty + yOff;
        cube3d[2] = tz + zOff;
      }
    }

    void draw_cube() {
      TV.draw_line(cube2d[0][0],cube2d[0][1],cube2d[1][0],cube2d[1][1],WHITE);
      TV.draw_line(cube2d[0][0],cube2d[0][1],cube2d[2][0],cube2d[2][1],WHITE);
      TV.draw_line(cube2d[0][0],cube2d[0][1],cube2d[4][0],cube2d[4][1],WHITE);
      TV.draw_line(cube2d[1][0],cube2d[1][1],cube2d[5][0],cube2d[5][1],WHITE);
      TV.draw_line(cube2d[1][0],cube2d[1][1],cube2d[3][0],cube2d[3][1],WHITE);
      TV.draw_line(cube2d[2][0],cube2d[2][1],cube2d[6][0],cube2d[6][1],WHITE);
      TV.draw_line(cube2d[2][0],cube2d[2][1],cube2d[3][0],cube2d[3][1],WHITE);
      TV.draw_line(cube2d[4][0],cube2d[4][1],cube2d[6][0],cube2d[6][1],WHITE);
      TV.draw_line(cube2d[4][0],cube2d[4][1],cube2d[5][0],cube2d[5][1],WHITE);
      TV.draw_line(cube2d[7][0],cube2d[7][1],cube2d[6][0],cube2d[6][1],WHITE);
      TV.draw_line(cube2d[7][0],cube2d[7][1],cube2d[3][0],cube2d[3][1],WHITE);
      TV.draw_line(cube2d[7][0],cube2d[7][1],cube2d[5][0],cube2d[5][1],WHITE);
    }

I receive the following errors

In file included from DemoNTSC.ino:1:
/TVout.h:40:23: error: video_gen.h: No such file or directory
/TVout.h:41:33: error: spec/hardware_setup.h: No such file or directory
/TVout.h:42:35: error: spec/video_properties.h: No such file or directory
« Last Edit: January 26, 2013, 04:21:02 pm by jbdelutis » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is the tvout.h library code:
Quote
/*
Copyright (c) 2010 Myles Metzer

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/
/*
This library provides a simple method for outputting data to a tv
from a frame buffer stored in sram.  This implementation is done
completly by interupt and will return give as much cpu time to the
application as possible.
*/
#ifndef TVOUT_H
#define TVOUT_H

#include <stdint.h>
#include <avr/io.h>
#include <avr/pgmspace.h>
#include <avr/interrupt.h>
#include <stdlib.h>

#include "video_gen.h"
#include "spec/hardware_setup.h"
#include "spec/video_properties.h"

// macros for readability when selecting mode.
#define PAL                  1
#define   NTSC               0
#define _PAL               1
#define _NTSC               0

#define WHITE               1
#define BLACK               0
#define INVERT               2

#define UP                  0
#define DOWN               1
#define LEFT               2
#define RIGHT               3

#define DEC 10
#define HEX 16
#define OCT 8
#define BIN 2
#define BYTE 0

// Macros for clearer usage
#define clear_screen()            fill(0)
#define invert(color)            fill(2)

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Continued because of character limit:
Quote

/*
TVout.cpp contains a brief expenation of each function.
*/
class TVout {
public:
   uint8_t * screen;
   
   char begin(uint8_t mode);
   char begin(uint8_t mode, uint8_t x, uint8_t y);
   void end();
   
   //accessor functions
   unsigned char hres();
   unsigned char vres();
   char char_line();
   
   //flow control functions
   void delay(unsigned int x);
   void delay_frame(unsigned int x);
   unsigned long millis();
   
   //override setup functions
   void force_vscale(char sfactor);
   void force_outstart(uint8_t time);
   void force_linestart(uint8_t line);
   
   //basic rendering functions
   void set_pixel(uint8_t x, uint8_t y, char c);
   unsigned char get_pixel(uint8_t x, uint8_t y);
   void fill(uint8_t color);
   void shift(uint8_t distance, uint8_t direction);
   void draw_line(uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1, char c);
   void draw_row(uint8_t line, uint16_t x0, uint16_t x1, uint8_t c);
   void draw_column(uint8_t row, uint16_t y0, uint16_t y1, uint8_t c);
   void draw_rect(uint8_t x0, uint8_t y0, uint8_t w, uint8_t h, char c, char fc = -1);
   void draw_circle(uint8_t x0, uint8_t y0, uint8_t radius, char c, char fc = -1);
   void bitmap(uint8_t x, uint8_t y, const unsigned char * bmp, uint16_t i = 0, uint8_t width = 0, uint8_t lines = 0);
   
   //hook setup functions
   void set_vbi_hook(void (*func)());
   void set_hbi_hook(void (*func)());

   //tone functions
   void tone(unsigned int frequency, unsigned long duration_ms);
   void tone(unsigned int frequency);
   void noTone();
   
//The following function definitions can be found in TVoutPrint.cpp
//printing functions
   void print_char(uint8_t x, uint8_t y, unsigned char c);
   void set_cursor(uint8_t, uint8_t);
   void select_font(const unsigned char * f);

    void write(uint8_t);
    void write(const char *str);
    void write(const uint8_t *buffer, uint8_t size);



Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Continued again because of character limit:
Quote
    void print(const char[]);
    void print(char, int = BYTE);
    void print(unsigned char, int = BYTE);
    void print(int, int = DEC);
    void print(unsigned int, int = DEC);
    void print(long, int = DEC);
    void print(unsigned long, int = DEC);
    void print(double, int = 2);
   
   void print(uint8_t, uint8_t, const char[]);
   void print(uint8_t, uint8_t, char, int = BYTE);
   void print(uint8_t, uint8_t, unsigned char, int = BYTE);
   void print(uint8_t, uint8_t, int, int = DEC);
   void print(uint8_t, uint8_t, unsigned int, int = DEC);
   void print(uint8_t, uint8_t, long, int = DEC);
   void print(uint8_t, uint8_t, unsigned long, int = DEC);
   void print(uint8_t, uint8_t, double, int = 2);
   
   void println(uint8_t, uint8_t, const char[]);
    void println(uint8_t, uint8_t, char, int = BYTE);
    void println(uint8_t, uint8_t, unsigned char, int = BYTE);
    void println(uint8_t, uint8_t, int, int = DEC);
    void println(uint8_t, uint8_t, unsigned int, int = DEC);
    void println(uint8_t, uint8_t, long, int = DEC);
    void println(uint8_t, uint8_t, unsigned long, int = DEC);
    void println(uint8_t, uint8_t, double, int = 2);
    void println(uint8_t, uint8_t);

    void println(const char[]);
    void println(char, int = BYTE);
    void println(unsigned char, int = BYTE);
    void println(int, int = DEC);
    void println(unsigned int, int = DEC);
    void println(long, int = DEC);
    void println(unsigned long, int = DEC);
    void println(double, int = 2);
    void println(void);
   
   void printPGM(const char[]);
   void printPGM(uint8_t, uint8_t, const char[]);
   
private:
   uint8_t cursor_x,cursor_y;
   const unsigned char * font;
   
   void inc_txtline();
    void printNumber(unsigned long, uint8_t);
    void printFloat(double, uint8_t);
};

static void inline sp(unsigned char x, unsigned char y, char c);
#endif
Logged

East Anglia (UK)
Offline Offline
Faraday Member
**
Karma: 118
Posts: 4398
May all of your blinks be without delay()
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you got the header files that the errors refer to and, if so, where are they located ?
Logged

Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok I have moved the folder to libraries and get this error

TVout\TVout.cpp.o: In function `TVout::fill(unsigned char)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:109: multiple definition of `TVout::fill(unsigned char)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:109: first defined here
TVout\TVout.cpp.o: In function `TVout::hres()':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:136: multiple definition of `TVout::hres()'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:136: first defined here
TVout\TVout.cpp.o: In function `TVout::vres()':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:148: multiple definition of `TVout::vres()'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:148: first defined here
TVout\TVout.cpp.o: In function `TVout::char_line()':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:158: multiple definition of `TVout::char_line()'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:158: first defined here
TVout\TVout.cpp.o: In function `TVout::delay_frame(unsigned int)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:183: multiple definition of `TVout::delay_frame(unsigned int)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:183: first defined here
TVout\TVout.cpp.o: In function `TVout::millis()':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:199: multiple definition of `TVout::millis()'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:199: first defined here
TVout\TVout.cpp.o: In function `TVout::delay(unsigned int)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:169: multiple definition of `TVout::delay(unsigned int)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:169: first defined here
TVout\TVout.cpp.o: In function `TVout::delay_frame(unsigned int)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:183: multiple definition of `TVout::force_vscale(char)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:183: first defined here
TVout\TVout.cpp.o: In function `TVout::delay_frame(unsigned int)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:183: multiple definition of `TVout::force_outstart(unsigned char)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:183: first defined here
TVout\TVout.cpp.o: In function `TVout::delay_frame(unsigned int)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:183: multiple definition of `TVout::force_linestart(unsigned char)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:183: first defined here
TVout\TVout.cpp.o: In function `TVout::get_pixel(unsigned char, unsigned char)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:278: multiple definition of `TVout::get_pixel(unsigned char, unsigned char)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:278: first defined here
TVout\TVout.cpp.o: In function `TVout::bitmap(unsigned char, unsigned char, unsigned char const*, unsigned int, unsigned char, unsigned char)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:605: multiple definition of `TVout::bitmap(unsigned char, unsigned char, unsigned char const*, unsigned int, unsigned char, unsigned char)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:605: first defined here
TVout\TVout.cpp.o: In function `TVout::shift(unsigned char, unsigned char)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:669: multiple definition of `TVout::shift(unsigned char, unsigned char)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:669: first defined here
TVout\TVout.cpp.o: In function `TVout::set_pixel(unsigned char, unsigned char, char)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:256: multiple definition of `TVout::set_pixel(unsigned char, unsigned char, char)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:256: first defined here
TVout\TVout.cpp.o: In function `TVout::draw_column(unsigned char, unsigned int, unsigned int, unsigned char)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:441: multiple definition of `TVout::draw_column(unsigned char, unsigned int, unsigned int, unsigned char)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:441: first defined here
TVout\TVout.cpp.o: In function `TVout::draw_row(unsigned char, unsigned int, unsigned int, unsigned char)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:387: multiple definition of `TVout::draw_row(unsigned char, unsigned int, unsigned int, unsigned char)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:387: first defined here
TVout\TVout.cpp.o: In function `TVout::draw_circle(unsigned char, unsigned char, unsigned char, char, char)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:530: multiple definition of `TVout::draw_circle(unsigned char, unsigned char, unsigned char, char, char)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:530: first defined here
TVout\TVout.cpp.o: In function `TVout::draw_line(unsigned char, unsigned char, unsigned char, unsigned char, char)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:301: multiple definition of `TVout::draw_line(unsigned char, unsigned char, unsigned char, unsigned char, char)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:301: first defined here
TVout\TVout.cpp.o: In function `TVout::draw_rect(unsigned char, unsigned char, unsigned char, unsigned char, char, char)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:500: multiple definition of `TVout::draw_rect(unsigned char, unsigned char, unsigned char, unsigned char, char, char)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:500: first defined here
TVout\TVout.cpp.o: In function `TVout::set_vbi_hook(void (*)())':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:769: multiple definition of `TVout::set_vbi_hook(void (*)())'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:769: first defined here
TVout\TVout.cpp.o: In function `TVout::set_hbi_hook(void (*)())':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:782: multiple definition of `TVout::set_hbi_hook(void (*)())'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:782: first defined here
TVout\TVout.cpp.o: In function `TVout::tone(unsigned int, unsigned long)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:807: multiple definition of `TVout::tone(unsigned int, unsigned long)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:807: first defined here
TVout\TVout.cpp.o: In function `TVout::tone(unsigned int)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:794: multiple definition of `TVout::tone(unsigned int)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:794: first defined here
TVout\TVout.cpp.o: In function `TVout::noTone()':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:875: multiple definition of `TVout::noTone()'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:875: first defined here
TVout\TVout.cpp.o: In function `TVout::end()':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:96: multiple definition of `TVout::end()'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:96: first defined here
TVout\TVout.cpp.o: In function `TVout::begin(unsigned char, unsigned char, unsigned char)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:74: multiple definition of `TVout::begin(unsigned char, unsigned char, unsigned char)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:74: first defined here
TVout\TVout.cpp.o: In function `TVout::begin(unsigned char)':
C:\Users\Quick\Desktop\arduino\arduino-1.0.3\libraries\TVout/TVout.cpp:50: multiple definition of `TVout::begin(unsigned char)'
TVout.cpp.o:C:\Users\Quick\AppData\Local\Temp\build7723248887771758841.tmp/TVout.cpp:50: first defined here
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you got the header files that the errors refer to and, if so, where are they located ?

They are in libraries\TVout\examples\DemoNSTC

I noticed \appdata\temp in the updated errors so would rebooting my computer help
Logged

East Anglia (UK)
Offline Offline
Faraday Member
**
Karma: 118
Posts: 4398
May all of your blinks be without delay()
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If I have it right, user installed libraries should be in a folder named libraries which is in the same place that your sketch folders. 

libraries\TVout\examples\DemoNSTC sounds a strange place for the header files.

NOTE - there are 2 libraries folders that arise from the installation of the IDE.  One is as noted above and the other is under Program Files and is where the system libraries are placed by the installation.
Logged

Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Global Moderator
Melbourne, Australia
Online Online
Brattain Member
*****
Karma: 511
Posts: 19332
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Just a heads-up. You can attach documents to a forum posting (click "Additional options"). If you have multiple files you can zip them together and attach the zip.
Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 310
Posts: 26626
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The code in the first post obviously can never compile (take a close look at "printcube" - which is why we ask for code tags, not quote tags), but try
Code:
#include <TVout.h>
#include <fontALL.h>
#include "schematic.h"
#include "TVOlogo.h"
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Pages: [1]   Go Up
Jump to: