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 file

hello everyone,
i am writing a program for c8051f020,in which i have 4 ".c" files: main c file,keyroutine file, general routines files,confguration file

i separated bit addressable, data addressable, functions, #defines in separate header files

i included these header files in respective ".c" file

but i am getting following error in linking

1. public refers to ignored segment
2.address space overflow both for data as well as bit memory
3.multiple public definitions

i have put all ".c" files for build
shall i continue or main c file should be put for building

if i do so then for debugging i will not be able to put breakpoint in other c files

can you tell me how to include c file in another c file

for further details pls let me know

thank you all
take care

Parents
  • Yes, you answered the question - unfortunately, it was the wrong question.

    While it is true that you can include one 'C' file within another like that, it is almost certainly not a good way to proceed.

    As already noted, get a 'C' textbook; this is standard 'C' programming practice - nothing specifically to do with Keil.

Reply
  • Yes, you answered the question - unfortunately, it was the wrong question.

    While it is true that you can include one 'C' file within another like that, it is almost certainly not a good way to proceed.

    As already noted, get a 'C' textbook; this is standard 'C' programming practice - nothing specifically to do with Keil.

Children
No data