# VSCode cannot open "sys/time.h" requested by UE4Proj on Windows platform

**URL:** <https://forums.unrealengine.com/t/vscode-cannot-open-sys-time-h-requested-by-ue4proj-on-windows-platform/419118>\
**Category:** Pipeline & Plugins\
**Tags:** vscode, unreal-engine, path, Visual-Studio, question\
**Created:** [March 6, 2018, 4:31pm UTC](https://forums.unrealengine.com/t/vscode-cannot-open-sys-time-h-requested-by-ue4proj-on-windows-platform/419118 "2018-03-06T16:31:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arty-McLabin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arty-mclabin/32/1012076_2.png) [@Arty-McLabin](https://forums.unrealengine.com/u/Arty-McLabin)\
**Post date:** [March 6, 2018, 4:31pm UTC](https://forums.unrealengine.com/t/vscode-cannot-open-sys-time-h-requested-by-ue4proj-on-windows-platform/419118/1 "2018-03-06T16:31:40Z")

</div>

_message: ‘cannot open source file “sys/time.h” (dependency of “MyUnrealProjName.h”)’_

Why would it even happen? “sys/time.h” is Unix header and doesn’t exist on Windows.  
I can compile my project fine in Visual Studio or inside UE Editor, but VSCode IDE complains.

I still try to figure out how to setup VSCode properly for UE4 so i might have miss something in **c\_cpp\_properties.json** , even though i have copied Visual Studio’s paths into includePath list of VSCode.

---

<div class="post-metadata">

**Author:** ![Woohoou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Woohoou](https://forums.unrealengine.com/u/Woohoou)\
**Post date:** [July 5, 2019, 1:32am UTC](https://forums.unrealengine.com/t/vscode-cannot-open-sys-time-h-requested-by-ue4proj-on-windows-platform/419118/2 "2019-07-05T01:32:32Z")

</div>

you were able to solve the problem?

---

<div class="post-metadata">

**Author:** ![Arty-McLabin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arty-mclabin/32/1012076_2.png) [@Arty-McLabin](https://forums.unrealengine.com/u/Arty-McLabin)\
**Post date:** [July 5, 2019, 5:45am UTC](https://forums.unrealengine.com/t/vscode-cannot-open-sys-time-h-requested-by-ue4proj-on-windows-platform/419118/3 "2019-07-05T05:45:43Z")

</div>

i did solve the problem, although i am not sure what specifically did the magic and it were long ago.

i still operate and use my VSCode though so if you want i can copy you my c\_cpp\_properties.json so you and other guys could use it. (project name adjustments and path need to be made though to fit your machine)

---

<div class="post-metadata">

**Author:** ![2726559668](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@2726559668](https://forums.unrealengine.com/u/2726559668)\
**Post date:** [December 5, 2024, 6:52am UTC](https://forums.unrealengine.com/t/vscode-cannot-open-sys-time-h-requested-by-ue4proj-on-windows-platform/419118/4 "2024-12-05T06:52:15Z")

</div>

This is caused by `#include <Python.h>` in ThirdParty libraries. Unreal Engine source code has a thirdparty Python3, in which there are Engine\Source\ThirdParty\Python3\Linux\include\Python.h and Engine\Source\ThirdParty\Python3\Win64\include\Python.h. VSCode intellisense will search for Python.h in lexicographical order, so Python.h under Linux directory is used, which further includes sys/time.h.
