Error Compiling C Code with Time and Date Functions.
anothermindbomb at gmail.com
Wed Dec 10 00:45:07 UTC 2008
On Tue, Dec 9, 2008 at 9:32 PM, Martin McCormick
<martin at dc.cis.okstate.edu> wrote:
> I portedd some code I had written in FreeBSD unix over to
> a new ubuntu-server system only to discover that none of the
> time and date functions compile in Linux but do so under
> FreeBSD. When referencing members of the structure timeptr such as
> (timeptr->tm_year - 100), (timeptr->tm_mon) + 1, timeptr->tm_mday);
> compilation finds an error every time. The following
> fragment will produce the error:
> "dereferencing pointer to incomplete type"
Without looking at your specifc issue (as you don't include the full
error messages and output), have you installed the 'build-essential'
When one person suffers from a delusion it is insanity. When many
people suffer from a delusion it is called religion.
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
More information about the ubuntu-users