Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/12/04 13:44
Read: times


 
#66577 - Problems with separate compilation
Responding to: ???'s previous message
Richard Hooper said:
I then decided to put all of the functions in their own header files.

NO!
Functions & variable definitions in .c files;
Prototypes & variable declarations in Header (.h) files.


when I try to compile, it wont give an error.

You mean it all compiles without errors, yes?

Does it also link without errors & warnings?

When i run the debug, it shows the program going crazy as soon as it comes across a call to a function.

Please be more specific - what actually happens?
Have you tried examining the disassembly listing, and stepping at the assembler level?

I have tried to put the prototyes for the functions in the main c file

NO!
See above.

Sounds like what you need is a good 'C' textbook.

None of this has anything specifically to do with Keil or the 8051.


List of 4 messages in thread
TopicAuthorDate
Problem compiling in Keil            01/01/70 00:00      
   Problems with separate compilation            01/01/70 00:00      
      RE: Problems with separate compilation            01/01/70 00:00      
         RE: Problems with separate compilation            01/01/70 00:00      

Back to Subject List