I have copied everything from the protoolkit folder found at the location C:\Program Files\PTC\Creo 126.96.36.199\Common Files\protoolkit into C:\Temp\creo for ease of use.
I have edited the PROTOOL_SRC to reflect this but when I try to build this file in Visual Studio 2022, I get these errors (Below is my make_file
# Machine Type
PRO_MACHINE_TYPE = x86e_win64
# Executable names
EXE = pt_inst_test.exe
EXE_DLL = pt_inst_test.dll
# Pro/Toolkit Source & Machine Loadpoint (EXTERNAL USE - DEFAULT)
PROTOOL_SYS = $(PROTOOL_SRC)/$(PRO_MACHINE_TYPE)
# Pro/Toolkit Source & Machine Loadpoint (PTC INTERNAL USE)
#PROTOOL_SYS = $(PTCSYS)
Any help in resolving this would be greatly appreciated
makefile syntax is case sensitive. most likely the problem is with PROTOOL_src ( should be PROTOOL_SRC).
although the error message is about 'stdio.h' which means nmake.exe does not know about standard include directory locations - the usual checks - make sure your command prompt environment is set by 'x64 Native Tools Command Prompt', visual studio installer should be using 'C++ Desktop...' workflow.
I have it set as PROTOOL_src=C:/Temp/creo, however I am getting the same error. I also have the Visual studio installer using the C++ Desktop workflow. I believe that I enabled the x64 Native Tools command prompt. Is it possible that this error is being generated because I am using Visual Studio Community?
Community edition should not be a problem.
There is a possibility that Windows 10 SDK is missing from the list of installed options - in 'x64 Native...' command prompt check environment variables: %INCLUDE%, %LIB%, %LIBPATH% , %WindowsSdkDIr%- and see if stdio.h file could be found in %INCLUDE%. The common location for stdio.h is in %WindowsSdkDir%Include\%WindowsSDKLibVersion%\ucrt and that directory must be listed in %INCLUDE%.
running from the copied 'obj' directory.
works fine without any modifications to make_install file:
works fine with 'PROTOOL_SRC' set to the absolute path in make_install file: