error duplicate found...

hi to all,
I ude Dynamic C 9.62 with RCM3100

I’ve this error:

line    1 : ERROR MAIN.C       : Duplicate brdInit found in file C:\_SITEC\09030_CONTATORI_MBUS\STCM\LIB\RCM3100.C (previous one ignored).

in line 1 of main.c

/*********************************************************************************************************************************************************

in main I write this istruction


#use "rcm3100.c"           //Rabbit Core Module 3100
void main( )
{

	brdInit( );

	OSInit( );

        [....]
}

in rcm3100.c I have:


void brdInit( void ); //prototype

nodebug
void brdInit( void )
{
     inside there is the defition of I/O
}

and I don’t understand why, can someone help me, please?

thanks to all

You need to include the /*** BeginHeader / /** EndHeader */ wrappers in the library file e.g.:

/*** BeginHeader brdinit /
void brdInit( void ); //prototype
/
** EndHeader */
nodebug
void brdInit( void )
{
inside there is the defition of I/O
}

Regards,
Peter

thanks, I have include
/*** BeginHeader brdinit /
void brdInit( void ); //prototype
/
** EndHeader */
but the error is not change, i did 2 test

1
/*** BeginHeader brdInit,digIn,digOut */

void brdInit( void );
int digIn( int channel );
void digOut( int channel, int value );

/*** EndHeader */

2
/*** BeginHeader brdInit */

void brdInit( void );

/*** EndHeader */

/*** BeginHeader digIn */

int digIn( int channel );

/*** EndHeader */

/*** BeginHeader digOut */

void digOut( int channel, int value );

/*** EndHeader */

and the error not change ???

have you any other #use statements in main such as bl26xx.lib which may have a brdInit function in them?

Regards,
Peter

no, I tried the function throughout the project, and I found only in main.c and rcm3100.c

Reguards,
Luca

I open other projects, these projects did not have problems compiling, but now all they give me the same problem. So I unistalled and installed the Dynamic C, but nothing as changed. I think that the problem is in some configuration, but I don’t succeed in understanding what can be.
does someone know me to help?

regards
Luca

I have resolved copying all rcm3100.c in the main, but for me it is not a good solution

regards
Luca