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

Include project headers #760

Closed
ken-matsui opened this issue May 8, 2023 Discussed in #759 · 0 comments · Fixed by #766
Closed

Include project headers #760

ken-matsui opened this issue May 8, 2023 Discussed in #759 · 0 comments · Fixed by #766

Comments

@ken-matsui
Copy link
Member

Discussed in https://github.com/orgs/poac-dev/discussions/759

Originally posted by oraqlle May 7, 2023
It seems that headers cannot be found within a Poac package. How does one specify headers to Poac?

Current project structure

current-project
├── LICENSE
├── README.md
├── include
│   └── header.hpp
├── poac.toml
└── src
    └── main.cpp

Output

$ poac run -r      
   Compiling 1/1: current-project v0.1.0 ("/home/user/current-project")
FAILED: /home/user/current-project/poac-out/release/current-project 
g++ -std=c++20     src/main.cpp -o /home/user/current-project/poac-out/release/current-project
src/main.cpp:3:10: fatal error: header.hpp: No such file or directory
    3 | #include "header.hpp"
      |          ^~~~~~~~~~~
compilation terminated.
Error: failed to build package `current-project`

Caused by:
    internal build system has been stopped with an error:
subcommand failed
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

Successfully merging a pull request may close this issue.

1 participant