C++ Json library buildingWhat are the differences between a pointer variable and a reference variable in C++?How do I format a Microsoft JSON date?Can comments be used in JSON?How can I pretty-print JSON in a shell script?The Definitive C++ Book Guide and ListWhat is the correct JSON content type?What is the “-->” operator in C++?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?How do I POST JSON data with Curl from a terminal/commandline to Test Spring REST?

What was the exact wording from Ivanhoe of this advice on how to free yourself from slavery?

How much character growth crosses the line into breaking the character

Fear of getting stuck on one programming language / technology that is not used in my country

How do I color the graph in datavisualization?

Are the IPv6 address space and IPv4 address space completely disjoint?

Creature in Shazam mid-credits scene?

Melting point of aspirin, contradicting sources

Does the expansion of the universe explain why the universe doesn't collapse?

What is this called? Old film camera viewer?

How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?

What should you do when eye contact makes your subordinate uncomfortable?

Is it safe to use olive oil to clean the ear wax?

Store Credit Card Information in Password Manager?

How should I respond when I lied about my education and the company finds out through background check?

Why do compilers behave differently when static_cast(ing) a function to void*?

Loading commands from file

How can "mimic phobia" be cured or prevented?

Is there a name for this algorithm to calculate the concentration of a mixture of two solutions containing the same solute?

Did arcade monitors have same pixel aspect ratio as TV sets?

Yosemite Fire Rings - What to Expect?

Lowest total scrabble score

Has any country ever had 2 former presidents in jail simultaneously?

Drawing ramified coverings with tikz

Is the U.S. Code copyrighted by the Government?



C++ Json library building


What are the differences between a pointer variable and a reference variable in C++?How do I format a Microsoft JSON date?Can comments be used in JSON?How can I pretty-print JSON in a shell script?The Definitive C++ Book Guide and ListWhat is the correct JSON content type?What is the “-->” operator in C++?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?How do I POST JSON data with Curl from a terminal/commandline to Test Spring REST?













-1















I use https://github.com/nlohmann/json to handle in C++, I tried to build a simple code :



#include "lib/json-lib/json.hpp"
using json = nlohmann::json;

int main()
json jsonConfiguration;
while(1)
std::cout << "Hello Wolrd!" <<std::endl;

return 0;



I take the file json.hpp from https://github.com/nlohmann/json/tree/develop/single_include/nlohmann
i saved this one under lib/json-lib. I build my main.cpp with g++ main.cpp and when i launch it after build i got this :



bug screenshoot










share|improve this question






















  • I can only guess what the error message says because it is not in english, but my guess is that you don’t link against the stdlib and as of that std::basic_string is not known.

    – t.niese
    Mar 7 at 8:02












  • indeed i'm sorry i forgot to give traduction but i find a solve

    – JustinMartinDev
    Mar 8 at 11:12















-1















I use https://github.com/nlohmann/json to handle in C++, I tried to build a simple code :



#include "lib/json-lib/json.hpp"
using json = nlohmann::json;

int main()
json jsonConfiguration;
while(1)
std::cout << "Hello Wolrd!" <<std::endl;

return 0;



I take the file json.hpp from https://github.com/nlohmann/json/tree/develop/single_include/nlohmann
i saved this one under lib/json-lib. I build my main.cpp with g++ main.cpp and when i launch it after build i got this :



bug screenshoot










share|improve this question






















  • I can only guess what the error message says because it is not in english, but my guess is that you don’t link against the stdlib and as of that std::basic_string is not known.

    – t.niese
    Mar 7 at 8:02












  • indeed i'm sorry i forgot to give traduction but i find a solve

    – JustinMartinDev
    Mar 8 at 11:12













-1












-1








-1








I use https://github.com/nlohmann/json to handle in C++, I tried to build a simple code :



#include "lib/json-lib/json.hpp"
using json = nlohmann::json;

int main()
json jsonConfiguration;
while(1)
std::cout << "Hello Wolrd!" <<std::endl;

