MrHaroldA / MS3

Library to connect to, query and control the Boss MS-3 and compatible devices like the Katana.
GNU General Public License v3.0
14 stars 3 forks source link

Multiple Includes-> Error #3

Closed bauerbyter closed 4 years ago

bauerbyter commented 4 years ago

First of all thank you for your work. I have only one problem, when I include your library in two different header files, it throws some errors. I looked through it and the Headerguards and all #endif are okay. Do you have an idea whats going on?

Errors: .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of Queue' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of dataOut2' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of bstr_G_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of bstr_R_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of bstr_Y_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of mod_G_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of mod_R_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of mod_Y_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of dd1_G_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of dd1_R_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of dd1_Y_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of fx_G_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of fx_R_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of fx_Y_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of rev_G_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of rev_R_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of rev_Y_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of dbug_data' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue': (.text+0x0): multiple definition of dbug_address' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here

bauerbyter commented 4 years ago

Found the Problem, moved the global variables into public.

MrHaroldA commented 4 years ago

These are the best issues; the ones that solve themselves ;)