Cannot call functions from external source file !
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-12-18 08:25 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-12-18 09:07 PM
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..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-12-19 04:17 AM
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.
