Issue with building the example #80
-
So I just installed Zork for ubuntu by following the guide, everything seems to have been installed ok as in I didn't receive any warnings or errors during installation. Quickly wanted to test out Zork by using the example given in the readme.
Generates the files described in the readme:
running
Grammarly notified me of some grammar and spelling mistakes so here they are!
What am I doing wrong here? I have to say that I have not used C++ modules yet so sorry if I'm just making a beginner mistake! P.S. In the zork.toml file there seems to be a problem with how the [executable], [tests], and [modules] sections are configured out of the box: They are prefixed with "./PROJECT_NAME" (eg. "./TestZork/*.cpp in the [executable] section). On Linux this leads to an error such paths do not exist from the location where one would normally build the project (as in from the actual project folder - in this case thw "TestZork" folder). |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
Hi there! First of all, thanks for your detailed review, and for spotting the grammar errors. We will fix them! :) Going to the issue. First, whenever you find an error like this, try to use the
Another thing is Could you please share with us your Another option. For use I generated a fresh project, and this is the config file:
Question: Did you build the program from source, used the Please, let us know the answer to those questions, and we will investigate further your issue. Thanks in advance for your time. |
Beta Was this translation helpful? Give feedback.
-
Mmm... still seems weird to me. This is my output on a
Post me please your Even tho, seems like there's something strange with the I will try to upgrade Next, if the issue still persists, try to change the macro inside main to this:
As you may see, Clang is using |
Beta Was this translation helpful? Give feedback.
-
Hey there! Vacations are such a good thing, I hope you enjoyed them! I've noticed that you are using now Try with the import syntax, and share your feedback. Thanks again! |
Beta Was this translation helpful? Give feedback.
Hey there! Vacations are such a good thing, I hope you enjoyed them!
I've noticed that you are using now
Clang 17
. That's good, but a couple of things:In order to use the
importsyntax, you need first to precompile the system header into a prebuilt module unit. With Clang 17, you should use againt the
import stdway, because I hope that their module maps are working correctly in your installation. Since you are using a Unix system, by linking against
libc++` everything should be running fine now.Try with the import syntax, and share your feedback.
Thanks again!