Thread: Warning Message: Undefined; Assuming extern returning int

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    3

    Warning Message: Undefined; Assuming extern returning int

    Hi,

    Have downloaded a code from the internet that was originally to be used on a UNIX machine, have ran in with Microsoft Visual C++ and although there are no errors, I have 7 warnings all with the same ending:

    undefined; assuming extern returning int.

    Is there a simple reason i'm missing for this?

    Thanks

    Alan Homer

  2. #2
    Bond sunnypalsingh's Avatar
    Join Date
    Oct 2005
    Posts
    162
    Compiler Warning (level 3) C4013
    'function' undefined; assuming extern returning int

    An undefined function was called. The compiler assumed an external function that returned an int type.

    Make sure that the function name is spelled correctly. All external functions should be prototyped as extern


    Note:Next time remember to post the code also

  3. #3
    Bond sunnypalsingh's Avatar
    Join Date
    Oct 2005
    Posts
    162
    After the compiler warning....there will be a linker error if linker doesn't find that function

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 03-10-2008, 11:57 AM
  2. Replies: 1
    Last Post: 10-27-2006, 01:21 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  5. A Simple (?) Problem
    By Unregistered in forum C++ Programming
    Replies: 8
    Last Post: 10-12-2001, 04:28 AM