I am learning to program in C. I have Code Blocks installed and working great and have used it to write code to learn.
I want to write code in Notepad ++ and compile it in Power Shell which is set up. I have GNU gcc in C:\Gnu gcc and Code Blocks finds an uses it, [I added it to the environment path] as well as, Power Shell; if i type in gcc ex1.c -o ex1.exe, the .exe there works with ./ex1 or if i type in invoke-item ex1.exe, then the command window comes up with the output listed. I use the getchar() to make it stay on screen so I can see the result.
I am working through the tutorial Learn C the Hard Way Learn C The Hard Way
The author wants us to use MAKE. I can not make MAKE work.
I have Googled and Googled and Googled for how to make it work. My Make exe is in GNU gcc\mysys\1.0.
I read that I should cope make.exe into GNU gcc\bin which I did and at least I get error messages like "file not found". If it is not there, I get Make is not a commandlet ... error in Power Shell.
I can not find MAKEFILE anywhere.
I have bookmarked several how to's to make my own MAKEFILE but to heck with that if I have to create or change it for each .c file i want to compile.
Is there a generic MAKEFILE that will compile all simple lesson .c files?
Thanks
David
I want to write code in Notepad ++ and compile it in Power Shell which is set up. I have GNU gcc in C:\Gnu gcc and Code Blocks finds an uses it, [I added it to the environment path] as well as, Power Shell; if i type in gcc ex1.c -o ex1.exe, the .exe there works with ./ex1 or if i type in invoke-item ex1.exe, then the command window comes up with the output listed. I use the getchar() to make it stay on screen so I can see the result.
I am working through the tutorial Learn C the Hard Way Learn C The Hard Way
The author wants us to use MAKE. I can not make MAKE work.
I have Googled and Googled and Googled for how to make it work. My Make exe is in GNU gcc\mysys\1.0.
I read that I should cope make.exe into GNU gcc\bin which I did and at least I get error messages like "file not found". If it is not there, I get Make is not a commandlet ... error in Power Shell.
I can not find MAKEFILE anywhere.
I have bookmarked several how to's to make my own MAKEFILE but to heck with that if I have to create or change it for each .c file i want to compile.
Is there a generic MAKEFILE that will compile all simple lesson .c files?
Thanks
David
My Computer
- Computer type
- PC/Desktop
- Computer Manufacturer/Model Number
- Dell Studio
- OS
- Microsoft Windows 7 Professional 64-bit 7601 Multiprocessor Free Service Pack 1
- CPU
- Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz
- Motherboard
- Dell Inc. 0M017G
- Memory
- 6.00 GB
- Graphics Card(s)
- (1) Intel(R) G45/G43 Express Chipset (Microsoft Corporation
- Sound Card
- (1) High Definition Audio Device (2) High Definition Audio
- Monitor(s) Displays
- HP2009m
- Screen Resolution
- 1600 x 900 x 32 bits (4294967296 colors) @ 60 Hz
- Hard Drives
- (1) SAMSUNG HD642JJ ATA Device (2) Generic- Compact Flash USB Device (3) Generic- MS/MS-Pro USB Device (4) Generic- SD/MMC USB Device (5) Generic- SM/xD Picture USB Device