[Info-vax] Possible C compiler static variable initialization problem.
BillPedersen
pedersen at ccsscorp.com
Tue Feb 25 23:36:17 EST 2014
I have posted the description of the problem on the tickets section of VMS-Ports:
https://sourceforge.net/p/vms-ports/tickets/79/
Basically, I have a pointer to a structure that is statically initialized as a Null and I then pass the address of that pointer to a function but the information seen in the function is not a Null and so the function goes nuts.
This is code which works on Linux...
Any thoughts or suggestions on the solution are welcome. I could try doing an explicit initialization - I have not yet gone down that path but I will in the morning. Sort of a pain but.
This is on OpenVMS IA64 V8.4, I do not have the C compiler version off the top of my head so I will need to dig that out in the AM, too.
Thanks,
Bill.
More information about the Info-vax
mailing list