Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Please help urgent

    I have the following files in my home directory.


    when I do g++ main.cpp, it says Inputfunction.h not found

    I use
    g++ Main.cpp to compile, what am I doing wrong? Please help ASAP, I waited till the last minute to do this project

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Täby, Sweden
    My guess is that you've written #include <Inputfunction.h>, right? That tells cpp to look in the system's include directories, which apparently is not where Inputfunction.h is.
    Replace it with #include "Inputfunction.h", which tells cpp to look in the current directory and the other user specified include directories (which I'm guessing is none).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts