hxcpp: ShlObj.h not found error

1,084 views
Skip to first unread message

Yaroslav Sivakov

unread,
Mar 9, 2015, 1:21:22 AM3/9/15
to haxe...@googlegroups.com
Hello! I am a newbie to hxcpp and have a trouble:

motion-twin/haxe/lib/hxcpp/3,1,68/src/hx/Date.cpp(7) : fatal error C1083: Cannot open include file: 'Shlobj.h': No such file or directory.

I have MS Visual Studio 2013 Community Edition on  Windows 8.1 machine. I have a
c:\Program Files (x86)\Windows Kits\8.1\Include\um\ShlObj.h file and don't understand why I got the error.

Hugh

unread,
Mar 10, 2015, 12:57:24 AM3/10/15
to haxe...@googlegroups.com
Hxcpp will by default look for the Windows/7.1A sdk to remain compatible with windows XP.
You can use the latest SDK by adding the define HXCPP_NO_WINXP_COMPAT, either per-project with "-D HXCPP_NO_WINXP_COMPAT", or globally in your ~/.hxcpp_config.xml file.
See if this helps.  If you set the environment variable HXCPP_VERBOSE, you may also get some info on which paths are being used.

Apparently you can target XP directly with VS2013, but I'm not sure how - some magic compile flag somewhere maybe.

Hugh

Yaroslav Sivakov

unread,
Mar 10, 2015, 1:36:55 AM3/10/15
to haxe...@googlegroups.com
Thank you, Hugh! In my case the solution was to define VS120COMNTOOLS environment variable (it was not defined... but was defined VS110COMNTOOLS).
Is there document with a possible defines for hxcpp? I try to find it with no success...

10.03.2015 7:57, Hugh пишет:
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.

--

Yaroslav Sivakov

Hugh

unread,
Mar 11, 2015, 1:04:31 AM3/11/15
to haxe...@googlegroups.com
This variable is not a hxcpp variable - it should be a microsoft thing.  Maybe something funny happened with the installation, like only installing for  a particular user, or maybe a reboot after installation was needed.

However, glad it is working for you now.

Hugh
Reply all
Reply to author
Forward
0 new messages