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

Readme/Quick Start: Inaccurate 'Compile & Run' #13

Closed
e-dant opened this issue Oct 19, 2022 · 2 comments
Closed

Readme/Quick Start: Inaccurate 'Compile & Run' #13

e-dant opened this issue Oct 19, 2022 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@e-dant
Copy link
Owner

e-dant commented Oct 19, 2022

On Apple platforms, the user needs to link against two system libraries.

On most (all?) platforms, c++ should point to the platform's default C++ compiler.

We should change g++ to c++ and put something like $(uname | grep darwin && echo '-framework CoreFoundation -framework CoreServices') in the compile command from "Quick Start".

@e-dant e-dant self-assigned this Oct 19, 2022
@e-dant e-dant added the documentation Improvements or additions to documentation label Oct 19, 2022
@bosborne
Copy link

I think it would be:

$(uname | grep Darwin && echo '-framework CoreFoundation -framework CoreServices')

@e-dant
Copy link
Owner Author

e-dant commented Oct 21, 2022

This is fixed on next:

EXTRAS=$(test "$(uname)" = Darwin && echo '-framework CoreFoundation -framework CoreServices')

c++ -std=c++2a -O3 src/tiny-main.cpp -o watcher $EXTRAS

./watcher

@e-dant e-dant closed this as completed Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants