Login Page - Create Account

Support Board


Date/Time: Fri, 22 Nov 2024 12:55:41 +0000



Post From: ERRPR: Differing values for pack size within the same class (4, 8)

[2024-10-19 15:53:16]
skalaydzhiyski - Posts: 55
sorry if my ticket a bit all over the place in terms of phrasing, i just spent hours debugging whats happening. i have a client using c++20 modules (this is currently supported by msvc compiler) but in those modules i cannot import the sierrachart.h header because of the above issue.

i get an error saying there are 2 different struct packings in the same class. in your case - 8 bytes and 4 bytes.

i was wondering if you have come across anyone trying to use c++20 modules with sierra and whether you have any idea how to fix the error above.

to replicate -> just try to import sierrachart.h in a module header (ixx)

i know you guys are busy with more important things and i already have a workaround (switching back to headers instead of modules) but I would love to be able to use the latest c++ features with the sierra's c++ code.