- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Compiler error 2513_D & 2393
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2009 12:06 PM
тАО01-12-2009 12:06 PM
Receiving compiler error:
"inflib.c", line 226: warning #2513-D: a value of type "int" cannot be
assigned to an entity of type "struct tm *"
tptr = localtime (&timeval);
THEN many:
"inflib.c", line 240: error #2393: pointer to incomplete class type is not
allowed
srcDir, fileName, dstDir, fileName, localExt, tptr->tm_year,
^
I've attached the source file.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2009 04:18 PM - edited тАО09-04-2011 09:49 PM
тАО01-12-2009 04:18 PM - edited тАО09-04-2011 09:49 PM
Solution>line 226: warning #2513-D: a value of type "int" cannot be assigned to an entity of type "struct tm *"
tptr = localtime (&timeval);
This means there is no prototype in scope for localtime(3). Which is strange since you include time.h.
line 240: error #2393: pointer to incomplete class type is not allowed
srcDir, fileName, dstDir, fileName, localExt, tptr->tm_year,
This means that you don't have a definition of tptr (struct tm) in scope, again problems with .
I don't have these problems. You can compile with -H to see which time.h you are including.
>I've attached the source file.
This is near useless since you forgot QwTypes.h & crefp.h. Creating a .i file with "-E -.i" would enable anyone to see what you were compiling.
- Tags:
- -H
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 06:26 AM
тАО01-13-2009 06:26 AM
Re: Compiler error 2513_D & 2393
/usr/include/sys/time.h does not have the missing prototypes.
/usr/include/sys/time.h is actually a "sub-include" of time.h.
Thanks,
George