Author Message

<  visual studio  ~  Error c2001 in VC 2005

PostPosted: Wed Aug 20, 2008 2:55 pm
User avatarJoined: Fri Mar 02, 2007 3:21 pmPosts: 40
:oops: sorry to ask,first time to using vc2005,here's the error message what i got

g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(722) : error C2001: 常量中有换行符
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(726) : error C2001: 常量中有换行符
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(730) : error C2001: 常量中有换行符
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(737) : error C2001: 常量中有换行符
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(740) : error C2001: 常量中有换行符
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(741) : error C2001: 常量中有换行符
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(750) : error C2001: 常量中有换行符
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(760) : error C2001: 常量中有换行符
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(764) : error C2001: 常量中有换行符
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(722) : fatal error C1057: 宏展开中遇到意外的文件结束
1>testApp.cpp
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(722) : error C2001: 常量中有换行符
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(726) : error C2001: 常量中有换行符
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(730) : error C2001: 常量中有换行符
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(737) : error C2001: 常量中有换行符
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(740) : error C2001: 常量中有换行符
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(741) : error C2001: 常量中有换行符
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(750) : error C2001: 常量中有换行符
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(760) : error C2001: 常量中有换行符
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(764) : error C2001: 常量中有换行符
1>g:\develop\of_prerelease_v0.05_windows_vs_fat\libs\qtdevwin\cincludes\icons.h(722) : fatal error C1057: 宏展开中遇到意外的文件结束

and bla bla.............

error C2001: newline in constant

i was followed by the VC++ 2005 setup guide,somehow i don't know why get such error,am i missing something? thank you in advanced!


Offline Profile
PostPosted: Wed Aug 20, 2008 3:20 pm
User avatarSite AdminJoined: Mon Feb 05, 2007 9:31 pmPosts: 1806Location: brooklyn
I'm really sorry --- this is a bug with some foreign languages (I've seen this with korean) and the includes in quicktime. What is your operating system language?

there is some info here:
http://www.openframeworks.cc/forum/view ... 4fc2ef8ac0

but since I don't have korean OS, am a bit unable to jump in with a fix... I'm sorry.

can I ask you to try codeblocks, under openframeworks.cc/setup ?

thanks
zach


Offline Profile
PostPosted: Thu Aug 21, 2008 3:23 am
User avatarJoined: Fri Mar 02, 2007 3:21 pmPosts: 40
hey,zach,thank you for the help.my op system is Chinese,moreover my vc2005 is chinese,i shoud install english version i guess,yeah i'm using codeblock which is really fine.

i'll let you know if i can fix it.


Offline Profile
PostPosted: Fri Aug 22, 2008 11:33 am
User avatarJoined: Fri Mar 02, 2007 3:21 pmPosts: 40
solved, if you using non-english platform please replace with this file

http://up.rexgo.net/rexgo/Icons.h

also,if you get 4819 error,just type 4819 into the ----"disable specific warings" tab.


Offline Profile
PostPosted: Fri Jul 30, 2010 4:29 am
Joined: Tue Jan 12, 2010 8:37 pmPosts: 53
that file link's broken
i'm also developing on a korean machine

i found this link from someone in nui group to give the same fix (maybe same file as you posted before it went down):
http://www.koders.com/c/fidE91900D22F5984676ED9B0CAFDE8BD65BA577B7D.aspx


Offline Profile
PostPosted: Mon Aug 30, 2010 4:12 pm
Joined: Tue Sep 01, 2009 6:44 pmPosts: 16Location: Hong Kong
I faced the same problem and also solved by replacing the Icon.h file.

The Icon.h file can actually be found in OF's git repo: http://github.com/openframeworks/openFr ... de/Icons.h


Offline Profile

Display posts from previous:  Sort by:

All times are UTC
Page 1 of 1
6 posts
Users browsing this forum: No registered users and 1 guest
Search for:
Post new topic  Reply to topic
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
cron