during compilation of a program its showing error that "recipe for target 'mainn.o' f
during compilation of a program its showing error that "line 28",, G:\aa\Makefile. win
" recipe for target 'main.o' failed"
please help me how to debug it..
The makefile is generated based on your project code. Without seeing your code for main(), I can't say for sure but you may not have compiled correctly.
Generating an object file ( a .o) can fail if your code has errors.
Maybe gcc.exe is not accessible with your current PATH.
try typing the offending command at the command prompt:
gcc.exe -c main.c -o main.o
This can't succeed because it doesn't include the CFLAGS, but the nature of the failure will tell you if gcc is running. That command line should succeed if you temporarily comment out the #includes in main.c.
Maybe gcc.exe is not accessible with your current PATH.
try typing the offending command at the command prompt:
gcc.exe -c main.c -o main.o
This can't succeed because it doesn't include the CFLAGS, but the nature of the failure will tell you if gcc is running. That command line should succeed if you temporarily comment out the #includes in main.c.
Another possibility is that the long list of include paths makes the expanded command line too long for your shell.
Comment