Hello I'm doing a MASM course and there is also C++ but the teacher is using Visual Studio and I'm using Linux. In the code I'm doing there is the following instructions:
__declspec(align(#))
I have this code:
_desclspec(align(16))XmmVal a;
_desclspec(align(16))XmmVal b;
_desclspec(align(16))XmmVal c[2];
But I cannot use "align" and "_desclspec" on linux by compiling with "i686-w64-mingw32-g++" because I get an error "was not declared in this scope":
SSEPackedIntegerArithmetic.cpp:24:16: error: ‘align’ was not declared in this scope 24 | _desclspec(align(16))XmmVal a; | ^~~~~ SSEPackedIntegerArithmetic.cpp:24:5: error: ‘_desclspec’ was not declared in this scope 24 |
_desclspec(align(16))XmmVal a; | ^~~~~~~~~~
How can I solve this problem? Thank you!