CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: make trouble

  1. #1
    Join Date
    Dec 2010
    Posts
    907

    make trouble

    "make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
    make[1]: Entering directory `/c/Users/HYLuk/Documents/NetBeansProjects/Perfectsi
    m'
    VPATH=. -spec win32-g++ -o qttmp-Debug.mk nbproject/qt-Debug.pro
    /bin/sh: -spec: command not found
    make[1]: *** [nbproject/qt-Debug.mk] Error 127
    make[1]: Leaving directory `/c/Users/HYLuk/Documents/NetBeansProjects/Perfectsim
    '
    make: *** [.build-impl] Error 2

    =============================
    sh on its own can run
    I don't know why if sh is in the system path,how come it can be run standalone
    HELP please

  2. #2
    Join Date
    Dec 2010
    Posts
    907

    Re: make trouble

    where is the directory /bin on windows? Can't find it

  3. #3
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: make trouble

    Windows don't have a /bin.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  4. #4
    Join Date
    Jan 2004
    Location
    Düsseldorf, Germany
    Posts
    2,401

    Re: make trouble

    If you look closely, you will see that the error message is actually coming from /bin/sh and the error reads:
    Code:
    -spec: command not found
    So, some line in your make file evaluates to starting with -spec, which is not a proper command. My guess is that you don't have CC or CXX defined.
    More computing sins are committed in the name of efficiency (without necessarily achieving it) than for any other single reason - including blind stupidity. --W.A.Wulf

    Premature optimization is the root of all evil --Donald E. Knuth


    Please read Information on posting before posting, especially the info on using [code] tags.

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