Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: ‘registerTestMethods’ is not a member of ‘Catch’ #47

Closed
jcockhren opened this issue Aug 12, 2011 · 2 comments
Closed

error: ‘registerTestMethods’ is not a member of ‘Catch’ #47

jcockhren opened this issue Aug 12, 2011 · 2 comments

Comments

@jcockhren
Copy link

The Minimal case below doesn't compile:

#import<Foundation/Foundation.h>
#define CATCH_CONFIG_MAIN
#import"catch.hpp"

TEST_CASE("basic/first", "Suppose to fail") {
    REQUIRE(2==0);
}

Compile command used (assumed that "catch.hpp" is in the same directory as mm file):

gcc -o test BasicTest.mm -framework Foundation -lobjc

This is using gcc version 4.2.1 on OSX 10.6.8 (64-bit).

@philsquared
Copy link
Collaborator

Thanks for reporting this @jcockhren
Looks like I broke the ObjC build when I refactored for the single include library.

I believe this should be fixed now. Could you please get the latest, try again, and let me know.

Thanks.

@jcockhren
Copy link
Author

Thanks! It compiles and runs now. I originally was getting linker errors concerning std. Modified the command to the following and it works like a charm.

gcc -o test BasicTest.mm -framework Foundation -lobjc -lstdc++

Goodbye OCunit (SenTestingKit)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants