call to function without prototype

This is a discussion on call to function without prototype within the C Programming forums, part of the General Programming Boards category; Can anyone suggest the reasoning behind this kind of warning message? i am calling a function from within a function ...

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    1

    Question call to function without prototype

    Can anyone suggest the reasoning behind this kind of warning message? i am calling a function from within a function the prototypes are all defined at the top of the program.

    The warnings also relate to an unresolved external error in the functions that is says are missing prototypes

    Warning 3ringV5_2.c: Call to function 'wAllocated' with no prototype in function wavelengths
    Warning 3ringV5_2.c: Call to function 'check_w' with no prototype in function wavelengths

    Error: Unresolved external '_wAllocated' referenced from C:\MY DOCUMENTS\LOUISE\PROJECT\CODE\3RING\3RINGV5_2.OBJ
    Error: Unresolved external '_check_w' referenced from C:\MY DOCUMENTS\LOUISE\PROJECT\CODE\3RING\3RINGV5_2.OBJ

    Any suggestions welcome!

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,681
    You are mis-using those variables - the compiler thinks they are functions. Post the actual code (using code tags) if you need more help.

    gg

  3. #3
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    Or wAllocated and check_w are some way declared as global variables, but in a different filed not declared as external.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 06:54 PM
  2. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. <Gulp>
    By kryptkat in forum Windows Programming
    Replies: 7
    Last Post: 01-14-2006, 12:03 PM
  5. On the wrong track for a Function Prototype
    By Mohammed in forum C++ Programming
    Replies: 2
    Last Post: 08-01-2003, 01:16 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21