i have just written a small program on DEV C++.
i have been using it for couple of months but i never observed this error.

#include<stdio.h>
int main()
{
    printf("Welcome\n");
    system("PAUSE"):
    return 0;
}

could not create makefile
I/o error 32


any idea? what does that mean

Dani AI

Generated

This looks like a classic Windows file-sharing/permission problem rather than a compile-time C error. reported the build failing with IO error 32 while Dev-C++ tried to write Makefile.win. rightly pointed out the stray colon after the system() call, which is a real source-level bug, but that kind of syntax error normally causes a compiler error — it does not explain why the IDE cannot create the makefile file.

IO error 32 on Windows maps to a sharing/locking failure (the OS reports the file cannot be opened because another process has it). The build sequence in Dev-C++ writes a Makefile before invoking make, so anything preventing the IDE from creating or overwriting that file will abort the build.

Try these focused troubleshooting steps (in order):

  • Close Dev-C++ and any running compiler/make/gcc instances; check Task Manager for lingering make/gcc/g++ processes and terminate them.
  • Locate and delete or rename the existing Makefile.win (or check its properties). If it is read-only or locked, the IDE can’t overwrite it.
  • Run Dev-C++ once as Administrator to rule out permission problems, or move the project out of protected locations (avoid Program Files or the root of C:; put projects in your user Documents).
  • Temporarily disable antivirus/sync/backup software that might lock new files in that folder (Dropbox, antivirus real-time protection, etc.).
  • If the error path looks malformed (missing slashes after the drive letter) check your Dev-C++ project settings and installation path; reinstall to a simple path if needed.
  • If the lock persists, use a handle/lock viewer (e.g., Sysinternals Process Explorer) to see which process holds the file.

Fix the source-level typo and include the proper header for system() as a separate step, but keep in mind those are not the root cause of an I/O sharing violation. After correcting the code, repeat the above checks and rebuild.

Recommended Answers

All 2 Replies

system("PAUSE"):
system("PAUSE"):

Aia,
sorry to tell you, but the error is not because of that.

its because of #include<stdlib.h>

dont know whether devcpp has the support of stdlib or we need to make any extra arrangements for that while running.

the error is :

Cannot create Makefile: "C:Dev-Cpp\Makefile.win
IO error 32.
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.