C++ Module “failed to read module 'std.io.gcm': No such file or directory”What are the differences between a pointer variable and a reference variable in C++?How can I profile C++ code running on Linux?The Definitive C++ Book Guide and ListWhy can templates only be implemented in the header file?What is the effect of extern “C” in C++?What is the “-->” operator in C++?Why do we need virtual functions in C++?Easiest way to convert int to string in C++C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming?Why is reading lines from stdin much slower in C++ than Python?
Walter Rudin's mathematical analysis: theorem 2.43. Why proof can't work under the perfect set is uncountable.
Error in master's thesis, I do not know what to do
How can a new country break out from a developed country without war?
Sort with assumptions
Why is implicit conversion not ambiguous for non-primitive types?
Checking @@ROWCOUNT failing
Can a Knock spell open the door to Mordenkainen's Magnificent Mansion?
Recursively move files within sub directories
Connection Between Knot Theory and Number Theory
Does capillary rise violate hydrostatic paradox?
How to get directions in deep space?
Why does the Persian emissary display a string of crowned skulls?
Why is "la Gestapo" feminine?
Weird lines in Microsoft Word
Relations between homogeneous polynomials
How to test the sharpness of a knife?
What (if any) is the reason to buy in small local stores?
How would a solely written language work mechanically
What is the period/term used describe Giuseppe Arcimboldo's style of painting?
What should be the ideal length of sentences in a blog post for ease of reading?
When is the exact date for EOL of Ubuntu 14.04 LTS?
Why do Radio Buttons not fill the entire outer circle?
Trouble reading roman numeral notation with flats
Reasons for having MCU pin-states default to pull-up/down out of reset
C++ Module “failed to read module 'std.io.gcm': No such file or directory”
What are the differences between a pointer variable and a reference variable in C++?How can I profile C++ code running on Linux?The Definitive C++ Book Guide and ListWhy can templates only be implemented in the header file?What is the effect of extern “C” in C++?What is the “-->” operator in C++?Why do we need virtual functions in C++?Easiest way to convert int to string in C++C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming?Why is reading lines from stdin much slower in C++ than Python?
I am trying to test c++ module using the docker image
docker pull benboeckel/cxx-modules-sandbox:latest
docker run -it image_id
sh-4.4$ g++ --version
g++ (GCC) 9.0.1 20190301 (experimental) [c++-modules:20190305-1618]
Then, create a test file.
import std.io;
int main()
return 0;
I got the following error :
sh-4.4$ g++ -o m main.cpp -std=c++2a -fmodules-ts In module imported
at main.cpp:1:1: std.io: error: failed to read module 'std.io.gcm': No
such file or directory std.io: fatal error: jumping off the crazy
train to crashville compilation terminated.
update:
The following code works fine.
//m.cpp
export module M;
export int sq(int i) return i*i;
//main.cpp
import M;
int main() return sq(9);
g++ -o m main.cpp m.cpp -std=c++2a -fmodules-ts
c++ c++20
add a comment |
I am trying to test c++ module using the docker image
docker pull benboeckel/cxx-modules-sandbox:latest
docker run -it image_id
sh-4.4$ g++ --version
g++ (GCC) 9.0.1 20190301 (experimental) [c++-modules:20190305-1618]
Then, create a test file.
import std.io;
int main()
return 0;
I got the following error :
sh-4.4$ g++ -o m main.cpp -std=c++2a -fmodules-ts In module imported
at main.cpp:1:1: std.io: error: failed to read module 'std.io.gcm': No
such file or directory std.io: fatal error: jumping off the crazy
train to crashville compilation terminated.
update:
The following code works fine.
//m.cpp
export module M;
export int sq(int i) return i*i;
//main.cpp
import M;
int main() return sq(9);
g++ -o m main.cpp m.cpp -std=c++2a -fmodules-ts
c++ c++20
What isstd.io
? Is that part of GCC's modules implementation?
– Nicol Bolas
Mar 7 at 6:00
@NicolBolas I copy the code from c++ module ts: open-std.org/jtc1/sc22/wg21/docs/papers/2018/n4720.pdf
– camino
Mar 7 at 13:55
2
That doesn't answer the question. Does GCC provide astd.io
module? If not, then you can't import it.
– Nicol Bolas
Mar 7 at 14:38
@NicolBolas Thanks, hope I can find it in its documents
– camino
Mar 7 at 16:32
@NicolBolas I think in this docker image, the std.io is not ready. But the compiler do support module :).
– camino
Mar 8 at 1:26
add a comment |
I am trying to test c++ module using the docker image
docker pull benboeckel/cxx-modules-sandbox:latest
docker run -it image_id
sh-4.4$ g++ --version
g++ (GCC) 9.0.1 20190301 (experimental) [c++-modules:20190305-1618]
Then, create a test file.
import std.io;
int main()
return 0;
I got the following error :
sh-4.4$ g++ -o m main.cpp -std=c++2a -fmodules-ts In module imported
at main.cpp:1:1: std.io: error: failed to read module 'std.io.gcm': No
such file or directory std.io: fatal error: jumping off the crazy
train to crashville compilation terminated.
update:
The following code works fine.
//m.cpp
export module M;
export int sq(int i) return i*i;
//main.cpp
import M;
int main() return sq(9);
g++ -o m main.cpp m.cpp -std=c++2a -fmodules-ts
c++ c++20
I am trying to test c++ module using the docker image
docker pull benboeckel/cxx-modules-sandbox:latest
docker run -it image_id
sh-4.4$ g++ --version
g++ (GCC) 9.0.1 20190301 (experimental) [c++-modules:20190305-1618]
Then, create a test file.
import std.io;
int main()
return 0;
I got the following error :
sh-4.4$ g++ -o m main.cpp -std=c++2a -fmodules-ts In module imported
at main.cpp:1:1: std.io: error: failed to read module 'std.io.gcm': No
such file or directory std.io: fatal error: jumping off the crazy
train to crashville compilation terminated.
update:
The following code works fine.
//m.cpp
export module M;
export int sq(int i) return i*i;
//main.cpp
import M;
int main() return sq(9);
g++ -o m main.cpp m.cpp -std=c++2a -fmodules-ts
c++ c++20
c++ c++20
edited Mar 8 at 1:20
camino
asked Mar 7 at 1:29
caminocamino
3,873114170
3,873114170
What isstd.io
? Is that part of GCC's modules implementation?
– Nicol Bolas
Mar 7 at 6:00
@NicolBolas I copy the code from c++ module ts: open-std.org/jtc1/sc22/wg21/docs/papers/2018/n4720.pdf
– camino
Mar 7 at 13:55
2
That doesn't answer the question. Does GCC provide astd.io
module? If not, then you can't import it.
– Nicol Bolas
Mar 7 at 14:38
@NicolBolas Thanks, hope I can find it in its documents
– camino
Mar 7 at 16:32
@NicolBolas I think in this docker image, the std.io is not ready. But the compiler do support module :).
– camino
Mar 8 at 1:26
add a comment |
What isstd.io
? Is that part of GCC's modules implementation?
– Nicol Bolas
Mar 7 at 6:00
@NicolBolas I copy the code from c++ module ts: open-std.org/jtc1/sc22/wg21/docs/papers/2018/n4720.pdf
– camino
Mar 7 at 13:55
2
That doesn't answer the question. Does GCC provide astd.io
module? If not, then you can't import it.
– Nicol Bolas
Mar 7 at 14:38
@NicolBolas Thanks, hope I can find it in its documents
– camino
Mar 7 at 16:32
@NicolBolas I think in this docker image, the std.io is not ready. But the compiler do support module :).
– camino
Mar 8 at 1:26
What is
std.io
? Is that part of GCC's modules implementation?– Nicol Bolas
Mar 7 at 6:00
What is
std.io
? Is that part of GCC's modules implementation?– Nicol Bolas
Mar 7 at 6:00
@NicolBolas I copy the code from c++ module ts: open-std.org/jtc1/sc22/wg21/docs/papers/2018/n4720.pdf
– camino
Mar 7 at 13:55
@NicolBolas I copy the code from c++ module ts: open-std.org/jtc1/sc22/wg21/docs/papers/2018/n4720.pdf
– camino
Mar 7 at 13:55
2
2
That doesn't answer the question. Does GCC provide a
std.io
module? If not, then you can't import it.– Nicol Bolas
Mar 7 at 14:38
That doesn't answer the question. Does GCC provide a
std.io
module? If not, then you can't import it.– Nicol Bolas
Mar 7 at 14:38
@NicolBolas Thanks, hope I can find it in its documents
– camino
Mar 7 at 16:32
@NicolBolas Thanks, hope I can find it in its documents
– camino
Mar 7 at 16:32
@NicolBolas I think in this docker image, the std.io is not ready. But the compiler do support module :).
– camino
Mar 8 at 1:26
@NicolBolas I think in this docker image, the std.io is not ready. But the compiler do support module :).
– camino
Mar 8 at 1:26
add a comment |
1 Answer
1
active
oldest
votes
Modules got added to the C++20 draft, but it doesn't imply that the standard library is now modularized. There's an effort to modularize it, but we don't have anything concrete so far:
While we appear to have achieved consensus on a design for the modules language feature, our plan for how and when the C++ standard library will be modularized are not as mature. Some proposals have been made ([P0581R1] and [P1212R0]) and preliminary discussions have taken place ([2018-Jacksonville-LEWG-P0581R0-Minutes] and [2018-San-Diego-EWG-P1212R0-Minutes]), but we haven’t committed to a path yet. Given that the C++20 cycle is nearly over, it’s time for us to make a decision on our strategy for standard library modules in C++20.
Thanks! I will looking forward to using it. It is a really nice feature.
– camino
Mar 9 at 17:51
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55034696%2fc-module-failed-to-read-module-std-io-gcm-no-such-file-or-directory%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Modules got added to the C++20 draft, but it doesn't imply that the standard library is now modularized. There's an effort to modularize it, but we don't have anything concrete so far:
While we appear to have achieved consensus on a design for the modules language feature, our plan for how and when the C++ standard library will be modularized are not as mature. Some proposals have been made ([P0581R1] and [P1212R0]) and preliminary discussions have taken place ([2018-Jacksonville-LEWG-P0581R0-Minutes] and [2018-San-Diego-EWG-P1212R0-Minutes]), but we haven’t committed to a path yet. Given that the C++20 cycle is nearly over, it’s time for us to make a decision on our strategy for standard library modules in C++20.
Thanks! I will looking forward to using it. It is a really nice feature.
– camino
Mar 9 at 17:51
add a comment |
Modules got added to the C++20 draft, but it doesn't imply that the standard library is now modularized. There's an effort to modularize it, but we don't have anything concrete so far:
While we appear to have achieved consensus on a design for the modules language feature, our plan for how and when the C++ standard library will be modularized are not as mature. Some proposals have been made ([P0581R1] and [P1212R0]) and preliminary discussions have taken place ([2018-Jacksonville-LEWG-P0581R0-Minutes] and [2018-San-Diego-EWG-P1212R0-Minutes]), but we haven’t committed to a path yet. Given that the C++20 cycle is nearly over, it’s time for us to make a decision on our strategy for standard library modules in C++20.
Thanks! I will looking forward to using it. It is a really nice feature.
– camino
Mar 9 at 17:51
add a comment |
Modules got added to the C++20 draft, but it doesn't imply that the standard library is now modularized. There's an effort to modularize it, but we don't have anything concrete so far:
While we appear to have achieved consensus on a design for the modules language feature, our plan for how and when the C++ standard library will be modularized are not as mature. Some proposals have been made ([P0581R1] and [P1212R0]) and preliminary discussions have taken place ([2018-Jacksonville-LEWG-P0581R0-Minutes] and [2018-San-Diego-EWG-P1212R0-Minutes]), but we haven’t committed to a path yet. Given that the C++20 cycle is nearly over, it’s time for us to make a decision on our strategy for standard library modules in C++20.
Modules got added to the C++20 draft, but it doesn't imply that the standard library is now modularized. There's an effort to modularize it, but we don't have anything concrete so far:
While we appear to have achieved consensus on a design for the modules language feature, our plan for how and when the C++ standard library will be modularized are not as mature. Some proposals have been made ([P0581R1] and [P1212R0]) and preliminary discussions have taken place ([2018-Jacksonville-LEWG-P0581R0-Minutes] and [2018-San-Diego-EWG-P1212R0-Minutes]), but we haven’t committed to a path yet. Given that the C++20 cycle is nearly over, it’s time for us to make a decision on our strategy for standard library modules in C++20.
answered Mar 9 at 16:49
Mário FeroldiMário Feroldi
2,10221340
2,10221340
Thanks! I will looking forward to using it. It is a really nice feature.
– camino
Mar 9 at 17:51
add a comment |
Thanks! I will looking forward to using it. It is a really nice feature.
– camino
Mar 9 at 17:51
Thanks! I will looking forward to using it. It is a really nice feature.
– camino
Mar 9 at 17:51
Thanks! I will looking forward to using it. It is a really nice feature.
– camino
Mar 9 at 17:51
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55034696%2fc-module-failed-to-read-module-std-io-gcm-no-such-file-or-directory%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What is
std.io
? Is that part of GCC's modules implementation?– Nicol Bolas
Mar 7 at 6:00
@NicolBolas I copy the code from c++ module ts: open-std.org/jtc1/sc22/wg21/docs/papers/2018/n4720.pdf
– camino
Mar 7 at 13:55
2
That doesn't answer the question. Does GCC provide a
std.io
module? If not, then you can't import it.– Nicol Bolas
Mar 7 at 14:38
@NicolBolas Thanks, hope I can find it in its documents
– camino
Mar 7 at 16:32
@NicolBolas I think in this docker image, the std.io is not ready. But the compiler do support module :).
– camino
Mar 8 at 1:26