what is an implicit declaration of a function...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • samdomville
    New Member
    • Jul 2008
    • 10

    what is an implicit declaration of a function...

    hello...upon compilation, i get a warning: "warning: implicit declaration of funciton funciton_name"

    what, techicallly, is an implicit declaration? how/where would i look to track down the error?

    im on linux btw.

    thanks!
    sam
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    I'd start with Google

    Comment

    • arnaudk
      Contributor
      • Sep 2007
      • 425

      #3
      It means you're using a function without having declared it, so the compiler assumes that you're implicitly declaring it, i.e. declaring it by just calling it.

      This can be because you mis-typed a function name, or forgot to include a header where it's declared, or just plain forgot to declare and define it yourself in the code such that it is declared in the scope where it is used. To track down the error look at the line number reported in the compiler warning.

      Comment

      • samdomville
        New Member
        • Jul 2008
        • 10

        #4
        Originally posted by arnaudk
        It means you're using a function without having declared it, so the compiler assumes that you're implicitly declaring it, i.e. declaring it by just calling it.

        This can be because you mis-typed a function name, or forgot to include a header where it's declared, or just plain forgot to declare and define it yourself in the code such that it is declared in the scope where it is used. To track down the error look at the line number reported in the compiler warning.

        thank you so much, this is the clarity i was looking for. :)

        Comment

        Working...