-
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!
-
-
thanks
-
>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