gcc and libs
Posted: Mon Feb 24, 2003 2:37 pm
Hello!
I have a problem wen try to compile my os. I wrote it on diferents .c files, and i create .h file to include as libs.
In my .h files I put:
#ifndef __NAME_H__
#define __NAME_H__
.
.
.
#endif
but when compile I get that very multiples definitions error. I have some vairables and array ( for control ) in some .h files. Could it be this?
I don't know how can i solve it, can anyone help me??
Thanks.
I have a problem wen try to compile my os. I wrote it on diferents .c files, and i create .h file to include as libs.
In my .h files I put:
#ifndef __NAME_H__
#define __NAME_H__
.
.
.
#endif
but when compile I get that very multiples definitions error. I have some vairables and array ( for control ) in some .h files. Could it be this?
I don't know how can i solve it, can anyone help me??
Thanks.