What does the error mean?

Posted on 2003-03-11
Medium Priority
Last Modified: 2008-02-01
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?

Question by:jack_yangyue
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 24

Expert Comment

ID: 8117400
you have in both files a prototy for

solutions (ups no C in there?)

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


Accepted Solution

Kocil earned 100 total points
ID: 8117747
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"


Author Comment

ID: 8133261
i have solved this problem by adding *.h to all the *.c

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
Suggested Courses
Course of the Month12 days, 15 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question