return 0;



I take the file json.hpp from https://github.com/nlohmann/json/tree/develop/single_include/nlohmann
i saved this one under lib/json-lib. I build my main.cpp with g++ main.cpp and when i launch it after build i got this :



bug screenshoot










share|improve this question














I use https://github.com/nlohmann/json to handle in C++, I tried to build a simple code :



#include "lib/json-lib/json.hpp"
using json = nlohmann::json;

int main()
json jsonConfiguration;
while(1)
std::cout << "Hello Wolrd!" <<std::endl;

return 0;



I take the file json.hpp from https://github.com/nlohmann/json/tree/develop/single_include/nlohmann
i saved this one under lib/json-lib. I build my main.cpp with g++ main.cpp and when i launch it after build i got this :



bug screenshoot







c++ json jsoncpp






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 7 at 7:59









JustinMartinDevJustinMartinDev

88111




88111












  • I can only guess what the error message says because it is not in english, but my guess is that you don’t link against the stdlib and as of that std::basic_string is not known.

    – t.niese
    Mar 7 at 8:02












  • indeed i'm sorry i forgot to give traduction but i find a solve

    – JustinMartinDev
    Mar 8 at 11:12

















  • I can only guess what the error message says because it is not in english, but my guess is that you don’t link against the stdlib and as of that std::basic_string is not known.

    – t.niese
    Mar 7 at 8:02












  • indeed i'm sorry i forgot to give traduction but i find a solve

    – JustinMartinDev
    Mar 8 at 11:12
















I can only guess what the error message says because it is not in english, but my guess is that you don’t link against the stdlib and as of that std::basic_string is not known.

– t.niese
Mar 7 at 8:02






I can only guess what the error message says because it is not in english, but my guess is that you don’t link against the stdlib and as of that std::basic_string is not known.

– t.niese
Mar 7 at 8:02














indeed i'm sorry i forgot to give traduction but i find a solve

– JustinMartinDev
Mar 8 at 11:12





indeed i'm sorry i forgot to give traduction but i find a solve

– JustinMartinDev
Mar 8 at 11:12












1 Answer
1






active

oldest

votes


















0














I use MinGW to build my file.



As you can read here :




If you use MinGW, then copy libstdc++-6.dll and libgcc_s_dw2-1.dll
into the same folder as your executable. – salted Sep 2 '17 at 22:44




So i did it and that works well, these files are stored in "/bin"






share|improve this answer






















    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%2f55038748%2fc-json-library-building%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









    0














    I use MinGW to build my file.



    As you can read here :




    If you use MinGW, then copy libstdc++-6.dll and libgcc_s_dw2-1.dll
    into the same folder as your executable. – salted Sep 2 '17 at 22:44




    So i did it and that works well, these files are stored in "/bin"






    share|improve this answer



























      0














      I use MinGW to build my file.



      As you can read here :




      If you use MinGW, then copy libstdc++-6.dll and libgcc_s_dw2-1.dll
      into the same folder as your executable. – salted Sep 2 '17 at 22:44




      So i did it and that works well, these files are stored in "/bin"






      share|improve this answer

























        0












        0








        0







        I use MinGW to build my file.



        As you can read here :




        If you use MinGW, then copy libstdc++-6.dll and libgcc_s_dw2-1.dll
        into the same folder as your executable. – salted Sep 2 '17 at 22:44




        So i did it and that works well, these files are stored in "/bin"






        share|improve this answer













        I use MinGW to build my file.



        As you can read here :




        If you use MinGW, then copy libstdc++-6.dll and libgcc_s_dw2-1.dll
        into the same folder as your executable. – salted Sep 2 '17 at 22:44




        So i did it and that works well, these files are stored in "/bin"







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 8 at 11:16









        JustinMartinDevJustinMartinDev

        88111




        88111





























            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%2f55038748%2fc-json-library-building%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

            1928 у кіно

            Захаров Федір Захарович

            Ель Греко