Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    iostream: No such file or directory

    Help wanted · · · – – – · · ·
    3
    5
    4031
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Javitxu Namas
      Javitxu Namas last edited by

      Hi. I’m was used a notepad with wxdevc++ compilator and the iostream not work. Then I install MinGW like others computer so iostream word properly. I adjust MppExec plugin to C:/MinGW/bin But I same received: “iostream: No such file or directory”

      1 Reply Last reply Reply Quote 0
      • Scott Sumner
        Scott Sumner last edited by

        This is not Notepad++ related AT ALL! Please find an appropriate (DIFFERENT) place to ask your question.

        1 Reply Last reply Reply Quote 0
        • Scott Sumner
          Scott Sumner last edited by

          Well, okay, I think you mean NppExec rather than MppExec so that threw me off, it is good to proofread your posts before submitting. I think you’re going to have to tell more about your NppExec setup before anyone will be able to help.

          1 Reply Last reply Reply Quote 0
          • Javitxu Namas
            Javitxu Namas last edited by

            Yes. NppExec. Sorry :S

            Well. I made only two changes in the default setting of NppExec.
            1.- After install NppExec I check in menu > Plugins > NppExec > Follow $(CURRENT_DIRECTORY)
            2.- I set this text in Execute window:

            NPP_SAVE
            cmd /c del /Q “$(CURRENT_DIRECTORY)$(NAME_PART).­exe”
            C:\MinGW\bin\g++.exe “$(FULL_CURRENT_PATH)” -o $(NAME_PART)
            cmd /c start $(CURRENT_DIRECTORY)$(NAME_PART).exe

            As I say, on other computers I work well. but in this used before the compiler that comes with “wxDev C ++” worked fine until you try to use the iostream libraries so I went to put it as I have on other computers, but over the MinGW compiler still does not work.

            Is there any place where you tell the Notepad ++ the path where libraries are to be used?

            Claudia Frank 1 Reply Last reply Reply Quote 0
            • Claudia Frank
              Claudia Frank @Javitxu Namas last edited by

              @Javitxu-Namas

              npp doesn’t know anything about mingw as well as nppexec.
              You need to provide the information where to find the libraries, headers etc…
              The example above should give you an idea what needs to be done.

              // c 	                Compiles without linking.
              // Dname=definition 	Defines a symbol (as with #define).
              // E                    Stop after the preprocessing stage.
              // g                    Produce debugging information.
              // I                    Searches the given directory for "includes".
              // llibname             Searches the specified library when linking.
              // ofilename            Names the output file.
              // -help                Provides (some) help.
              // -version             Displays the version number.
              
              g++ --version           // print compiler version
              
              ENV_SET PATH = D:\ProgramData\Compiler\MinGW\bin;$(SYS.PATH) // extend path variable
              
              
              //g++ -Wall -g -std=c++11 -o $(NAME_PART).exe $(FULL_CURRENT_PATH) -Ld D:\ProgramData\Compiler\MinGW\lib\libshlwapi.a
              g++ -Wall -g -std=c++11 -o $(NAME_PART).exe $(FULL_CURRENT_PATH) -ID:\Repositories\boost\
              
              
              $(NAME_PART).exe
              

              Cheers
              Claudia

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright © 2014 NodeBB Forums | Contributors