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

How to open c++20 modules feature? #2239

Open
ericyonng opened this issue Aug 31, 2024 · 2 comments
Open

How to open c++20 modules feature? #2239

ericyonng opened this issue Aug 31, 2024 · 2 comments
Labels

Comments

@ericyonng
Copy link

ericyonng commented Aug 31, 2024

Env: linux/clang15
Premake Version: dev latest
Hello, I'm building my projects using premak5, an error occurred:
HelloFoo.cppm
TestConceptModules.cpp
../../testsuit/testsuit/testinst/TestConceptModules/TestConceptModules.cpp:32:8: fatal error: module 'HelloFoo' not found.

My project: https://github.com/ericyonng/CrystalNet

parts of premake5.lua
image
image

HelloFoo module code:
file:HelloFoo.cppm
image

TestConceptModules.cpp file:

image

Thanks!

@Jarod42
Copy link
Contributor

Jarod42 commented Aug 31, 2024

As stated in doc, enablemodules is only available for visual studio.

@ericyonng
Copy link
Author

As stated in doc, enablemodules is only available for visual studio.

That's it, thanks!

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

No branches or pull requests

2 participants