system()

This is a discussion on system() within the Linux Programming forums, part of the Platform Specific Boards category; for some odd reason when i compile this c++ program i get errors #include <iostream.h> int main() { system("telnet localhost"); ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    58

    system()

    for some odd reason when i compile this c++ program i get errors

    #include <iostream.h>

    int main()
    {
    system("telnet localhost");

    return 0;
    }

    any ideas?
    (using g++)
    --== www.NuclearWasteSite.com==--

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    You need to include <cstdlib> or <stdlib.h> depending on which one your compiler will accept.

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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File System Implementation
    By dodgeviper in forum C Programming
    Replies: 9
    Last Post: 11-16-2007, 12:04 PM
  2. Using system icons
    By @nthony in forum Windows Programming
    Replies: 1
    Last Post: 01-13-2007, 06:56 PM
  3. Linux database system needed
    By BobS0327 in forum Tech Board
    Replies: 7
    Last Post: 06-11-2006, 03:56 PM
  4. BIOS system and memory allocation problem
    By beely in forum Tech Board
    Replies: 9
    Last Post: 11-25-2003, 06:12 AM
  5. Number system base M, print numbers N digits wide...
    By biterman in forum C Programming
    Replies: 12
    Last Post: 11-19-2001, 03:31 AM

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