Skip to main content
phuccnp
Visitor II
December 19, 2012
Question

Cannot call functions from external source file !

  • December 19, 2012
  • 2 replies
  • 802 views
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?
    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    December 19, 2012
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    John F.
    Associate III
    December 19, 2012
    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.