cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot call functions from external source file !

phuccnp
Associate
Posted on December 19, 2012 at 05:25

Hi all,

I am facing some  weird problems related function references. When I write a function that stored in the source file containing the main function, my program works properly. However, if I store it in a different source file and link to main file via ''include'' statement, the program cannot run. Can anybody help me to explain what happens?
2 REPLIES 2
Posted on December 19, 2012 at 06:07

Do you think you have provided enough information for someone else to duplicate your situation?

Suggest you provide some more context, like what tool chain, what errors, how the code looks, how the map file looks, how you've debugged into the code to understand why the transition doesn't work?
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
John F.
Senior
Posted on December 19, 2012 at 13:17

You probably need to ADD the file to your build so the compliler and linker use it. Read the guidance for your particular system or provide details as Clive asked.