What does the error mean?

I want to link some obj files which compiled by IARC but it comes an error:

Entry "OSCtxSwCtr" in module os_core ( D:\Release\Obj\Os_core.r43 ) redefined in module
test ( D:\Release\Obj\Test.r43 )

What does the error mean?

jack_yangyueAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
KocilConnect With a Mentor Commented:
You have duplicate implementation (not prototype) of OSCtxSwCtr in both files of Os_core.c and Test.c.

Usually that because you include the c file in other c file. Check if in the Test.c there is the following line

#include "Os_core.c"

replace it with
#include "Os_core.h"





0
 
fridomCommented:
you have in both files a prototy for
OSCtxSWCtr

solutions (ups no C in there?)

well if it would e C the solutons would be
write extern OSCtxSWCtr in one of the files...

Regards
Friedrich
0
 
jack_yangyueAuthor Commented:
i have solved this problem by adding *.h to all the *.c
0
All Courses

From novice to tech pro — start learning today.