{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/701","repository_url":"https://api.github.com/repos/Microsoft/vscode-cpptools","labels_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/701/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/701/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/701/events","html_url":"https://github.com/Microsoft/vscode-cpptools/issues/701","id":227148243,"number":701,"title":"Not finding namespace members","user":{"login":"rdlaner","id":17415937,"avatar_url":"https://avatars3.githubusercontent.com/u/17415937?v=3","gravatar_id":"","url":"https://api.github.com/users/rdlaner","html_url":"https://github.com/rdlaner","followers_url":"https://api.github.com/users/rdlaner/followers","following_url":"https://api.github.com/users/rdlaner/following{/other_user}","gists_url":"https://api.github.com/users/rdlaner/gists{/gist_id}","starred_url":"https://api.github.com/users/rdlaner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdlaner/subscriptions","organizations_url":"https://api.github.com/users/rdlaner/orgs","repos_url":"https://api.github.com/users/rdlaner/repos","events_url":"https://api.github.com/users/rdlaner/events{/privacy}","received_events_url":"https://api.github.com/users/rdlaner/received_events","type":"User","site_admin":false},"labels":[{"id":348032328,"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/labels/bug","name":"bug","color":"ee0701","default":true},{"id":355010486,"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/labels/Language%20Service","name":"Language Service","color":"c5def5","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-05-08T19:26:50Z","updated_at":"2017-05-09T23:07:32Z","closed_at":"2017-05-09T23:07:32Z","body":"VS Code: 1.12.1\r\nCPP Tools: 0.11.0\r\nOS: MacOS 10.11.6\r\n\r\nCPP tools is continually giving me an error that both \"malloc\" and \"free\" cannot be found:\r\n![screen shot 2017-05-08 at 12 18 45 pm](https://cloud.githubusercontent.com/assets/17415937/25821154/d7042d2e-33e8-11e7-81f8-c3d21b042f39.png)\r\n\r\nThis cpp file includes a header files which contains the following includes:\r\n```#include <cstdio>\r\n#include <cstdlib>\r\n#include <cstring>\r\n#include <cstdint>\r\n#include <cmath>\r\n#include <string>\r\n```\r\nMy configuration settings are set as:\r\n\r\n```     \"configurations\": [\r\n        {\r\n            \"name\": \"Mac\",\r\n            \"includePath\": [\r\n                \"${workspaceRoot}\",\r\n                \"/usr/include/c++/4.2.1\",\r\n                \"/usr/local/Cellar/gcc/6.3.0_1/include/c++/6.3.0/\"\r\n            ],\r\n            \"defines\": [],\r\n            \"browse\": {\r\n                \"path\": [\r\n                    \"${workspaceRoot}\",\r\n                    \"/usr/include/c++/4.2.1\",\r\n                    \"/usr/local/Cellar/gcc/6.3.0_1/include/c++/6.3.0/\"\r\n                ],\r\n                \"limitSymbolsToIncludedHeaders\": true,\r\n                \"databaseFilename\": \"${workspaceRoot}/.vscode/browse.vc.db\"\r\n            }\r\n        },\r\n```\r\nI can jump to 4 separate definitions of cstdlib that are found by CPPTools, but for some reason, it still thinks malloc and free are undefined.\r\nAny ideas?\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/comments/300326873","html_url":"https://github.com/Microsoft/vscode-cpptools/issues/701#issuecomment-300326873","issue_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/701","id":300326873,"user":{"login":"bobbrow","id":12818240,"avatar_url":"https://avatars0.githubusercontent.com/u/12818240?v=3","gravatar_id":"","url":"https://api.github.com/users/bobbrow","html_url":"https://github.com/bobbrow","followers_url":"https://api.github.com/users/bobbrow/followers","following_url":"https://api.github.com/users/bobbrow/following{/other_user}","gists_url":"https://api.github.com/users/bobbrow/gists{/gist_id}","starred_url":"https://api.github.com/users/bobbrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobbrow/subscriptions","organizations_url":"https://api.github.com/users/bobbrow/orgs","repos_url":"https://api.github.com/users/bobbrow/repos","events_url":"https://api.github.com/users/bobbrow/events{/privacy}","received_events_url":"https://api.github.com/users/bobbrow/received_events","type":"User","site_admin":false},"created_at":"2017-05-09T23:07:32Z","updated_at":"2017-05-09T23:07:32Z","body":"They are very similar, and in many cases will be identical, but have a slight difference.\r\n\r\n**includePath** is the list of (non-recursive) include paths that your compiler would use to find header files during compilation.  (e.g. the list of paths you would send to the compiler with `-I`)\r\n\r\n**browse.path** is the list of paths that the browse engine (the old IntelliSense engine) traverses recursively to find header files and build up a database of symbols. Symbols from header files not included by any source file can end up in the IntelliSense database.\r\n\r\nSince it might not be desirable to recursively traverse all folders in the **includePath** and due to some implementation details of how the browse engine discovers included header files that I won't delve into here, we now have two settings.\r\n\r\nFor the **browse.path** setting, adding `/usr/include/*` might be preferable since that will tell the browse engine not to do a recursive search through *everything*.\r\n"}}
{"actor":{"display_login":"bobbrow"}}