Page 1 of 1

cxx(clang) and 32/64 bits pointers

Posted: Wed Mar 01, 2023 4:19 am
by psk
Hi,

The code I'm compiling has a lot of descriptors defined, mostly using the dsc$descriptor_s macro.
When I just compile it get warnings, "cast from long pointer to short pointer will lose data", as expected, but how can I compile the code with 32-bits pointers? I have tried cxx /pointer=32 and clang -pointer-size=32 but it makes no difference(?).
I really don't want to change the code to the dsc64$... macros and perhaps somebody in the forum have a solution?

Thanks
Peter