system() function.

This is a discussion on system() function. within the C++ Programming forums, part of the General Programming Boards category; Are there any nessicary files to include when you use the system() function?...

  1. #1
    _ Munkey01's Avatar
    Join Date
    Dec 2002
    Posts
    280

    system() function.

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

  2. #2
    RoD
    RoD is offline
    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 09:51 AM.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >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, 02: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, 04: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

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