This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%=========================================================================== | |
% Piano Sonata Op.111 - II. Arietta, in C Major (L.v.Beethoven) | |
%=========================================================================== | |
% | |
%--- Notes ----------------------------------------------------------------- | |
% | |
% * test | |
% | |
%--------------------------------------------------------------------------- | |
% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%=========================================================================== | |
% Piano Sonata Op.111 - II. Arietta, in C Major (L.v.Beethoven) | |
%=========================================================================== | |
% | |
%--- Notes ----------------------------------------------------------------- | |
% | |
% * test | |
% | |
%--------------------------------------------------------------------------- | |
% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%=========================================================================== | |
% Piano Sonata Op.111 - II. Arietta, in C Major (L.Beethoven) | |
%=========================================================================== | |
% | |
%--- Notes ----------------------------------------------------------------- | |
% | |
% * test | |
% | |
%--------------------------------------------------------------------------- | |
% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling Allegro for djgpp, optimised. Please wait... | |
i586-pc-msdosdjgpp-gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -Wno-unused -mtune=i586 -O2 -funroll-loops -ffast-math -fomit-frame-pointer -I. -I./include -o obj/djgpp/alleg/allegro.o -c src/allegro.c | |
i586-pc-msdosdjgpp-gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -Wno-unused -mtune=i586 -O2 -funroll-loops -ffast-math -fomit-frame-pointer -I. -I./include -o obj/djgpp/alleg/blit.o -c src/blit.c | |
i586-pc-msdosdjgpp-gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -Wno-unused -mtune=i586 -O2 -funroll-loops -ffast-math -fomit-frame-pointer -I. -I./include -o obj/djgpp/alleg/bmp.o -c src/bmp.c | |
i586-pc-msdosdjgpp-gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -Wno-unused -mtune=i586 -O2 -funroll-loops -ffast-math -fomit-frame-pointer -I. -I./include -o obj/djgpp/alleg/clip3d.o -c src/clip3d.c | |
i586-pc-msdosdjgpp-gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -Wno-unused -mtune=i586 -O2 -funroll-loops -ffast-math -fomit-frame-pointer -I. -I./include -o obj/djgpp/alleg/clip3df |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/djgpp/bin/i586-pc-msdosdjgpp-gcc -o dist/main.exe src/main.o -Lvendor/t/lib/djgpp -lalleg | |
vendor/t/lib/djgpp/liballeg.a(allegro.o):allegro.c:(.text+0x30): multiple definition of `set_window_title' | |
src/main.o:main.c:(.text+0x1e): first defined here | |
vendor/t/lib/djgpp/liballeg.a(allegro.o):allegro.c:(.text+0x50): multiple definition of `desktop_color_depth' | |
src/main.o:main.c:(.text+0x46): first defined here | |
vendor/t/lib/djgpp/liballeg.a(allegro.o):allegro.c:(.text+0x70): multiple definition of `get_desktop_resolution' | |
src/main.o:main.c:(.text+0x6b): first defined here | |
vendor/t/lib/djgpp/liballeg.a(allegro.o):allegro.c:(.text+0x90): multiple definition of `_default_ds' | |
src/main.o:main.c:(.text+0x9c): first defined here | |
vendor/t/lib/djgpp/liballeg.a(allegro.o):allegro.c:(.text+0xa0): multiple definition of `bmp_write_line' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <allegro.h> | |
int main(void) | |
{ | |
/* you should always do this at the start of Allegro programs */ | |
if (allegro_init() != 0) | |
return 1; | |
/* set up the keyboard handler */ | |
install_keyboard(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'm trying to compile Allegro for making a DOS game. My compiler is DJGPP, compiled for Mac OS X, which works for generating .exe files that run on DOS. | |
First, the compilation of the library: | |
./xmake.sh lib | |
i586-pc-msdosdjgpp-gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -Wno-unused -mtune=i586 -O2 -funroll-loops -ffast-math -fomit-frame-pointer -I. -I./include -o obj/djgpp/alleg/allegro.o -c src/allegro.c | |
i586-pc-msdosdjgpp-gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -Wno-unused -mtune=i586 -O2 -funroll-loops -ffast-math -fomit-frame-pointer -I. -I./include -o obj/djgpp/alleg/blit.o -c src/blit.c | |
i586-pc-msdosdjgpp-gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -Wno-unused -mtune=i586 -O2 -funroll-loops -ffast-math -fomit-frame-pointer -I. -I./include -o obj/djgpp/alleg/bmp.o -c src/bmp.c | |
... | |
i586-pc-msdosdjgpp-ar rs lib/djgpp/liballeg.a obj/djgpp/alleg/allegro.o obj/djgpp/alleg/blit.o [...] obj/djgpp/alleg/djirq.o obj/djgpp/alleg/djirqs.o |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/djgpp/bin/i586-pc-msdosdjgpp-gcc -o dist/main.exe src/main.o | |
src/main.o:main.c:(.text+0x15): undefined reference to `_install_allegro_version_check' | |
src/main.o:main.c:(.text+0x25): undefined reference to `system_driver' | |
src/main.o:main.c:(.text+0x31): undefined reference to `system_driver' | |
src/main.o:main.c:(.text+0x4d): undefined reference to `system_driver' | |
src/main.o:main.c:(.text+0x59): undefined reference to `system_driver' | |
src/main.o:main.c:(.text+0x72): undefined reference to `system_driver' | |
src/main.o:main.c:(.text+0x7e): more undefined references to `system_driver' follow | |
src/main.o:main.c:(.text+0x101): undefined reference to `gfx_driver' | |
src/main.o:main.c:(.text+0x1fe): undefined reference to `screen' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/djgpp/bin/i586-pc-msdosdjgpp-gcc -v -c -o src/main.o src/main.c -DHAVE_STDBOOL_H=1 -Ivendor/allegro-4.2.2-djgpp-xc/include | |
/usr/local/djgpp/bin/i586-pc-msdosdjgpp-gcc -v -o dist/main.exe src/main.o -Lvendor/allegro-4.2.2-djgpp-xc/lib/djgpp -lalleg | |
Using built-in specs. | |
COLLECT_GCC=/usr/local/djgpp/bin/i586-pc-msdosdjgpp-gcc | |
Target: i586-pc-msdosdjgpp | |
Configured with: ../gnu/gcc-5.20/configure --target=i586-pc-msdosdjgpp --program-prefix=i586-pc-msdosdjgpp- --prefix=/usr/local/djgpp --disable-nls --disable-plugin --disable-lto --enable-lto --enable-libquadmath-support --with-gmp=/Users/msikma/Source/build-djgpp/build/djcross-gcc-5.2.0/tmpinst --with-mpfr=/Users/msikma/Source/build-djgpp/build/djcross-gcc-5.2.0/tmpinst --with-mpc=/Users/msikma/Source/build-djgpp/build/djcross-gcc-5.2.0/tmpinst --enable-version-specific-runtime-libs --enable-languages=c,c++ | |
Thread model: single | |
gcc version 5.2.0 (GCC) | |
COLLECT_GCC_OPTIONS='-v' '-c' '-o' 'src/main.o' '-D' 'HAVE_STDBOOL_H=1' '-I' 'vendor/allegro-4.2.2-d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/djgpp/bin/i586-pc-msdosdjgpp-gcc -c -o src/main.o src/main.c -DHAVE_STDBOOL_H=1 -Ivendor/allegro-4.2.2-djgpp-xc/include | |
/usr/local/djgpp/bin/i586-pc-msdosdjgpp-gcc -o dist/main.exe src/main.o -Lvendor/allegro-4.2.2-djgpp-xc/lib/djgpp -lalleg | |
vendor/allegro-4.2.2-djgpp-xc/lib/djgpp/liballeg.a(allegro.o):allegro.c:(.text+0x30): multiple definition of `set_window_title' | |
src/main.o:main.c:(.text+0x1e): first defined here | |
vendor/allegro-4.2.2-djgpp-xc/lib/djgpp/liballeg.a(allegro.o):allegro.c:(.text+0x50): multiple definition of `desktop_color_depth' | |
src/main.o:main.c:(.text+0x46): first defined here | |
vendor/allegro-4.2.2-djgpp-xc/lib/djgpp/liballeg.a(allegro.o):allegro.c:(.text+0x70): multiple definition of `get_desktop_resolution' | |
src/main.o:main.c:(.text+0x6b): first defined here | |
[... about 18 thousand lines] |