Raised This Month: $32 Target: $400
 8% 

Compiling errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Abhinash
Senior Member
Join Date: Jan 2015
Location: India,kolkata
Old 07-26-2017 , 16:44   Compiling errors
Reply With Quote #1

Hey.
I am getting these compilling errors --
Code:
1>------ Build started: Project: fun, Configuration: Debug Win32 ------ 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141_xp\Toolset.targets(36,5): warning MSB8003: Could not find WindowsSdkDir_71A variable from the registry.  TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(371,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry.  TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. 1>MemoryUtils.cpp 1>c:\cs 1.6 module sdk\amxmodx-master\public\memtools\MemoryUtils.h(44): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>fun.cpp 1>..\fun.cpp(14): fatal error C1083: Cannot open include file: 'string.h': No such file or directory 1>amxxmodule.cpp 1>..\..\..\public\sdk\amxxmodule.cpp(15): fatal error C1083: Cannot open include file: 'string.h': No such file or directory 1>Generating Code... 1>Done building project "fun.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Here is one image of my Fun's VCC Directories - http://imgur.com/a/jAuvk


Note. I use Microsoft Visual Studio 2017
How to fix these errors ?
Where to put the include files ?

Last edited by Abhinash; 07-26-2017 at 16:55. Reason: Added image
Abhinash is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-26-2017 , 17:13   Re: Compiling errors
Reply With Quote #2

It's probably related to that first WindowsSdkDir warning. string.h and windows.h are files which should be in the toolset. Looks like your Visual Studio installation is corrupted, or something along those lines. Better Google that warning.

Last edited by klippy; 07-26-2017 at 17:14.
klippy is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-27-2017 , 03:15   Re: Compiling errors
Reply With Quote #3

Or missing SDK. Probably SDK 8.1? I think there is an option in VS2017 installer to install it.
__________________
Arkshine is offline
Abhinash
Senior Member
Join Date: Jan 2015
Location: India,kolkata
Old 07-27-2017 , 07:40   Re: Compiling errors
Reply With Quote #4

Well I fixed those errors.
but now I am having these errors --

Code:
1>------ Build started: Project: fun, Configuration: Debug Win32 ------ 1>fun.cpp 1>C:\Users\hp\Documents\GitHub\amxmodx\public\sdk\amxxmodule.h(26): fatal error C1083: Cannot open include file: 'extdll.h': No such file or directory 1>amxxmodule.cpp 1>c:\users\hp\documents\github\amxmodx\public\sdk\amxxmodule.h(26): fatal error C1083: Cannot open include file: 'extdll.h': No such file or directory 1>Generating Code... 1>Done building project "fun.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

This is my VC++ Additional include directories --

Code:
..\;..\..\..\public;..\..\..\public\sdk;..\..\..\public\amtl;..\..\third_party;..\..\third_party\hashing;$(METAMOD)\metamod;$(HLSDK)\common;$(HLSDK)\engine;$(HLSDK)\dlls;$(HLSDK)\pm_shared;$(HLSDK)\public;%(AdditionalIncludeDirectories)

Please tell me how to fix these errors .

Thanks
Abhinash is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-27-2017 , 07:54   Re: Compiling errors
Reply With Quote #5

You have to either define $(METAMOD) and $(HLSDK) paths in your Environments Variables window, or you can replace directly in the project as well.
__________________
Arkshine is offline
Abhinash
Senior Member
Join Date: Jan 2015
Location: India,kolkata
Old 07-27-2017 , 08:52   Re: Compiling errors
Reply With Quote #6

Could you tell me the way on how to do that ?
Abhinash is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode