Warning Message - Is it fixable ?

Posted on 2004-11-29
Last Modified: 2010-04-15


I'm getting the following warning after compiling with Borland:

Call to function 'exit' with no prototype in function main

Can I do anything to correct this ?
Question by:andyw27
    LVL 11

    Accepted Solution

    include the standard library headers:

    #include <stdlib.h>
    LVL 55

    Assisted Solution

    by:Jaime Olivares
    Hi andyw27,
    You will need to #include "stdlib.h" at the beggining of your file.
    Good luck,

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
    This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
    The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
    The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now