This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

#include p0 redefinition

My project includes 24C16.c 24C16.h CS5532.C CS5532.H and main.c. The MCU I use is SyncMos company's SM8958A. Now I write

include <sm8958a.h>

in 24C16.h and CS5532.h sperately, then I write

#include "24C16.h"

and

#include "CS5532.h"

in main.c.
When I build target, like C:\KEIL\C51\INC\SYNCMOS\SM8958A.H(11): error C231: 'P0': redefinition etc. appear in Output Window.
Then I change the Device, I choose SM8052 and modify

include <sm8958a.h>

to

include <reg52.h>

,building and compiling are ok. Can you help me why the errors would appear when I use SM8958A and

include <sm8958a.h>

?

0