-
Notifications
You must be signed in to change notification settings - Fork 705
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
Cannot link to previous recipes headers #511
Comments
The content of the file is just a placeholder to remind you to substitute
the contents with the one in the recipe 1. You should replace the file in
recipe 2 with the real one in recipe 1. The authors use the method to
reduce the size of the entire repository
…On Fri, 21 Jun 2019, 15:13 mateovilla2, ***@***.***> wrote:
Dear Authors,
Congratulations for your book, I consider it very interesting.
I'm not very expert in compilation,. I just simply cannot compiles the
recipes of the first chapter
because it shows me the following error :
/home/mvilla/Documents/CMakeCookbook/chapter-01/recipe-02/cxx-example/hello-world.cpp:1:1:
error: expected unqualified-id before ‘.’ token
../../recipe-01/cxx-example/hello-world.cpp
Your Environment
- Version used: Cmake 3.13.4
- Operating System and version:gcc version 6.5.0 20181026 (Ubuntu
6.5.0-2ubuntu1~16.04)
How could I fix this ?
Thanks for your answer,
Mateo
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#511?email_source=notifications&email_token=AGE4AYFHHXGPDELJVRGTXBDP3THYPA5CNFSM4H2RSMZ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G26WUUA>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGE4AYASVOVRV5PKKNMOZN3P3THYPANCNFSM4H2RSMZQ>
.
|
Hello @mateovilla2 and thanks for your interest in this project!
Given this preamble, on Linux it is perfectly fine to not copy/replace anything to run the examples. So to get to the bottom of this, how did you get a copy of the repository and how are you issuing the compile commands? |
Thank @MicheleBe and @robertodr for your answers !!! Yes actually my question was more in the sense of what @robertodr says, I suppossed that on linux It was not necessary to copy/replace repeated code.
|
I suggest you clone or download the zip file directly from this repository. I am not quite sure how the publisher uploaded code on their servers and it does seems like symbolic links were replaced by actual files whose contents are not correct. |
Dear Authors,
Congratulations for your book, I consider it very interesting.
I'm not very expert in compilation,. I just simply cannot compiles the recipes of the first chapter
because it shows me the following error :
/home/mvilla/Documents/CMakeCookbook/chapter-01/recipe-02/cxx-example/hello-world.cpp:1:1: error: expected unqualified-id before ‘.’ token ../../recipe-01/cxx-example/hello-world.cpp
Your Environment
How could I fix this ?
Thanks for your answer,
Mateo
The text was updated successfully, but these errors were encountered: