Menu

makefile.win cannot compile

Anubis208
2007-05-31
2012-09-26
  • Anubis208

    Anubis208 - 2007-05-31

    I am currently making a window with menus. The project has a main.cpp file, a resource.h file, and a menu.rc file. When I try to compile the project, I get the following message

    Could not create makefile: "C:\Documents and Settings\Carl Kolbo\My
    Documents\Dev-Cpp\menu\Makefile.win"
    I/O error 32


    Is there any way to fix this?

     
    • Anubis208

      Anubis208 - 2007-06-04

      I made a folder under C with my fathers permission but the same thing happens. compile log: Compiler: Default compiler
      Building Makefile: "C:\mycppstuff\menu3\Makefile.win"
      Executing make...
      make.exe -f "C:\mycppstuff\menu3\Makefile.win" all
      make.exe: *** No rule to make target `all'. Stop.

      Execution terminated

      I get the pop up: Could not create Makefile:"C:/mycppstuff\menu3\Makefile.win I/O error 32

       
      • Wayne Keen

        Wayne Keen - 2007-06-04

        Did you copy and paste your project in the new location, or did you create a new project from scratch?

        Wayne

         
    • Anubis208

      Anubis208 - 2007-06-06

      I meant the popup error message, not the compile log. When I open the Makefile in Notepad but it is blank. We have removed ther faulty drive so it's not the cause. I will look through taht and try to compile it command line.

       
    • Anonymous

      Anonymous - 2007-06-06

      The command line build will not work is the makefile is empty, it looks like Dev-C++ is encountering problems generating the makefile. This is likely to be a system issue rather than a Dev-C++ issue.

      Try these.

      1) Delete the makefile.win file, and Rebuild All
      2) Run chkdsk /f from the command line, when prompted answer yes to check on next reboot, and reboot.
      3) Run your virus scanner to do a full scan.
      4) Temporarily disable your anti-virus tool and try again. (do this while disconnected from the Internet)

      Clifford

       
    • Anubis208

      Anubis208 - 2007-06-07

      The first suggestion worked. Thanks a lot for the Help!

       
      • Anonymous

        Anonymous - 2007-06-07

        ... but do the second as well - there was obviously something wrong with this drive, chkdsk may fix it and prevent subsequent problems.

         
    • Wayne Keen

      Wayne Keen - 2007-05-31

      A couple of notes/questions/requests

      (1) Please post your full Basic 3, rather than just excerpting an error message. (The Basic 3 are covered the first thing in the thread titled "Please Read Before Posting a Question")

      (2) It is a really bad idea to put a project in a path with spaces in it, like

      C:\Documents and Settings\Carl Kolbo\My Documents\Dev-Cpp

      (That is mentioned prominently in the "Please Read" thread - I am getting the impression that you didn't read it before posting a question?) ;-)

      Wayne

       
    • Anubis208

      Anubis208 - 2007-05-31

      I did read it , but that was a few weeks ago. I don't have a choice about filename spaces, because windows XP handles it that way if you have multiple users on the same computer.
      I'm using version 4.9.9.2,
      compile log:Compiler: Default compiler
      Building Makefile: "C:\Documents and Settings\Carl Kolbo\My Documents\Dev-Cpp\menu\Makefile.win"
      Executing make...
      make.exe -f "C:\Documents and Settings\Carl Kolbo\My Documents\Dev-Cpp\menu\Makefile.win" all
      make.exe: *** No rule to make target `all'. Stop.

      Execution terminated
      Every project I've tried so far with the three above-mentioned files has done this.
      That should cover the three things.

       
      • Wayne Keen

        Wayne Keen - 2007-05-31

        I use XP on a variety of machines, and I don't have an issue with creating a directory like
        c:\mycstuff - what type of user are you on the machine in question?

        Wayne

         
    • Anubis208

      Anubis208 - 2007-05-31

      I'm an administrator, but my father, who owns the machine, won't let me do anything like that. I have asked him about it.

       
      • Wayne Keen

        Wayne Keen - 2007-05-31

        Well, you are going to have problems working that way. Intermittent, but serious.
        You probably will not be able to use Dev-C++ that way.

        I see several options:

        (1) Tell your father that the restriction to keeping all files in "my documents"
        is keeping Dev from being reliably useful - perhaps he will change his mind, if
        not

        (2) You should probably uninstall Dev-C++, and install another IDE in its place.
        wxDev-C++ seems to do OK with spaces, and is probably the next generation of
        Dev. CodeBlocks is another good MinGW based IDE.

        Wayne

         
    • Anubis208

      Anubis208 - 2007-05-31

      Thanks for the advice.

       
    • Anonymous

      Anonymous - 2007-05-31

      In that case you may be prevented from using Dev-C++ effectively, if you cannot get a concession on that one, use an alternative development tool. MS VC++ 2005 Express Edition for example.

      Alternatively:

      1) Open Notepad and enter the following text:

      subst x: "C:\Documents and Settings\Carl Kolbo\My Documents"

      2) Save the file as "mapx.bat" in your My Documents folder.

      3) Drag this file onto the Start->Programs->Startup menu, it will create a short-cut to the batch file there.

      Now every time you log in, the batch file will run and create a virtual drive X:, you your project now appears in X:\Dev-Cpp\menu (no spaces - tada!). (Note it also appears in My Documents - these are the same file not copies).

      Note that the makefile may require regeneration to remove references to the old paths (do a Rebuild All).

      Replace X for whatever drive letter you wish. The Startup stuff applies only to your login and poses no particular security risk, everyone should be happy.

      A third alternative is to get an external drive or USB memory stick and keep your files on that. Teh compilation process may thrash it and shorten its life however!

      Clifford

       
    • Anonymous

      Anonymous - 2007-06-04

      Several other solutions were suggested, did you try them? I would suggest that you might try them in this order:

      1) The subst solution
      2) wxDev-C++ as this is effectively Dev-C++ with additional tools, libraries and most importantly bug and annoyance fixes.
      3) Use some other IDE that can also uses MinGW as its compiler since your source code will not require any changes( for example Code::Blocks or Eclipse)
      4) Use Microsoft's free tools. This approach has merit even if only for the class leading debugger.

      Clifford

       
      • Wayne Keen

        Wayne Keen - 2007-06-04

        Does this path look unusual to you Clifford?

        Could not create Makefile:"C:/mycppstuff\menu3\Makefile.win I/O error 32

        Wayne

         
    • Anubis208

      Anubis208 - 2007-06-04

      I started a new one from scratch.
      I can't use any other programs right now, one of our hard drives had some problems and we need to get a new one.

       
      • Wayne Keen

        Wayne Keen - 2007-06-04

        What does the result of a "Rebuild All" look like?

        Wayne

         
    • Anubis208

      Anubis208 - 2007-06-04

      Compiler: Default compiler
      Building Makefile: "C:\mycppstuff\menu3\Makefile.win"
      Executing make clean
      make.exe: *** No rule to make target `clean'. Stop.

      Execution terminated

      The error message is the same.

       
    • Anonymous

      Anonymous - 2007-06-05

      >> I can't use any other programs right now,
      subst is not another program, it is a command built into cmd.exe. However, I am guessing that the problem will occur regardless of path or location, but it will avoid any problems that might be associated with file permissions or parental anxieties about untidy hard drives.

      >> The error message is the same.

      No, it is different! This time it is failing to find the 'clean' target rather than the 'all' target. If your hard drive has a problem perhaps this is related!?

      Can you open the make file (makefile.win) in a text editor (like Dev-C++ itself or Notepad)?

      Did Dev-C++ even get as far as generating the makefile?

      What does the make file contain? Is it complete?

      What happens if you attempt the build from the command line (enter the following commands):

      > cd C:\mycppstuff\menu3\ > path=c:\dev-cpp\bin;%path%
      > make -fmakefile.win all

      Then use the console edit menu to copy and paste the text here. (instruction here http://sourceforge.net/forum/message.php?msg_id=4138326 if you have never done this).

      Clifford

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.