Compilation issue for Touchlib in Visual C++ Express 2008 - atlconv.h
Posted: 18 July 2008 03:11 PM   [ Ignore ]
New Member
Rank
Total Posts:  4
Joined  2008-06-16

As explained in the title, I’m having an issue compiling Touchlib in Visual C++ Express 2008.  This error has been mentioned twice in other forums, but no other solutions are mentioned:

http://nuigroup.com/forums/viewthread/1333/ (post 7)
http://nuigroup.com/forums/viewthread/48/ (post 15)

The error list looks like this:
1>main.cc
1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\atl\atlconv.h(33) : error C2146: syntax error : missing ‘;’ before identifier ‘_Atlosplatform’
1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\atl\atlconv.h(33) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\atl\atlconv.h(33) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\atl\atlconv.h(34) : error C2146: syntax error : missing ‘;’ before identifier ‘_AtlGetVersionEx’
1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\atl\atlconv.h(34) : error C2433: ‘BOOL’ : ‘inline’ not permitted on data declarations
1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\atl\atlconv.h(34) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\atl\atlconv.h(35) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\atl\atlconv.h(36) : error C2065: ‘OSVERSIONINFO’ : undeclared identifier
1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\atl\atlconv.h(36) : error C2146: syntax error : missing ‘;’ before identifier ‘osi’

...blah blah blah....

it’s all in atlconv.h file, which is unmodified after I downloaded it as part of the Platform SDK for Windows Server 2003, R2. Why are there so many syntax errors in this file?

Thanks!

EDIT:
- I’ve gone through the forum, and done everything else already
- This error only occurs when I want to build configapp. Otherwise everything is great.
CORRECTION:
- the error actually occurs when I try to build demo_smoke. configapp is fine.

Profile
 
 
Posted: 21 July 2008 12:25 PM   [ Ignore ]   [ # 1 ]
New Member
Rank
Total Posts:  4
Joined  2008-06-16

I fixed this problem by changing the include directory from
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\atl
to
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\mfc
which happened to also contain the file atlconv.h

The entire project builds now. However, I’m getting the same error as was mentioned here in this thread:
http://nuigroup.com/forums/viewthread/2280/

Anyone else with these problems?

Profile
 
 
Posted: 19 August 2008 01:19 PM   [ Ignore ]   [ # 2 ]
New Member
Rank
Total Posts:  6
Joined  2008-07-24

i compile without problems

http://nuigroup.com/forums/viewthread/2626/

Profile
 
 
Posted: 19 August 2008 01:59 PM   [ Ignore ]   [ # 3 ]
New Member
Rank
Total Posts:  4
Joined  2008-06-16

All is well. This issue has been fixed on my side.

Profile