Warning Message: Undefined; Assuming extern returning int

This is a discussion on Warning Message: Undefined; Assuming extern returning int within the C++ Programming forums, part of the General Programming Boards category; Hi, Have downloaded a code from the internet that was originally to be used on a UNIX machine, have ran ...

  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, 12:57 PM
  2. Replies: 1
    Last Post: 10-27-2006, 02:21 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07: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, 04:00 PM
  5. A Simple (?) Problem
    By Unregistered in forum C++ Programming
    Replies: 8
    Last Post: 10-12-2001, 05:28 AM

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