www.delorie.com/djgpp/bugs/show.cgi | search |
Simple Hello World example (test.c): #include <stdio.h> int main(void) { printf("Hello, World.\n"); return 0; } Command Line: gcc test.c -o test.exe System: Window XP Home, in cmd.exe window Problem: When compiling a simple C program, gcc compiler reports: C:\gcc\projects\pci>gcc test.c -o test.exe gcc.exe: Internal error: (null) (program as) Please submit a full bug report. See <URL:http://gcc.gnu.org/bugs.html> for instructions. C:\gcc\projects\pci>
Doh! Use Zip Picker and download and install all of the Zip files suggested. Each zip file should be unzipped into the same base directory like c:\djgpp. Each Zip file overlays the same directories but they unzip different files necessary to install the environment you have chosen. Set the appropriate environment variables (I use a batch file) and you're ready to go.
In most cases this is caused because of not installing the "Basic assembler, linker" zip package
webmaster | delorie software privacy |
Copyright © 2010 by DJ Delorie | Updated Jul 2010 |