CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 4 of 4 FirstFirst 1234
Results 46 to 52 of 52
  1. #46
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Problem with make in linux

    Quote Originally Posted by avinash_ramani
    now everything compiles fine. but when i type the linux executable file in the command line.
    it says command not found.
    why is that ?
    I don't know what that make file does. But isn't it obvious if you see an error like that? The command you believe is there isn't really there.

    What was created? Do you see the executable file? Is it executable?

    Regards,

    Paul McKenzie

  2. #47
    Join Date
    Mar 2007
    Location
    New Jersey
    Posts
    36

    Re: Problem with make in linux

    well this make file builds all the code files together into one executable.
    before it was showing errors. now as per your instruction i changed many things, now it is compiling and building. Even the executable file is present in the folder but it is not working. It says command not found. what could be the reason ?

    regards,
    avinash

  3. #48
    Join Date
    Dec 2005
    Location
    Prague, Czech Republic
    Posts
    208

    Re: Problem with make in linux

    On linux, current directory isn't usually in the PATH, so you have to run it as './command'. Also check if the file has execute permissions.

  4. #49
    Join Date
    Jun 2002
    Location
    Germany
    Posts
    1,557

    Re: Problem with make in linux

    Quote Originally Posted by avinash_ramani
    ...It says command not found. what could be the reason ?
    Type the executable filename with the explicit path information using ./
    Unix does not have the current directory in the path.
    Code:
    ./a_hosea
    You're gonna go blind staring into that box all day.

  5. #50
    Join Date
    Mar 2007
    Location
    New Jersey
    Posts
    36

    Re: Problem with make in linux

    thanks a ton guys. it worked great. I actually figured out that i had to type ./ahosea.
    but thanks a lot anyways.
    I solved a big problem which i had with this project.
    I should have posted my issue long back in this forum rather than trying to figure it out myself.

    thanks to everyone who responded to this post.

  6. #51
    Join Date
    Jun 2002
    Location
    Germany
    Posts
    1,557

    Re: Problem with make in linux

    Quote Originally Posted by avinash_ramani
    thanks a ton guys. it worked great.
    That's what CodeGuru is all about!
    And hey, you can cite us in your dissertation.
    You're gonna go blind staring into that box all day.

  7. #52
    Join Date
    Mar 2007
    Location
    New Jersey
    Posts
    36

    Re: Problem with make in linux

    I am definitely site going to site you guys in my disertation.
    thanks again

Page 4 of 4 FirstFirst 1234

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured