cassius Posted January 16, 2018 Share Posted January 16, 2018 Sorry to be so persistant but I am getting desperate. I start a new blank project in vs 2017 and add nothing of my own.It gives error message " cannot open source file ctype.h". This of course is followed by many more errors. This is a NEW project and surely should work out of the box? I tried googling for answer but answers were dated. target is set to 10.015063.0 but retarget shows another number.,, other than that I see nothing wrong. 1 Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
gamecreator Posted January 17, 2018 Share Posted January 17, 2018 I just did the upgrade. This is what worked for me - you may not need to do some of this. Create new project. Double click on SLN file in Project, Windows to open. Changed to Release. Removed App.h and main.cpp from project. Replaced the code in App.cpp with an example that doesn't use any resources, like the one on this page: https://www.leadwerks.com/learn?page=API-Reference_Object_Window_Create When I tried to compile it, it gave me some error about missing Windows 10 SDK (since I didn't install it). I right-clicked on Solution in the Solution Explorer, hit Retarget Solution, chose 8.1 and hit OK. This compiled for me but I got a blank window because the Working Directory was incorrect. Right-clicked on the Project Property, went to Debugging and changed my Working Directory to $(SolutionDir)..\..\ (which matches my Output Directory under General). Ran fine after this. Good luck! 1 1 Quote Link to comment Share on other sites More sharing options...
cassius Posted January 17, 2018 Author Share Posted January 17, 2018 thanks I will give it a try. 1 Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
cassius Posted January 18, 2018 Author Share Posted January 18, 2018 I am now getting the error windows sdk 10.15063.0 not found..its asking me to retarget. Any further help appreciated. 1 Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Josh Posted January 19, 2018 Share Posted January 19, 2018 You might need to update VS to get the very latest? 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
reepblue Posted January 19, 2018 Share Posted January 19, 2018 No, he needs to do this: Use the dropdown to select the version that's installed. 2 1 Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
cassius Posted January 19, 2018 Author Share Posted January 19, 2018 I reinstalled vs 2017 yesterday. makes no difference so far. Still trying, thanks for help. 1 Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
cassius Posted January 20, 2018 Author Share Posted January 20, 2018 I've now got it to build ok, thanks for your help. However, I'm now getting the following error. Lua Sandbox is ticked in options. The correct path to the Lua scripts is as below but I'm not sure why it's looking in the wrong place. "C:\Users\G\Documents\Leadwerks\Projects\newproject\Scripts" Can you help, thanks. Run time error below- Error: No debugger hostname supplied in command line. Initializing Lua... Warning: Lua sandboxing disabled. Executing file "C:/Users/G/Documents/Leadwerks/Projects/Scripts/Error.lua" Error: Failed to read file "C:/Users/G/Documents/Leadwerks/Projects/Scripts/Error.lua". Executing file "C:/Users/G/Documents/Leadwerks/Projects/Scripts/Main.lua" Error: Failed to read file "C:/Users/G/Documents/Leadwerks/Projects/Scripts/Main.lua". Error: Failed to execute script "Scripts/Main.lua". Press any key to continue . . . 1 1 Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Roland Posted January 20, 2018 Share Posted January 20, 2018 Check your Debugger path 1 Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
cassius Posted January 21, 2018 Author Share Posted January 21, 2018 Can someone tell me Does the working directory path have to match the output directory?? 1 Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
gamecreator Posted January 22, 2018 Share Posted January 22, 2018 No. The output directory is where it puts the EXE. The working directory is where it should find the DLLs and such. It's convenient to have them the same if you want to run the EXE outside of Visual Studio. 1 Quote Link to comment Share on other sites More sharing options...
Josh Posted January 22, 2018 Share Posted January 22, 2018 5 hours ago, cassius said: Can someone tell me Does the working directory path have to match the output directory?? It should. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
cassius Posted January 22, 2018 Author Share Posted January 22, 2018 Thanks everyone. Got it working now. Had to change working dir path and retarget project. 1 Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.