Thread: Dev-C++ Build Failure

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    1

    Dev-C++ Build Failure

    Hi,
    I'm trying to build a file in Dev-C++ and when I try to compile, I get this in the log:


    Executing make...
    make.exe -f "..\..\Documents and Settings\Haseo\Desktop\mizore\console-src\Makefile" all
    make.exe: *** No rule to make target `/usr/include/math.h', needed by `AliceConsoleShell.o'. Stop.

    Execution terminated

    Any help would be appreciated.
    Thanks,

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Could a moderator split this from the 1 year old unrelated thread?

    catchra: Your makefile says that you some file (probbably AliceConsoleShell.c or .cpp) is depending on /usr/include/math.h - which make can not find, and there is no "recipe" to create such a file. Considering that you appear to be compiling on Windows, perhaps you shouldn't have dependencies on /usr/include files, as these are Unix/Linux type directories. [I also think that makefiles should not have dependencies on system include files, but that is a slightly different matter].

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by matsp
    Could a moderator split this from the 1 year old unrelated thread?
    Right.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. PlaySound
    By cangel in forum C++ Programming
    Replies: 16
    Last Post: 10-08-2009, 05:29 PM
  2. How to build, run Boland C++ 6 source file via VS2005?
    By userpingz in forum C++ Programming
    Replies: 2
    Last Post: 05-21-2009, 03:25 AM
  3. Replies: 0
    Last Post: 10-07-2008, 12:09 PM
  4. Replies: 2
    Last Post: 03-18-2006, 08:20 PM
  5. Boom, Headoshot!!
    By mrafcho001 in forum A Brief History of Cprogramming.com
    Replies: 50
    Last Post: 07-21-2005, 08:28 PM