Hello I am new to arduino programming
and After I read the create your library-tutorial I thought that I could make one.
So I took made all the prototypes of the functions of an already working sketch and
create a File.h, and removed the code setup() and loop() and saved as File.cpp
Saved both on Arduino_PATH/libraries/File/
imported it and by the IDE, and all variables that I used (global variables)
got this message:
File\File.cpp.o:(.data.a+0x0): multiple definition of `#var'
_7seg.cpp.o:(.data.a+0x0): first defined here
and then I tried to define them as extern to see, if it would help but all I got was more warnings..
Arduino_PATH\libraries\File/File.h:23: warning: 'g' initialized and declared 'extern'
extern int a = 7;
extern int b = 6;
extern int c = 5;
#define a lot of things