{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/VSLinux/issues/170","repository_url":"https://api.github.com/repos/Microsoft/VSLinux","labels_url":"https://api.github.com/repos/Microsoft/VSLinux/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/VSLinux/issues/170/comments","events_url":"https://api.github.com/repos/Microsoft/VSLinux/issues/170/events","html_url":"https://github.com/Microsoft/VSLinux/issues/170","id":249579803,"number":170,"title":"Include paths not being passed from VSLinux to remote build","user":{"login":"braindeaddeveloper","id":30121013,"avatar_url":"https://avatars3.githubusercontent.com/u/30121013?v=4","gravatar_id":"","url":"https://api.github.com/users/braindeaddeveloper","html_url":"https://github.com/braindeaddeveloper","followers_url":"https://api.github.com/users/braindeaddeveloper/followers","following_url":"https://api.github.com/users/braindeaddeveloper/following{/other_user}","gists_url":"https://api.github.com/users/braindeaddeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/braindeaddeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braindeaddeveloper/subscriptions","organizations_url":"https://api.github.com/users/braindeaddeveloper/orgs","repos_url":"https://api.github.com/users/braindeaddeveloper/repos","events_url":"https://api.github.com/users/braindeaddeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/braindeaddeveloper/received_events","type":"User","site_admin":false},"labels":[{"id":581034695,"url":"https://api.github.com/repos/Microsoft/VSLinux/labels/investigating","name":"investigating","color":"fbca04","default":false},{"id":675998933,"url":"https://api.github.com/repos/Microsoft/VSLinux/labels/need%20repro","name":"need repro","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":{"login":"itodirel","id":15239856,"avatar_url":"https://avatars2.githubusercontent.com/u/15239856?v=4","gravatar_id":"","url":"https://api.github.com/users/itodirel","html_url":"https://github.com/itodirel","followers_url":"https://api.github.com/users/itodirel/followers","following_url":"https://api.github.com/users/itodirel/following{/other_user}","gists_url":"https://api.github.com/users/itodirel/gists{/gist_id}","starred_url":"https://api.github.com/users/itodirel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itodirel/subscriptions","organizations_url":"https://api.github.com/users/itodirel/orgs","repos_url":"https://api.github.com/users/itodirel/repos","events_url":"https://api.github.com/users/itodirel/events{/privacy}","received_events_url":"https://api.github.com/users/itodirel/received_events","type":"User","site_admin":false},"assignees":[{"login":"itodirel","id":15239856,"avatar_url":"https://avatars2.githubusercontent.com/u/15239856?v=4","gravatar_id":"","url":"https://api.github.com/users/itodirel","html_url":"https://github.com/itodirel","followers_url":"https://api.github.com/users/itodirel/followers","following_url":"https://api.github.com/users/itodirel/following{/other_user}","gists_url":"https://api.github.com/users/itodirel/gists{/gist_id}","starred_url":"https://api.github.com/users/itodirel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itodirel/subscriptions","organizations_url":"https://api.github.com/users/itodirel/orgs","repos_url":"https://api.github.com/users/itodirel/repos","events_url":"https://api.github.com/users/itodirel/events{/privacy}","received_events_url":"https://api.github.com/users/itodirel/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2017-08-11T09:19:19Z","updated_at":"2017-09-06T10:39:30Z","closed_at":"2017-09-05T22:47:44Z","author_association":"NONE","body":"I am getting repeated failures to find include files in various VSLinux projects.  \r\n\r\nAn example of this :\r\n\r\nFrom project / properties / c/c++ / command line\r\n\r\n\"/path to gcc/gcc\" -W\"switch\" -W\"no-deprecated-declarations\" -W\"empty-body\" -W\"conversion\" -W\"return-type\" -W\"parentheses\" -W\"no-pointer-sign\" -W\"no-format\" -W\"uninitialized\" -W\"unreachable-code\" -W\"unused-function\" -W\"unused-value\" -W\"unused-variable\" -std=c++11 -Wall -fno-strict-aliasing -I \"/path to gcc/gcc/include/c++/4.8.3\" -I \"/path to curl/curl/include/\" -I \"/path to boos/boost/1_57_0/include\" -g2 -gdwarf-2 \"/path to gcc/bin/g++\" -O0 \"3600000\" -fthreadsafe-statics -W\"switch\" -W\"no-deprecated-declarations\" -W\"empty-body\" -W\"conversion\" -W\"return-type\" -W\"parentheses\" -W\"no-format\" -W\"uninitialized\" -W\"unreachable-code\" -W\"unused-function\" -W\"unused-value\" -W\"unused-variable\" -Werror -frtti -fno-omit-frame-pointer -std=c11 -fexceptions -o \"\\path to project\\teatest001\\obj\\x64\\Debugx64%(filename).o\"\r\n\r\nBut when build is selected I can see from build output window\r\n\r\n...\r\n Invoking g++\r\n /path to gcc/bin/g++ -c -x c++ /path to project/teatest001/main.cpp -I \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\Linux\\include\\usr\\local\\include\" -g2 -gdwarf-2 -o \"/path to project/teatest001/obj/x64/Debug/main.o\" -Wall -Werror -Wswitch -W\"no-deprecated-declarations\" -W\"empty-body\" -Wconversion -W\"return-type\" -Wparentheses -W\"no-format\" -Wuninitialized -W\"unreachable-code\" -W\"unused-function\" -W\"unused-value\" -W\"unused-variable\" -O0 -fno-strict-aliasing -fno-omit-frame-pointer -fthreadsafe-statics -fexceptions -frtti -std=c++11 main.cpp\r\n\r\nthen I get include file not found errors as you can see includes from the command line window arent being passed to gcc\r\n\r\nAs this is a remote build on a Linux machine :  -I \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\Linux\\include\\usr\\local\\include\" is pointless but as you can see that is the only include path passed to the remote build.\r\n\r\nunfortunately I cant send you more than this ... its a financial institution and a corporate offence to disclose anything more than this\r\n\r\nRepro is simple create  a VSLinux project against a remote Linux server over ssh add a remote include path to the settings run build then check the outputs command line.  Add a source file which has a #include \"remoteheader.h\" from that include path.  Run build and see error.\r\n\r\nVS2017 is latest 15.2 version build 26430.16.  Remote server Redhat 6.5 GCC version 4.8.3\r\n\r\nthanks\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/VSLinux/issues/comments/327445352","html_url":"https://github.com/Microsoft/VSLinux/issues/170#issuecomment-327445352","issue_url":"https://api.github.com/repos/Microsoft/VSLinux/issues/170","id":327445352,"user":{"login":"braindeaddeveloper","id":30121013,"avatar_url":"https://avatars3.githubusercontent.com/u/30121013?v=4","gravatar_id":"","url":"https://api.github.com/users/braindeaddeveloper","html_url":"https://github.com/braindeaddeveloper","followers_url":"https://api.github.com/users/braindeaddeveloper/followers","following_url":"https://api.github.com/users/braindeaddeveloper/following{/other_user}","gists_url":"https://api.github.com/users/braindeaddeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/braindeaddeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braindeaddeveloper/subscriptions","organizations_url":"https://api.github.com/users/braindeaddeveloper/orgs","repos_url":"https://api.github.com/users/braindeaddeveloper/repos","events_url":"https://api.github.com/users/braindeaddeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/braindeaddeveloper/received_events","type":"User","site_admin":false},"created_at":"2017-09-06T10:39:30Z","updated_at":"2017-09-06T10:39:30Z","author_association":"NONE","body":"\r\nI would note that I can see in project properties c/c++ all options : Additional Options : -I /usr/include\r\nBUT in \r\nproject properties c/c++ command line : the -I /usr/include is missing \r\n"}}
{"actor":{"display_login":"braindeaddeveloper"}}