Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on Compiling C++ programs in the Shared & Semi-Dedicated forum
I can't seem to compile any C++ (or C for that matter) programs on the servers. I keep getting errors like this: jailshell-2.05a$ g++ ./text.cpp ...

  1. #1
    Loyal Client
    Join Date
    Sep 2001
    Location
    Wichita, KS
    Posts
    1,647

    Compiling C++ programs

    I can't seem to compile any C++ (or C for that matter) programs on the servers. I keep getting errors like this:
    jailshell-2.05a$ g++ ./text.cpp
    ./text.cpp:1:20: iostream: No such file or directory
    I don't understand why it doesn't work, iostream is a standard library. I tried including stdio, stdio.h, iostream, iostream.h and they all failed.

    Any ideas?

  2. #2
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Um... why do you have that './' in there? Why not just:
    Code:
    g++ text.cpp
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  3. #3
    Loyal Client
    Join Date
    Sep 2001
    Location
    Wichita, KS
    Posts
    1,647
    I tried that too same error.

  4. #4
    Loyal Client
    Join Date
    Sep 2001
    Location
    Wichita, KS
    Posts
    1,647
    Has anybody looked into this?

    The standard libraries are not working on my shell account.

    I'm trying to compile a Hello World program, straight from Bjarne Stroustrup's website. I mean, I'm pretty sure that the error isn't on my side...

    I don't have access to the ticket system, it's under my dad's reseller account.
    Last edited by mattsiegman; 09-05-2005 at 12:02 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •