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?













1















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









share|improve this question
























  • 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
















1















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









share|improve this question
























  • 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














1












1








1


1






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









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 1:20







camino

















asked Mar 7 at 1:29









caminocamino

3,873114170




3,873114170












  • 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


















  • 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

















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













1 Answer
1






active

oldest

votes


















2














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.







share|improve this answer























  • Thanks! I will looking forward to using it. It is a really nice feature.

    – camino
    Mar 9 at 17:51











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
);



);













draft saved

draft discarded


















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









2














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.







share|improve this answer























  • Thanks! I will looking forward to using it. It is a really nice feature.

    – camino
    Mar 9 at 17:51
















2














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.







share|improve this answer























  • Thanks! I will looking forward to using it. It is a really nice feature.

    – camino
    Mar 9 at 17:51














2












2








2







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.







share|improve this answer













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.








share|improve this answer












share|improve this answer



share|improve this answer










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


















  • 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




















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved