[Dev-C++] making a binary image using gcc or g++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Ben M. <ili...@at...> - 2008-07-17 02:02:40
|
Hello everybody. I am trying to use MinGW to make a flat binary image, but am unsure how to do it. I tried to compile using the following commands: gcc -c program.c ld program.o -o program.bin --oformat=binary --Ttext=0x0 this told me that I could not perform PE operations on non-PE file program.bin. I also tried this: gcc -c program.c ld -o test.bin -Ttext 0x0 -e _main test.o This gave me the error: Undefined reference to _alloca Undefined reference to __main How do i specify the command line options to make the binary image? Also, if i cant use gcc, how can i use g++ to make the binary image? |