Community
    • Login

    functions in c++

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 1.8k Views 2 Watching
    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.
    • Nidhi DeviN Offline
      Nidhi Devi
      last edited by

      I m trying to run more than one cpp file. this os the problem comes. Kindly suggest
      nidhi@ubuntu:~$ cd Desktop comb
      nidhi@ubuntu:~/Desktop$ g++ -o main.cpp Num.cpp
      g++: error: Num.cpp: No such file or directory
      g++: fatal error: no input files
      compilation terminated.

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Nidhi Devi
        last edited by

        @Nidhi-Devi
        but how exactly do you run it? Run menu? NppExec?
        From your output it looks like you are using the shell and not npp.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Nidhi DeviN Offline
          Nidhi Devi
          last edited by

          @Claudia Frank
          from terminal , I trying in ubantu.

          Claudia FrankC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC Offline
            Claudia Frank @Nidhi Devi
            last edited by

            @Nidhi-Devi

            Ok, so not related to Npp at all I guess.

            The error message is quite clear in your case,

            g++: error: Num.cpp: No such file or directory
            

            g++ tries to find the file Num.cpp but failed because
            it doesn’t exists, it isn’t in the same directory as your main.cpp,
            isn’t in a directory where PATH variable points to and
            isn’t in a directory where your include statements point to.

            But in general I would think that if you post c/c++ programming questions
            to a dedicated c/c++ programming forum, you might get faster and better answers.
            This forum is mainly about using/working with notepad++

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors