Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"too many characters in constant" error with concrt.h in VC11 #84

Open
johnhany opened this issue Mar 26, 2016 · 0 comments
Open

"too many characters in constant" error with concrt.h in VC11 #84

johnhany opened this issue Mar 26, 2016 · 0 comments

Comments

@johnhany
Copy link

I'm using VS2012 with CUDA 7.5 and have already changed CUDA version number in MainBuilder.vcxproj so that I can open the project properly. But I have encountered the following errors while building the solution, no matter how I switch the build configuraion (Release or Debug, Win32 or x64):

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\concrt.h(5762): error C2015: too many characters in constant
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\concrt.h(5762): error C2146: syntax error : missing ')' before identifier 'q'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\concrt.h(5762): error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\concrt.h(5762): error C2001: newline in constant

...
and so on...

The codes that cause these errors are like this:

extern "C" const __declspec(selectany) GUID ConcRT_ProviderGuid = { 0xF7B697A3, 0x4DB5, 0x4d3b, { 0xBE, 0x71, 0xC4, 0xD2, 0x84, 0xE6, 0x59, 0x2F } };

It looks like the hex values have been interpreted into ASCII and parsed as characters, but I'm not even sure how to describe this kind of error so that I can google it myself.
Anyone has any idea how to solve this problem, perhaps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant