DnaX / Samsung_16LF01_VFD

Arduino driver library for the Samsung 16LF01 series 16-segments VFD
GNU General Public License v3.0
11 stars 3 forks source link

"multiple definition of " errors #6

Closed redsunpost closed 8 months ago

redsunpost commented 8 months ago

Found the problem, something I did myself 🐰 The 2 files .h and .cpp were present in the project folder which gave a conflict when verifying the code. Newby error, hope it helps someone in the future :)

I stumbled upon your github here and wanted to try and get my VFD going, not sure what is going on is this an error in the library?

I'm using an arduino uno r4

thanks :)

error dump:

C:Users\Jan\AppData\Local\Temp\arduino\sketches\E7D5AA76006BB786EB919FB4AF5162B4\libraries\Samsung_16LF01_VFD\Samsung_16LF01_VFD.cpp.o: In function Samsung_16LF01_VFD::reset()': d:\Users\Jan\Documents\Arduino\libraries\Samsung_16LF01_VFD/Samsung_16LF01_VFD.cpp:127: multiple definition ofSamsung_16LF01_VFD::reset()' C:\Users\Jan\AppData\Local\Temp\arduino\sketches\E7D5AA76006BB786EB919FB4AF5162B4\sketch\Samsung_16LF01_VFD.cpp.o:D:\Users\Jan\Documents\Arduino\display_tester/Samsung_16LF01_VFD.cpp:127: first defined here C:Users\Jan\AppData\Local\Temp\arduino\sketches\E7D5AA76006BB786EB919FB4AF5162B4\libraries\Samsung_16LF01_VFD\Samsung_16LF01_VFD.cpp.o: In function Samsung_16LF01_VFD::sendCommand(unsigned char)': d:\Users\Jan\Documents\Arduino\libraries\Samsung_16LF01_VFD/Samsung_16LF01_VFD.cpp:136: multiple definition ofSamsung_16LF01_VFD::sendCommand(unsigned char)' C:\Users\Jan\AppData\Local\Temp\arduino\sketches\E7D5AA76006BB786EB919FB4AF5162B4\sketch\Samsung_16LF01_VFD.cpp.o:D:\Users\Jan\Documents\Arduino\display_tester/Samsung_16LF01_VFD.cpp:136: first defined here C:Users\Jan\AppData\Local\Temp\arduino\sketches\E7D5AA76006BB786EB919FB4AF5162B4\libraries\Samsung_16LF01_VFD\Samsung_16LF01_VFD.cpp.o: In function Samsung_16LF01_VFD::setCursor(unsigned char)': d:\Users\Jan\Documents\Arduino\libraries\Samsung_16LF01_VFD/Samsung_16LF01_VFD.cpp:80: multiple definition ofSamsung_16LF01_VFD::setCursor(unsigned char)' C:\Users\Jan\AppData\Local\Temp\arduino\sketches\E7D5AA76006BB786EB919FB4AF5162B4\sketch\Samsung_16LF01_VFD.cpp.o:D:\Users\Jan\Documents\Arduino\display_tester/Samsung_16LF01_VFD.cpp:80: first defined here C:Users\Jan\AppData\Local\Temp\arduino\sketches\E7D5AA76006BB786EB919FB4AF5162B4\libraries\Samsung_16LF01_VFD\Samsung_16LF01_VFD.cpp.o: In function Samsung_16LF01_VFD::clear()': d:\Users\Jan\Documents\Arduino\libraries\Samsung_16LF01_VFD/Samsung_16LF01_VFD.cpp:65: multiple definition ofSamsung_16LF01_VFD::clear()' C:\Users\Jan\AppData\Local\Temp\arduino\sketches\E7D5AA76006BB786EB919FB4AF5162B4\sketch\Samsung_16LF01_VFD.cpp.o:D:\Users\Jan\Documents\Arduino\display_tester/Samsung_16LF01_VFD.cpp:65: first defined here C:Users\Jan\AppData\Local\Temp\arduino\sketches\E7D5AA76006BB786EB919FB4AF5162B4\libraries\Samsung_16LF01_VFD\Samsung_16LF01_VFD.cpp.o: In function Samsung_16LF01_VFD::home()': d:\Users\Jan\Documents\Arduino\libraries\Samsung_16LF01_VFD/Samsung_16LF01_VFD.cpp:74: multiple definition ofSamsung_16LF01_VFD::home()' C:\Users\Jan\AppData\Local\Temp\arduino\sketches\E7D5AA76006BB786EB919FB4AF5162B4\sketch\Samsung_16LF01_VFD.cpp.o:D:\Users\Jan\Documents\Arduino\display_tester/Samsung_16LF01_VFD.cpp:74: first defined here C:Users\Jan\AppData\Local\Temp\arduino\sketches\E7D5AA76006BB786EB919FB4AF5162B4\libraries\Samsung_16LF01_VFD\Samsung_16LF01_VFD.cpp.o: In function Samsung_16LF01_VFD::setBrightness(unsigned char)': d:\Users\Jan\Documents\Arduino\libraries\Samsung_16LF01_VFD/Samsung_16LF01_VFD.cpp:102: multiple definition ofSamsung_16LF01_VFD::setBrightness(unsigned char)' C:\Users\Jan\AppData\Local\Temp\arduino\sketches\E7D5AA76006BB786EB919FB4AF5162B4\sketch\Samsung_16LF01_VFD.cpp.o:D:\Users\Jan\Documents\Arduino\display_tester/Samsung_16LF01_VFD.cpp:102: first defined here C:Users\Jan\AppData\Local\Temp\arduino\sketches\E7D5AA76006BB786EB919FB4AF5162B4\libraries\Samsung_16LF01_VFD\Samsung_16LF01_VFD.cpp.o: In function Samsung_16LF01_VFD::setDigitsCount(unsigned char)': d:\Users\Jan\Documents\Arduino\libraries\Samsung_16LF01_VFD/Samsung_16LF01_VFD.cpp:152: multiple definition ofSamsung_16LF01_VFD::setDigitsCount(unsigned char)' C:\Users\Jan\AppData\Local\Temp\arduino\sketches\E7D5AA76006BB786EB919FB4AF5162B4\sketch\Samsung_16LF01_VFD.cpp.o:D:\Users\Jan\Documents\Arduino\display_tester/Samsung_16LF01_VFD.cpp:152: first defined here C:Users\Jan\AppData\Local\Temp\arduino\sketches\E7D5AA76006BB786EB919FB4AF5162B4\libraries\Samsung_16LF01_VFD\Samsung_16LF01_VFD.cpp.o: In function Samsung_16LF01_VFD::begin(unsigned char, unsigned char)': d:\Users\Jan\Documents\Arduino\libraries\Samsung_16LF01_VFD/Samsung_16LF01_VFD.cpp:53: multiple definition ofSamsung_16LF01_VFD::begin(unsigned char, unsigned char)' C:\Users\Jan\AppData\Local\Temp\arduino\sketches\E7D5AA76006BB786EB919FB4AF5162B4\sketch\Samsung_16LF01_VFD.cpp.o:D:\Users\Jan\Documents\Arduino\display_tester/Samsung_16LF01_VFD.cpp:53: first defined here collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1