forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ctime header compile errors

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
IMMigge



Joined: 15 Jan 2006
Posts: 1
Location: Landskrona, Sweden

PostPosted: Sun Jan 15, 2006 11:15 am    Post subject: ctime header compile errors Reply with quote

When I compile my program, I get this error:

psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -DPSP -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -DPSP -c -o Viewer.o Viewer.cpp
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/ctime:70: error: '::tm' has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/ctime:72: error: '::clock' has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/ctime:73: error: '::difftime' has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/ctime:74: error: '::mktime' has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/ctime:75: error: '::time' has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/ctime:76: error: '::asctime' has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/ctime:77: error: '::ctime' has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/ctime:78: error: '::gmtime' has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/ctime:79: error: '::localtime' has not been declared
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../include/c++/4.0.2/ctime:80: error: '::strftime' has not been declared
make: *** [Viewer.o] Error 1

I've searched around a bit, and it seems as it is quite a rare problem, which I find rather funny; surely somebody else must have got this problem sometime, if they use the same compiler? I have the latest PSPSDK installed.

I don't really understand it, but is has something to do with in what way header files are included; in the "ctime" header file, there's an include that includes the file "time.h", and it has something to do with the compiler and the way (or order) it includes system header files (or something like that). However, even though I've found similar problems when I googled, I haven't found a concrete way of solving this.

Any ideas?
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group