{"action":"created","issue":{"url":"https://api.github.com/repos/catchorg/Catch2/issues/1338","repository_url":"https://api.github.com/repos/catchorg/Catch2","labels_url":"https://api.github.com/repos/catchorg/Catch2/issues/1338/labels{/name}","comments_url":"https://api.github.com/repos/catchorg/Catch2/issues/1338/comments","events_url":"https://api.github.com/repos/catchorg/Catch2/issues/1338/events","html_url":"https://github.com/catchorg/Catch2/issues/1338","id":342019995,"node_id":"MDU6SXNzdWUzNDIwMTk5OTU=","number":1338,"title":"catch2 not detected on Arch Linux build ","user":{"login":"asi14","id":11183158,"node_id":"MDQ6VXNlcjExMTgzMTU4","avatar_url":"https://avatars0.githubusercontent.com/u/11183158?v=4","gravatar_id":"","url":"https://api.github.com/users/asi14","html_url":"https://github.com/asi14","followers_url":"https://api.github.com/users/asi14/followers","following_url":"https://api.github.com/users/asi14/following{/other_user}","gists_url":"https://api.github.com/users/asi14/gists{/gist_id}","starred_url":"https://api.github.com/users/asi14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asi14/subscriptions","organizations_url":"https://api.github.com/users/asi14/orgs","repos_url":"https://api.github.com/users/asi14/repos","events_url":"https://api.github.com/users/asi14/events{/privacy}","received_events_url":"https://api.github.com/users/asi14/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-17T17:47:22Z","updated_at":"2018-08-21T15:50:33Z","closed_at":"2018-08-21T15:50:33Z","author_association":"NONE","body":"## Description\r\n\r\nI was implementing the Arch Linux version of `Catch2` as part of a C++ project I was doing when the compiler reported that `Catch2`'s header was not found, specifically the error\r\n\r\n```\r\ntests.cpp:3:10: fatal error: catch2/catch.hpp: No such file or directory\r\n #include <catch2/catch.hpp>\r\n          ^~~~~~~~~~~~~~~~~~\r\ncompilation terminated.\r\n```\r\n\r\n`Catch2` runs when the `catch.hpp` file itself is included, perhaps indicating a problem with the Arch Linux implementation.\r\n\r\n### Steps to reproduce\r\n`sudo pacman -Syu`\r\n`sudo pacman -S catch2`\r\nI wrote a basic file `tests.cpp` to test the installation, specifically\r\n\r\n```\r\n#define CATCH_CONFIG_MAIN\r\n#include <catch2/catch.hpp>\r\n```\r\n\r\nI also followed the instructions indicated [here](https://github.com/catchorg/Catch2/blob/master/docs/tutorial.md#where-to-put-it) indicating how to implement `Catch2` when using it with a package manager (in my case). I finally ran `g++ tests.cpp -o tests` to compile, and ended up with the above error.\r\n\r\n### Extra information\r\n\r\n* Catch version: **2.2.3-1** (As indicated on the [package listing](https://www.archlinux.org/packages/community/any/catch2/))\r\n* Operating System: **Manjaro Linux v. 17.1.11** (a derivative of Arch)\r\n* Compiler+version: **gcc version 8.1.1 20180531 (GCC)**\r\n"},"comment":{"url":"https://api.github.com/repos/catchorg/Catch2/issues/comments/414723888","html_url":"https://github.com/catchorg/Catch2/issues/1338#issuecomment-414723888","issue_url":"https://api.github.com/repos/catchorg/Catch2/issues/1338","id":414723888,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDcyMzg4OA==","user":{"login":"asi14","id":11183158,"node_id":"MDQ6VXNlcjExMTgzMTU4","avatar_url":"https://avatars0.githubusercontent.com/u/11183158?v=4","gravatar_id":"","url":"https://api.github.com/users/asi14","html_url":"https://github.com/asi14","followers_url":"https://api.github.com/users/asi14/followers","following_url":"https://api.github.com/users/asi14/following{/other_user}","gists_url":"https://api.github.com/users/asi14/gists{/gist_id}","starred_url":"https://api.github.com/users/asi14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asi14/subscriptions","organizations_url":"https://api.github.com/users/asi14/orgs","repos_url":"https://api.github.com/users/asi14/repos","events_url":"https://api.github.com/users/asi14/events{/privacy}","received_events_url":"https://api.github.com/users/asi14/received_events","type":"User","site_admin":false},"created_at":"2018-08-21T15:50:33Z","updated_at":"2018-08-21T15:50:33Z","author_association":"NONE","body":"`catch2` now works on Arch, so I'm closing this issue. Thanks!"}}
{"actor":{"display_login":"asi14"}}