Wireshark mailing list archives
Re: Troubles with ASN generated code
From: Graham Bloice <graham.bloice () trihedral com>
Date: Sun, 21 May 2017 23:10:17 +0100
On 21 May 2017 at 23:00, Guy Harris <guy () alum mit edu> wrote:
On May 21, 2017, at 2:54 PM, Graham Bloice <graham.bloice () trihedral com> wrote:It would appear not in a static initializer list. I can do it piecemeal,e.g. foo.member = &fff. Does "piecemeal" really mean "in executable code"?
I think so, from the dlltest2.zip, dllimport.c:
If I try to assign &fff in an initialiser list I get an "error C2099:initializer is not a constant". If you're initializing a static variable, that's probably not done in executable code. The difference may be that the compiler can generate the appropriate machine code to calculate the address of fff, but can't generate the right object-file indications to the linker and run-time loader to get *them* to do it - and if the variable being initialized is const, that might not work as it might be mapped read-only. ____________________________________________________________ _______________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject= unsubscribe
-- Graham Bloice Software Developer Trihedral UK Limited
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Troubles with ASN generated code Jaap Keuter (May 18)
- Re: Troubles with ASN generated code Guy Harris (May 18)
- Re: Troubles with ASN generated code Jaap Keuter (May 19)
- Re: Troubles with ASN generated code Guy Harris (May 19)
- Re: Troubles with ASN generated code Jaap Keuter (May 20)
- Re: Troubles with ASN generated code Graham Bloice (May 21)
- Re: Troubles with ASN generated code Guy Harris (May 21)
- Re: Troubles with ASN generated code Graham Bloice (May 21)
- Re: Troubles with ASN generated code Guy Harris (May 21)
- Re: Troubles with ASN generated code Graham Bloice (May 21)
- Re: Troubles with ASN generated code Graham Bloice (May 21)
- Re: Troubles with ASN generated code Guy Harris (May 19)