Project

General

Profile

SOLVED: liquidcrystal and jeelib

Added by spikie almost 4 years ago

Greetings all,

i was trying to use a simple lcd display on the jeenode using all the analog signals for it.
only thing is, even before its can compile and test it..
i got the problem from the arduino IDE

LiquidCrystal\LiquidCrystal.cpp.o: In function `Print':
I:\nieuwearduin\dus\arduino-1.6.0\libraries\LiquidCrystal\src/LiquidCrystal.cpp:297: multiple definition of `LiquidCrystal::pulseEnable()'
JeeLib\PortsLCD.cpp.o:I:\nieuwearduin\dus\arduino-1.6.0\libraries\JeeLib/PortsLCD.cpp:297: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
I:\nieuwearduin\dus\arduino-1.6.0\libraries\LiquidCrystal\src/LiquidCrystal.cpp:306: multiple definition of `LiquidCrystal::write4bits(unsigned char)'
JeeLib\PortsLCD.cpp.o:I:\nieuwearduin\dus\arduino-1.6.0\libraries\JeeLib/PortsLCD.cpp:306: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal::write8bits(unsigned char)':
I:\nieuwearduin\dus\arduino-1.6.0\libraries\LiquidCrystal\src/LiquidCrystal.cpp:315: multiple definition of `LiquidCrystal::write8bits(unsigned char)'
JeeLib\PortsLCD.cpp.o:I:\nieuwearduin\dus\arduino-1.6.0\libraries\JeeLib/PortsLCD.cpp:315: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal::send(unsigned char, unsigned char)':
I:\nieuwearduin\dus\arduino-1.6.0\libraries\LiquidCrystal\src/LiquidCrystal.cpp:281: multiple definition of `LiquidCrystal::send(unsigned char, unsigned char)'
JeeLib\PortsLCD.cpp.o:I:\nieuwearduin\dus\arduino-1.6.0\libraries\JeeLib/PortsLCD.cpp:281: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal::init(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
I:\nieuwearduin\dus\arduino-1.6.0\libraries\LiquidCrystal\src/LiquidCrystal.cpp:56: multiple definition of `LiquidCrystal::init(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
JeeLib\PortsLCD.cpp.o:I:\nieuwearduin\dus\arduino-1.6.0\libraries\JeeLib/PortsLCD.cpp:236: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
I:\nieuwearduin\dus\arduino-1.6.0\libraries\LiquidCrystal\src/LiquidCrystal.cpp:27: multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
JeeLib\PortsLCD.cpp.o:I:\nieuwearduin\dus\arduino-1.6.0\libraries\JeeLib/PortsLCD.cpp:210: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
I:\nieuwearduin\dus\arduino-1.6.0\libraries\LiquidCrystal\src/LiquidCrystal.cpp:27: multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
JeeLib\PortsLCD.cpp.o:I:\nieuwearduin\dus\arduino-1.6.0\libraries\JeeLib/PortsLCD.cpp:210: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
I:\nieuwearduin\dus\arduino-1.6.0\libraries\LiquidCrystal\src/LiquidCrystal.cpp:34: multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
JeeLib\PortsLCD.cpp.o:I:\nieuwearduin\dus\arduino-1.6.0\libraries\JeeLib/PortsLCD.cpp:216: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
I:\nieuwearduin\dus\arduino-1.6.0\libraries\LiquidCrystal\src/LiquidCrystal.cpp:34: multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
JeeLib\PortsLCD.cpp.o:I:\nieuwearduin\dus\arduino-1.6.0\libraries\JeeLib/PortsLCD.cpp:216: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
I:\nieuwearduin\dus\arduino-1.6.0\libraries\LiquidCrystal\src/LiquidCrystal.cpp:41: multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
JeeLib\PortsLCD.cpp.o:I:\nieuwearduin\dus\arduino-1.6.0\libraries\JeeLib/PortsLCD.cpp:222: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
I:\nieuwearduin\dus\arduino-1.6.0\libraries\LiquidCrystal\src/LiquidCrystal.cpp:41: multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
JeeLib\PortsLCD.cpp.o:I:\nieuwearduin\dus\arduino-1.6.0\libraries\JeeLib/PortsLCD.cpp:222: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
I:\nieuwearduin\dus\arduino-1.6.0\libraries\LiquidCrystal\src/LiquidCrystal.cpp:47: multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
JeeLib\PortsLCD.cpp.o:I:\nieuwearduin\dus\arduino-1.6.0\libraries\JeeLib/PortsLCD.cpp:228: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
I:\nieuwearduin\dus\arduino-1.6.0\libraries\LiquidCrystal\src/LiquidCrystal.cpp:47: multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
JeeLib\PortsLCD.cpp.o:I:\nieuwearduin\dus\arduino-1.6.0\libraries\JeeLib/PortsLCD.cpp:228: first defined here
collect2: error: ld returned 1 exit status

at the moment i only have this:

#include 
#include 
void setup(){

}

void loop(){

}

does anyone know the problem?

greets,

spikie


Replies (2)

RE: liquidcrystal and jeelib - Added by JohnO almost 4 years ago

I believe that the Jeelib already has support for LCD within it, perhaps this is conflicting with your use of #include .

RE: Solved : liquidcrystal and jeelib - Added by spikie almost 4 years ago

oh god that i didnt find that…
after search through the jeelibs.h, i founded;)

only what i noticed, you need to attach the PortsLCD.h library:)

thanks for the support!

    (1-2/2)