Thread: regarding headers

  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

  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,897
    >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