#160 make error???

closed-invalid
binutils (105)
2014-08-20
2002-07-06
Anna Brown
No

Correct me if I am wrong, but it look's strange to me...
I have two makefiles. The only difference between them
is the comment
at the end of the line:

First makefile--------------------------------------
all: hello.cpp
g++ -o hello.exe hello.cpp -I/mingw/fltk/include \ -L/mingw/fltk/lib -lfltk -mwindows -lgdi32 \ -lcomctl32 -lwsock32 #COMMENT
----------------------------------------------------------

Second makefile----------------------------------
all: hello.cpp
g++ -o hello.exe hello.cpp -I/mingw/fltk/include \ -L/mingw/fltk/lib -lfltk -mwindows -lgdi32 \ -lcomctl32 -lwsock32
----------------------------------------------------------

What I can not understand is why the second makefile
does not do the
job. I always get the following error messages:

/d/home/neaa/dev/fltk/proba1/$ make
g++ -o hello.exe hello.cpp -I/mingw/fltk/include \ -L/mingw/fltk/lib -lfltk -mwindows -lgdi32 \ -lcomctl32 -lwsock32
hello.cpp:26: Fl.H: No such file or directory
hello.cpp:27: Fl_Window.H: No such file or directory
hello.cpp:28: Fl_Box.H: No such file or directory
d:\home\system\msys\mingw\bin\make.exe: *** [all] Error 1
/d/home/neaa/dev/fltk/proba1/$

If it means something... I am getting this on a windows
2000 machine.

Anna Brown

Discussion

  • Luke Dunstan

    Luke Dunstan - 2002-07-07

    Logged In: YES
    user_id=30442

    It looks like you are using the Mingw version of 'make'
    (/mingw/bin/make.exe) instead of the MSYS one
    (/bin/make.exe). When you install MSYS, it is supposed to
    rename /mingw/bin/make.exe to /mingw/bin/mingw32-
    make.exe (which is necessary because /mingw/bin comes
    before /bin in your PATH). Your problem may be caused by
    either (a) an old version of MSYS, (b) a bug in the MSYS
    installer or (c) you made a mistake during the installation or
    interrupted it.

    The simple solution is to type:

    mv /mingw/bin/make.exe /mingw/bin/mingw32-make.exe

    BTW, what version of MSYS are you using? Also, did you
    install MSYS in d:/home/system/msys/1.0 or just
    d:/home/system/msys? I am not sure whether it will work
    correctly without being in the "1.0" subdirectory.

     
  • Anna Brown

    Anna Brown - 2002-07-07

    Logged In: YES
    user_id=574125

    Thank you, thank you, thank you! :o))))

    >The simple solution is to type:
    >
    >mv /mingw/bin/make.exe /mingw/bin/mingw32-make.exe

    Now it is working perfectly!

    >BTW, what version of MSYS are you using?

    Well I have downloaded it from sourceforge a few days ago:
    MSYS-1.0.8-i386-2002.06.18-1.exe

    >Also, did you install MSYS in d:/home/system/msys/1.0 or
    >just d:/home/system/msys?

    Thanx again,
    Anna Brown

     
  • Earnie Boyd

    Earnie Boyd - 2002-08-05
    • status: open --> closed-invalid
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks