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

Header files not found on Mac OS 10.11 #124

Open
jnsat opened this issue Oct 12, 2015 · 2 comments
Open

Header files not found on Mac OS 10.11 #124

jnsat opened this issue Oct 12, 2015 · 2 comments

Comments

@jnsat
Copy link
Contributor

jnsat commented Oct 12, 2015

When using a makefile such as

test:
    cxxtestgen --runner=ErrorPrinter -o slinkedlist-runner.cpp slinkedlist-test.cpp
    cxxtestgen --runner=ErrorPrinter -o dlinkedlist-runner.cpp dlinkedlist-test.cpp
    g++ -o test-runner slinkedlist-runner.cpp
    g++ -o test-runner dlinkedlist-runner.cpp
    ./test-runner

I receive the error

fatal error: 'cxxtest/TestListener.h' file not found

I think I had it installed via brew and it was working previously. It may have stopped when I upgraded. I tried downloading it from the site and added bin/cxxtest/bin to my path. I don't know where the header files need to be. I tried adding it do DYLD_LIBRARY_PATH but it seems by default that var is empty so it may not be the right one.

echo  $DYLD_LIBRARY_PATH
bin/cxxtest:
@jnsat
Copy link
Contributor Author

jnsat commented Oct 13, 2015

Solution:

xcode-select --install

See http://stackoverflow.com/questions/23905661/on-mac-g-fails-to-search-usr-local-include-and-usr-local-lib-by-default
Maybe it can be added to the manual. Which one is the right one?

@atomgalaxy
Copy link
Member

Thanks, and sorry for getting to this so late! It's been a wild year for me so far, and I'm finally hitting my stride with projects that aren't work.

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