regarding headers

This is a discussion on regarding headers within the C++ Programming forums, part of the General Programming Boards category; I wrote a program that used the <ctime> header file. It compiled fine in Borland but when I compiled it ...

  1. #1
    Registered User nevermind's Avatar
    Join Date
    Oct 2002
    Posts
    23

    regarding headers

    I wrote a program that used the <ctime> header file. It compiled fine in Borland but when I compiled it in Unix it just wouldnt execute the time stuff (I am certain my code is right).

    What could I use that would be portable to most (read all) platforms?

    I understand that if I use headers from the standard C++ library it shouldnt have portability problems. Am I right?

    Thanks!
    "Cut the foreplay and just ask, man."

  2. #2
    Me want cookie! Monster's Avatar
    Join Date
    Dec 2001
    Posts
    680

  3. #3
    Registered User nevermind's Avatar
    Join Date
    Oct 2002
    Posts
    23

    thanks

    Cheers, Monster!

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >I understand that if I use headers from the standard C++ library it shouldnt have portability problems. Am I right?
    In theory. In practice you may use a compiler that doesn't conform to the most current standard in some areas and will choke on 100% ISO compliant code. Sometimes you have to dumb down your code so that it conforms to an older variant of the standard.

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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 06-18-2005, 02:26 PM
  2. im extreamly new help
    By rigo305 in forum C++ Programming
    Replies: 27
    Last Post: 04-23-2004, 11:22 PM
  3. include question
    By Wanted420 in forum C++ Programming
    Replies: 8
    Last Post: 10-17-2003, 03:49 AM
  4. Headers that use each other
    By nickname_changed in forum C++ Programming
    Replies: 7
    Last Post: 10-03-2003, 04:25 AM

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