- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: error #2513: a value of type "void *" cannot b...
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
тАО12-16-2008 02:06 PM
тАО12-16-2008 02:06 PM
error #2513: a value of type "void *" cannot be assigned to an entity of type ...
bash-2.04# aCC -V
aCC: HP C/aC++ B3910B A.06.20 [May 13 2008]
and I keep getting these casting related error messages. Is there a way to make this compiler "less strict" or treat these as warnings. The same code wouldn't generate this error message on other platforms like AIX using Xlc
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2008 02:20 PM
тАО12-16-2008 02:20 PM
Re: error #2513: a value of type "void *" cannot be assigned to an entity of type ...
No, this has always been illegal in C++, though legal in C.
>The same code wouldn't generate this error message on other platforms like AIX using Xlc
You better get a message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2008 02:27 PM
тАО12-16-2008 02:27 PM
Re: error #2513: a value of type "void *" cannot be assigned to an entity of type ...
would have been a nice touch here. Or even
a complete actual error message. (I can't
help wondering which type that is, but if
you're too lazy to say, then I'm too lazy to
start guessing.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2008 03:09 PM
тАО12-16-2008 03:09 PM
Re: error #2513: a value of type "void *" cannot be assigned to an entity of type ...
error #2513: a value of type "void *" cannot be assigned to an entity of type "char *"
error #2513: a value of type "const char *"
cannot be assigned to an entity of type "char *"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2008 03:16 PM
тАО12-16-2008 03:16 PM
Re: error #2513: a value of type "void *" cannot be assigned to an entity of type ...
next = strstr(classPath, str);
this code produces the const char * message where classPath and str are both of type const char *
---------------------
char* childEnv=malloc(bufferSize);
--------------------
BOOL inQuotes = FALSE;
if (..) {
inQuotes = !inQuotes;
}
produces
error #2513: a value of type "bool" cannot
be assigned to an entity of type "BOOL"
where BOOL is defined to be of type int..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2008 06:27 PM
тАО12-16-2008 06:27 PM
Re: error #2513: a value of type "void *" cannot be assigned to an entity of type ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2008 07:11 PM
тАО12-16-2008 07:11 PM
Re: error #2513: a value of type "void *" cannot be assigned to an entity of type ...
I suspected that.
>what flag can I use for aCC for it treat it as a C file?
Since both compilers are in the same bundle, you compile with cc and not aCC.
- Tags:
- cc