![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
AIX- xlc and cc
when i compile with Xlc i sometimes get the following Error:
(S) Initialization between types "int" and "struct MskTtimerData*" is not allowed. when i compile with cc with the same Flags, i only get a (W) with the same message, but it compiles fine. How can i get the Xlc to 'ignore' the above error like cc ? Lazzar |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
hey, thanks for the fast reply.
It is a kinda big already existing project wich we are updating. And we just recently upgraded from 32 Aix4 to 64 bit Aix5 also. So a (int) cast would prolly be a bad idea (truncating the pointer?). but i see where the problem is now. Thanks a lot. Lazzar |
|
#3
|
|||
|
|||
|
Found the Bugger now.
The Structure with the Pointer to MskTtimerData has changed. old struct { int; MskTtimerData * } new struct { int int, <--- We tried to insert the Pointer here int, MskTtimerData * } oh well, i thought i have checked all the structures. I just hope thats the only one who chnaged. There might be other changes where the compiler wontt burp. i have some testing to do now Lazzar edit Quote:
And then the truncated pointer would 99% result in a Sig 11 |
|
#4
|
|||
|
|||
|
I am not familiar with Xlc, except that it is an AIX thing.
It seems, from your conversation, that it behaves like lint, which should be part of any C development IMO. Does someone know a little more about Xlc? |
|||
| Google The UNIX and Linux Forums |