Thread: system() function.

  1. #1

    system() function.

    Are there any nessicary files to include when you use the system() function?

  2. #2
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    #include <stdlib.h> (i think), try the FAQ.
    Last edited by RoD; 12-24-2002 at 10:51 AM.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >Are there any nessicary files to include when you use the system() function?
    <stdlib.h> or <cstdlib>

    -Prelude
    My best code is written with the delete key.

  4. #4
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953
    Note:
    If you want to use a function you should either define it in your program, or include a library, where it is defined...

    So for sure you should include a file in order to use system(), or any other function, unless ofcourse you want to define it yourself.
    none...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 05-13-2011, 08:28 AM
  2. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. measuring system resources used by a function
    By Aran in forum C Programming
    Replies: 1
    Last Post: 03-13-2006, 05:35 PM
  5. I need help with passing pointers in function calls
    By vien_mti in forum C Programming
    Replies: 3
    Last Post: 04-24-2002, 10:00 AM