{"action":"created","issue":{"url":"https://api.github.com/repos/premake/premake-core/issues/222","labels_url":"https://api.github.com/repos/premake/premake-core/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/premake/premake-core/issues/222/comments","events_url":"https://api.github.com/repos/premake/premake-core/issues/222/events","html_url":"https://github.com/premake/premake-core/issues/222","id":102798346,"number":222,"title":"precompiled header support bug","user":{"login":"kinsung","id":4880761,"avatar_url":"https://avatars.githubusercontent.com/u/4880761?v=3","gravatar_id":"","url":"https://api.github.com/users/kinsung","html_url":"https://github.com/kinsung","followers_url":"https://api.github.com/users/kinsung/followers","following_url":"https://api.github.com/users/kinsung/following{/other_user}","gists_url":"https://api.github.com/users/kinsung/gists{/gist_id}","starred_url":"https://api.github.com/users/kinsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinsung/subscriptions","organizations_url":"https://api.github.com/users/kinsung/orgs","repos_url":"https://api.github.com/users/kinsung/repos","events_url":"https://api.github.com/users/kinsung/events{/privacy}","received_events_url":"https://api.github.com/users/kinsung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-24T13:52:38Z","updated_at":"2015-12-21T13:58:53Z","closed_at":null,"body":"When I use the pchheader function to set the main header file for precompiled header support.\r\npchheader \"stdafx.h\"\r\npchsource \"stdafx.cpp\"\r\n\r\nbut the sln and vcproj file was generated and go building,  and get much errors:\r\n\r\n1>myproject\\some.cpp(4) : fatal error C1083: Cannot open precompiled header file:“d:\\myproject.pch”: No such file or directory\r\n\r\nI open the .vcproj file, fix the code as following, it is fine.\r\n\r\n\\<File RelativePath=\"myproject\\stdafx.cpp\"\\>\\</File\\>\r\n\r\nchange to :\r\n\r\n\\<File\r\n\t\t\tRelativePath=\"myproject\\stdafx.cpp\"\r\n\t\t\t\\>\r\n\t\t\t\\<FileConfiguration\r\n\t\t\t\tName=\"debug_shared|Win32\"\r\n\t\t\t\t\\>\r\n\t\t\t\t<Tool\r\n\t\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\t\tUsePrecompiledHeader=\"1\"\r\n\t\t\t\t/>\r\n\t\t\t\\</FileConfiguration\\>\r\n\t\t\t\\<FileConfiguration\r\n\t\t\t\tName=\"release_shared|Win32\"\r\n\t\t\t\t\\>\r\n\t\t\t\t\\<Tool\r\n\t\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\t\tUsePrecompiledHeader=\"1\"\r\n\t\t\t\t/>\r\n\t\t\t\\</FileConfiguration>\r\n\t\t\t\\<FileConfiguration\r\n\t\t\t\tName=\"reldbg|Win32\"\r\n\t\t\t\t>\r\n\t\t\t\t\\<Tool\r\n\t\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\t\tUsePrecompiledHeader=\"1\"\r\n\t\t\t\t/>\r\n\t\t\t\\</FileConfiguration>\r\n\t\t\\</File>\r\n"},"comment":{"url":"https://api.github.com/repos/premake/premake-core/issues/comments/166311053","html_url":"https://github.com/premake/premake-core/issues/222#issuecomment-166311053","issue_url":"https://api.github.com/repos/premake/premake-core/issues/222","id":166311053,"user":{"login":"NicolBolas","id":905466,"avatar_url":"https://avatars.githubusercontent.com/u/905466?v=3","gravatar_id":"","url":"https://api.github.com/users/NicolBolas","html_url":"https://github.com/NicolBolas","followers_url":"https://api.github.com/users/NicolBolas/followers","following_url":"https://api.github.com/users/NicolBolas/following{/other_user}","gists_url":"https://api.github.com/users/NicolBolas/gists{/gist_id}","starred_url":"https://api.github.com/users/NicolBolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicolBolas/subscriptions","organizations_url":"https://api.github.com/users/NicolBolas/orgs","repos_url":"https://api.github.com/users/NicolBolas/repos","events_url":"https://api.github.com/users/NicolBolas/events{/privacy}","received_events_url":"https://api.github.com/users/NicolBolas/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T13:58:53Z","updated_at":"2015-12-21T13:58:53Z","body":"Yes, I copied that into the message incorrectly. In the actual Premake script file, it's `pchsource \"source/pch.cpp\"`."}}