Catch2 icon indicating copy to clipboard operation
Catch2 copied to clipboard

Catch2 includes not found

Open AlexWang-16 opened this issue 8 years ago • 4 comments

Description

I'm getting multiple errors noting that the following include is not found "internal/catch_surpress_warnings.h"

Steps to reproduce

  1. Include catch.hpp into project
  2. create main.cpp which only contains the following 2 lines
#define CATCH_CONFIG_MAIN
#include "catch.hpp"
  1. Compile the program

If I attempt to comment out that line, I will get more warnings about other files not found.

Extra information

  • Catch version: v2.0.0
  • Operating System: MacOS 10.13.1
  • Compiler+version: Clang 4.2.1 (Apple LLVM v9)

AlexWang-16 avatar Dec 04 '17 17:12 AlexWang-16

Are you using the single include (i.e. the header in single_include)?

philsquared avatar Dec 04 '17 17:12 philsquared

Oops... just tried to include single_include version and got a different file not found error

'internal/catch_notimplemented_exception.h' file not found

AlexWang-16 avatar Dec 04 '17 18:12 AlexWang-16

Hi again @AlexWang-16,

I'm not quite sure what's going in. In the current single header there are no local #includes - only to the standard library (that's the point of it being a single header).

Are you sure you're using the single header everywhere? You say you're using v2.0.0 - is it something you took a while ago? The latest version of v2.0.1. Could you please try the latest version of see if you still have the same problem?

philsquared avatar Dec 04 '17 18:12 philsquared

Closing this due to inactivity.

horenmar avatar Feb 10 '18 20:02 horenmar