RSS

openFramework in VisualStudio: “error C2001: newline in constant” or “IntelliSense: too many characters in character constant” error

04 Dec

When compiling the examples in the openFramework, if you encounter the below errors:

  • “IntelliSense: too many characters in character constant    …icons.h” or
  • error C2001: newline in constant (see below Fig.1)

imageFig.1

The most likely reason is that you are using a non-English Windows or in the regional setting (from control panel =>Regional language => Adminstrative => System locale), the non-unicode language is not English. Double click the above errors in the C2001 error shows the details, as shown in Fig.2

image
Fig.2

To troubleshoot this, use this icons.h to overwrite the original file in the corresponding file. Download it here.

 
Leave a comment

Posted by on December 4, 2011 in openFrameworks

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: