×
Namespaces

Variants
Actions

Archived:Open C GCCE compilation error - Initializer element is not constant (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Compiling Open C applications to the GCCE target may fail with the following error: /epoc32/include/e32def.h:2769: error: initializer element is not constant.

Article Metadata
Compatibility
Platform(s): S60 3rd Edition
S60 3rd Edition, FP1, FP2
S60 3rd Edition FP2
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Article
Created: User:Technical writer 1 (12 Jun 2008)
Last edited: hamishwillee (19 Jun 2012)

Solution

This is a known issue in the e32def.h header file. In e32def.h, modify the following line to only apply to C++ builds:

static const char* const KSuppressPlatSecDiagnostic =
KSuppressPlatSecDiagnosticMagicValue;

after changes:

#if defined(__cplusplus) 
static const char* const KSuppressPlatSecDiagnostic =
KSuppressPlatSecDiagnosticMagicValue;
#endif
This page was last modified on 19 June 2012, at 11:01.
69 page views in the last 30 days.
×