Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 547 Bytes

compiler-error-c2345.md

File metadata and controls

22 lines (18 loc) · 547 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2345
Compiler Error C2345
11/04/2016
C2345
C2345
e1cc88b0-0223-4d07-975b-fa99956a82bd

Compiler Error C2345

align(value) : illegal alignment value

You passed a value to the align keyword that is outside the allowable range.

The following sample generates C2345:

// C2345.cpp
// compile with: /c
__declspec(align(8)) int a;   // OK
__declspec(align(16384)) int b;   // C2345