🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Erik van Linstee Sun, 08 Nov 1992 11:06
timezone, daylight and tzname problem
#1300
Author: Erik van Linstee
Date: Sun, 08 Nov 1992 11:06
29 lines
1594 bytes
Yesterday I had a problem compiling P2C with gcc. I wanted to
do this using -Zomf -Zmt. The result was an error stating
timezone, daylight and tzname where multiple declared in
trans.obj. Without -Zomf it worked fine, so I assume it must
have been link386.
Eventually I traced it back to the fact that <sys/time.h>
was included in out.c and <time.h> in trans.c As known
time.h declares timezone, etc, whereas sys/time.h declares
struct timezone (or vice versa, I forget). I do not not if
this has anything to do with the problem, but I do know that
removing <time.h> from trans.c resulted in a succesful compile
and link.

The ultimate goal I had in mind was to reduce the exe size,
which -Zomf -Zmt has done for every other app. I recompiled sofar,
but it did actually create a larger exe for P2C. Too bad.

Anyway, maybe someone knows whats up with this timezone business.


Erik



-- 
Erik van Linstee   |   Delft University of Technology   |   I'll be back ... 
----
   We are god, 'cause only we can create the idea of his existence
   in our holy brains...  (Yello)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads