Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Help resolving a few errors on MSYS2 64-bit while trying to compile Allegro 5

This thread is locked; no one can reply to it. rss feed Print
Help resolving a few errors on MSYS2 64-bit while trying to compile Allegro 5
iheartcoffee
Member #16,518
August 2016
avatar

I want to build a static library of Allegro 5 so I can statically link it to all my programs.
This is the command I issued to cmake

cmake -G "MSYS Makefiles" -DWANT_MONOLITH=on -DSHARED=off -DWANT_EXAMPLES=off ..

Output of CMAKE:

#SelectExpand
1 2-- The C compiler identification is GNU 8.2.1 3-- The CXX compiler identification is GNU 8.2.1 4-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe 5-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe -- works 6-- Detecting C compiler ABI info 7-- Detecting C compiler ABI info - done 8-- Detecting C compile features 9-- Detecting C compile features - done 10-- Check for working CXX compiler: C:/msys64/mingw64/bin/g++.exe 11-- Check for working CXX compiler: C:/msys64/mingw64/bin/g++.exe -- works 12-- Detecting CXX compiler ABI info 13-- Detecting CXX compiler ABI info - done 14-- Detecting CXX compile features 15-- Detecting CXX compile features - done 16-- Guessed MinGW directory: C:/msys64/mingw64 17-- Performing Test HAVE_DM_POSITION 18-- Performing Test HAVE_DM_POSITION - Success 19-- Found PkgConfig: C:/msys64/mingw64/bin/pkg-config.exe (found version "0.29.2") 20-- Check if the system is big endian 21-- Searching 16 bit integer 22-- Looking for sys/types.h 23-- Looking for sys/types.h - found 24-- Looking for stdint.h 25-- Looking for stdint.h - found 26-- Looking for stddef.h 27-- Looking for stddef.h - found 28-- Check size of unsigned short 29-- Check size of unsigned short - done 30-- Using unsigned short 31-- Check if the system is big endian - little endian 32-- Looking for include file dirent.h 33-- Looking for include file dirent.h - found 34-- Looking for include file inttypes.h 35-- Looking for include file inttypes.h - found 36-- Looking for include file linux/input.h 37-- Looking for include file linux/input.h - not found 38-- Looking for include file stdbool.h 39-- Looking for include file stdbool.h - found 40-- Looking for include file stdint.h 41-- Looking for include file stdint.h - found 42-- Looking for include file sys/io.h 43-- Looking for include file sys/io.h - not found 44-- Looking for include file sys/stat.h 45-- Looking for include file sys/stat.h - found 46-- Looking for include file sys/time.h 47-- Looking for include file sys/time.h - found 48-- Looking for include file time.h 49-- Looking for include file time.h - found 50-- Looking for include file sys/utsname.h 51-- Looking for include file sys/utsname.h - not found 52-- Looking for include file sys/types.h 53-- Looking for include file sys/types.h - found 54-- Looking for include file soundcard.h 55-- Looking for include file soundcard.h - not found 56-- Looking for include file sys/soundcard.h 57-- Looking for include file sys/soundcard.h - not found 58-- Looking for include file machine/soundcard.h 59-- Looking for include file machine/soundcard.h - not found 60-- Looking for include file linux/soundcard.h 61-- Looking for include file linux/soundcard.h - not found 62-- Looking for include file libkern/OSAtomic.h 63-- Looking for include file libkern/OSAtomic.h - not found 64-- Looking for include file sys/inotify.h 65-- Looking for include file sys/inotify.h - not found 66-- Looking for include file sal.h 67-- Looking for include file sal.h - found 68-- Looking for getexecname 69-- Looking for getexecname - not found 70-- Looking for mkstemp 71-- Looking for mkstemp - found 72-- Looking for mmap 73-- Looking for mmap - not found 74-- Looking for mprotect 75-- Looking for mprotect - found 76-- Looking for sched_yield 77-- Looking for sched_yield - found 78-- Looking for sysconf 79-- Looking for sysconf - not found 80-- Looking for fseeko 81-- Looking for fseeko - found 82-- Looking for ftello 83-- Looking for ftello - found 84-- Looking for strerror_r 85-- Looking for strerror_r - not found 86-- Looking for strerror_s 87-- Looking for strerror_s - found 88-- Looking for _ftelli64 89-- Looking for _ftelli64 - found 90-- Looking for _fseeki64 91-- Looking for _fseeki64 - found 92-- Check size of _Bool 93-- Check size of _Bool - done 94-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV 95-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV - Failed 96-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H 97-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H - Failed 98-- Performing Test ALLEGRO_HAVE_VA_COPY 99-- Performing Test ALLEGRO_HAVE_VA_COPY - Success 100-- Found OpenGL: opengl32 101-- Found DINPUT: C:/msys64/mingw64/include 102-- Found D3D9: C:/msys64/mingw64/x86_64-w64-mingw32/include 103-- Found D3DX9: C:/msys64/mingw64/x86_64-w64-mingw32/include 104-- Found DSOUND: C:/msys64/mingw64/include 105-- Found XINPUT: C:/msys64/mingw64/x86_64-w64-mingw32/include 106-- Could NOT find GDIPLUS (missing: GDIPLUS_INCLUDE_DIR) 107-- Found ZLIB: C:/msys64/mingw64/lib/libz.dll.a (found version "1.2.11") 108-- Found PNG: C:/msys64/mingw64/lib/libpng.dll.a (found version "1.6.36") 109-- Found JPEG: C:/msys64/mingw64/lib/libjpeg.dll.a (found version "80") 110-- Performing Test JPEG_COMPILES 111-- Performing Test JPEG_COMPILES - Success 112-- Found WebP: C:/msys64/mingw64/include 113-- Found OpenAL: C:/msys64/mingw64/lib/libopenal.dll.a 114-- Could NOT find OPENSL (missing: OPENSL_INCLUDE_DIR OPENSL_LIBRARY) 115-- Found FLAC: C:/msys64/mingw64/include 116-- Performing Test FLAC_COMPILES 117-- Performing Test FLAC_COMPILES - Success 118-- Found DUMB: C:/msys64/mingw64/include 119-- Performing Test DUMB_COMPILES 120-- Performing Test DUMB_COMPILES - Success 121-- Found OGG: C:/msys64/mingw64/include 122-- Found VORBIS: C:/msys64/mingw64/include 123-- Performing Test VORBIS_COMPILES 124-- Performing Test VORBIS_COMPILES - Success 125-- Found OPUS: C:/msys64/mingw64/include/opus 126-- Performing Test OPUS_COMPILES 127-- Performing Test OPUS_COMPILES - Success 128-- Found Freetype: C:/msys64/mingw64/lib/libfreetype.dll.a (found version "2.9.1") 129-- Performing Test TTF_COMPILES 130-- Performing Test TTF_COMPILES - Success 131-- Found PhysFS: C:/msys64/mingw64/lib/libphysfs.dll.a 132-- Found PHYSFS: C:/msys64/mingw64/lib/libphysfs.dll.a 133-- Performing Test PHYSFS_IMPLICIT_ZLIB 134-- Performing Test PHYSFS_IMPLICIT_ZLIB - Success 135-- Found THEORA: C:/msys64/mingw64/include 136-- Found ENET: C:/msys64/mingw64/include 137-- Could NOT find LATEX (missing: LATEX_COMPILER) 138-- Found Git: C:/msys64/usr/bin/git.exe (found version "2.20.1") 139-- Using git to determine git ref for documentation. 140-- Using a40d30e21802ecf5c9382cf34af9b01bd3781e47 as the git ref for source links in the documentation. 141-- Configuring done 142-- Generating done 143-- Build files have been written to: C:/msys64/home/Sean/allegro5/build

CMAKE states that it cound not find

Could NOT find GDIPLUS (missing: GDIPLUS_INCLUDE_DIR)

as well as

Could NOT find OPENSL (missing: OPENSL_INCLUDE_DIR OPENSL_LIBRARY)

I tried

export GDIPLUS_INCLUDE_DIR=/mingw64/x86_64-mingw-w64-mingw32/include/gdiplus/

but it doesn't seem to work
and I don't know what OPENSL is. Is it OpenSSL or is that something else?

How do I get about fixing the missing libraries. I'm not too bothered about the missing latex compiler because it's probably for documentation.
Thanks in advance

Polybios
Member #12,293
October 2010

I remember I had to use something like this to make it find some of the libraries:

cmake G"MSYS Makefiles" -D"CMAKE_SYSTEM_PREFIX_PATH:PATH=/mingw64/x86_64-w64-mingw32" -DWANT_MONOLITH=on ../allegro5

Don't know if this is related to your problem, though.

Edit: This is from this thread (a bit dated now) which might contain some other useful information. It is not about building static libs, though. You may need to pass additional flags for that and/or build the dependencies statically.

Edgar Reynaldo
Member #8,592
May 2007
avatar

If you can, run cmake-gui .. instead. It will give you a graphical configuration menu for configuring the build for allegro 5.

If you can't you can specify certain cmake variables (not ENVIRONMENT variables) on the command line to cmake by using -DVAR=value.

So in your case, add -DGDIPLUS_INCLUDE_DIR=/mingw64/x86_64-mingw-w64-mingw32/include/gdiplus or wherever your gdi header is.

Don't worry about OPUS, WebP, OpenSL, OpenAL or a few others. Those are just addons dependencies. It will tell you what is going to be built.

Peter Hull
Member #1,136
March 2001

I had a similar problem a while ago, may or may not be relevant.
https://stackoverflow.com/questions/33124745/cmake-finding-32bit-gdi-on-64-bit-platform
Pete

Edgar Reynaldo
Member #8,592
May 2007
avatar

I noticed cmake found the dlls for the dependencies. You want to link to the static versions or allegro will depend on the dlls.

That's why I always use cmake-gui.

iheartcoffee
Member #16,518
August 2016
avatar

UPDATE:
Hi Edgar,
So I'm following your instructions for compiling Allegro 5
I keep getting the following error when I get to libtheora.

#SelectExpand
1$ mingw32-make 2c:/mingw/mingw32/bin/mingw32-make all-recursive 3mingw32-make[1]: Entering directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1' 4Making all in lib 5mingw32-make[2]: Entering directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/lib' 6mingw32-make[2]: Nothing to be done for 'all'. 7mingw32-make[2]: Leaving directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/lib' 8Making all in include 9mingw32-make[2]: Entering directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/include' 10Making all in theora 11mingw32-make[3]: Entering directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/include/theora' 12mingw32-make[3]: Nothing to be done for 'all'. 13mingw32-make[3]: Leaving directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/include/theora' 14mingw32-make[3]: Entering directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/include' 15mingw32-make[3]: Nothing to be done for 'all-am'. 16mingw32-make[3]: Leaving directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/include' 17mingw32-make[2]: Leaving directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/include' 18Making all in doc 19mingw32-make[2]: Entering directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/doc' 20Making all in spec 21mingw32-make[3]: Entering directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/doc/spec' 22mingw32-make[3]: Nothing to be done for 'all'. 23mingw32-make[3]: Leaving directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/doc/spec' 24mingw32-make[3]: Entering directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/doc' 25mingw32-make[3]: Nothing to be done for 'all-am'. 26mingw32-make[3]: Leaving directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/doc' 27mingw32-make[2]: Leaving directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/doc' 28Making all in tests 29mingw32-make[2]: Entering directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/tests' 30mingw32-make[2]: Nothing to be done for 'all'. 31mingw32-make[2]: Leaving directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/tests' 32Making all in m4 33mingw32-make[2]: Entering directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/m4' 34mingw32-make[2]: Nothing to be done for 'all'. 35mingw32-make[2]: Leaving directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/m4' 36Making all in examples 37mingw32-make[2]: Entering directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/examples' 38source='encoder_example.c' object='encoder_example-encoder_example.o' libtool=no \ 39depfile='.deps/encoder_example-encoder_example.Po' tmpdepfile='.deps/encoder_example-encoder_example.TPo' \ 40depmode=gcc3 C:/msys/1.0/bin/sh.exe ../depcomp \ 41gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I/c/mingw/mingw32/include/ -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops -I/c/mingw/mingw32/include -c -o encoder_example-encoder_example.o `test -f 'encoder_example.c' || echo './'`encoder_example.c 42encoder_example.c:55:15: error: static declaration of 'rint' follows non-static declaration 43 static double rint(double x) 44 ^~~~ 45In file included from encoder_example.c:45: 46c:/mingw/mingw32/i686-w64-mingw32/include/math.h:937:23: note: previous declaration of 'rint' was here 47 extern double __cdecl rint (double); 48 ^~~~ 49mingw32-make[2]: *** [Makefile:331: encoder_example-encoder_example.o] Error 1 50mingw32-make[2]: Leaving directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1/examples' 51mingw32-make[1]: *** [Makefile:291: all-recursive] Error 1 52mingw32-make[1]: Leaving directory 'C:/msys/1.0/home/Sean/libtheora-1.1.1' 53mingw32-make: *** [Makefile:205: all] Error 2

The command that I issued was:

LDFLAGS="-L/c/mingw/mingw32/lib" CFLAGS="-I/c/mingw/mingw32/include" CPPFLAGS="-I/c/mingw/mingw32/include/" ./configure --prefix=/c/mingw/mingw32 --enable-static --enable-shared

to configure it. I specified where to look for the OGG library.
However even though the configuration to generate the make files go well. I hit an error when I try to compile. What do you think I should do? I'm using MSYS instead of MSYS2.

Edgar Reynaldo
Member #8,592
May 2007
avatar

On my compiling page there is a source pack for all the dependencies. Inside you'll find an altered libtheora. the examples don't compile. This fixes that.

iheartcoffee
Member #16,518
August 2016
avatar

This is how far I've gotten with the static library build

#SelectExpand
1cmake -G "MSYS Makefiles" CMAKE_BUILD_TYPE=Release SHARED=off WANT_MONOLITH=on WANT_EXAMPLES=off WANT_DEMO=off WANT_T 2ESTS=on -DCMAKE_INSTALL_PREFIX=/c/mingw/mingw32/i686-w64-mingw32 .. 3-- Guessed MinGW directory: C:/mingw/mingw32 4-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV 5-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV - Failed 6-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H 7-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H - Failed 8-- Could NOT find WebP (missing: WEBP_INCLUDE_DIRS WEBP_LIBRARIES) 9WARNING: libwebp not found, disabling support 10-- Could NOT find OpenAL (missing: OPENAL_LIBRARY OPENAL_INCLUDE_DIR) 11-- Could NOT find OPENSL (missing: OPENSL_INCLUDE_DIR OPENSL_LIBRARY) 12-- Performing Test TTF_COMPILES 13-- Performing Test TTF_COMPILES - Failed 14-- Performing Test TTF_COMPILES_WITH_EXTRA_DEPS 15-- Performing Test TTF_COMPILES_WITH_EXTRA_DEPS - Failed 16CMake Warning at addons/CMakeLists.txt:135 (message): 17 FreeType doesn't compile. Disabling support. 18 19 20-- Not building ex_color 21-- Not building ex_depth_mask 22-- Not building ex_haptic2 23-- Not building ex_font_justify 24-- Not building ex_font_multiline 25-- Not building ex_logo 26-- Not building ex_projection 27-- Not building ex_ttf 28-- Not building ex_audio_chain 29-- Not building ex_synth 30-- Not building tests due to missing library. Have: allegro allegro_main allegro_image allegro_color allegro_font allegro_primitives 31-- Using git to determine git ref for documentation. 32-- Using 88dafea277f83c9af45d3439f8ab3c382594d882 as the git ref for source links in the documentation. 33-- Configuring done 34-- Generating done 35-- Build files have been written to: C:/msys/1.0/home/Sean/sources/allegro5/build_allegro_monolith

The True Type fonts are failing what should I do?

UPDATE:
I got a monolith to compile but it's giving me the following errors:

#SelectExpand
1gcc -Wall -ansi -O -pedantic -std=c99 -static ball.c -o ball.exe -lallegro_monolith-static -Wl,--subsystem,windows 2c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wsystem.c.obj): In function `al_win_get_path': 3c:/msys/1.0/home/Sean/sources/allegro5/src/win/wsystem.c:701: undefined reference to `GetModuleFileNameExW@16' 4c:/msys/1.0/home/Sean/sources/allegro5/src/win/wsystem.c:669: undefined reference to `GetModuleFileNameExW@16' 5c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wsystem.c.obj): In function `win_shutdown': 6c:/msys/1.0/home/Sean/sources/allegro5/src/win/wsystem.c:234: undefined reference to `_imp__timeEndPeriod@4' 7c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wsystem.c.obj): In function `al_win_safe_load_library': 8c:/msys/1.0/home/Sean/sources/allegro5/src/win/wsystem.c:851: undefined reference to `_imp__PathFindOnPathA@8' 9c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wsystem.c.obj): In function `win_initialize': 10c:/msys/1.0/home/Sean/sources/allegro5/src/win/wsystem.c:197: undefined reference to `_imp__timeBeginPeriod@4' 11c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wtime.c.obj): In function `low_res_current_time': 12c:/msys/1.0/home/Sean/sources/allegro5/src/win/wtime.c:48: undefined reference to `_imp__timeGetTime@0' 13c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wtime.c.obj): In function `al_win_init_time': 14c:/msys/1.0/home/Sean/sources/allegro5/src/win/wtime.c:101: undefined reference to `_imp__timeGetTime@0' 15c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wtime.c.obj): In function `al_init_timeout': 16c:/msys/1.0/home/Sean/sources/allegro5/src/win/wtime.c:147: undefined reference to `_imp__timeGetTime@0' 17c:/msys/1.0/home/Sean/sources/allegro5/src/win/wtime.c:144: undefined reference to `_imp__timeGetTime@0' 18c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wwindow.c.obj): In function `clear_window': 19c:/msys/1.0/home/Sean/sources/allegro5/src/win/wwindow.c:91: undefined reference to `_imp__GetStockObject@4' 20c:/msys/1.0/home/Sean/sources/allegro5/src/win/wwindow.c:91: undefined reference to `_imp__SelectObject@8' 21c:/msys/1.0/home/Sean/sources/allegro5/src/win/wwindow.c:92: undefined reference to `_imp__SetDCBrushColor@8' 22c:/msys/1.0/home/Sean/sources/allegro5/src/win/wwindow.c:94: undefined reference to `_imp__Rectangle@20' 23c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wwindow.c.obj): In function `window_callback': 24c:/msys/1.0/home/Sean/sources/allegro5/src/win/wwindow.c:755: undefined reference to `_imp__CreateRectRgn@16' 25c:/msys/1.0/home/Sean/sources/allegro5/src/win/wwindow.c:764: undefined reference to `_imp__GetRegionData@12' 26c:/msys/1.0/home/Sean/sources/allegro5/src/win/wwindow.c:786: undefined reference to `_imp__DeleteObject@4' 27c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wxthread.c.obj): In function `al_cond_timedwait': 28c:/msys/1.0/home/Sean/sources/allegro5/src/win/wxthread.c:339: undefined reference to `_imp__timeGetTime@0' 29c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(d3d_display_formats.cpp.obj): In function `al_d3d_generate_display_format_list': 30c:/msys/1.0/home/Sean/sources/allegro5/src/win/d3d_display_formats.cpp:49: undefined reference to `__cxa_guard_acquire' 31c:/msys/1.0/home/Sean/sources/allegro5/src/win/d3d_display_formats.cpp:50: undefined reference to `__cxa_guard_acquire' 32c:/msys/1.0/home/Sean/sources/allegro5/src/win/d3d_display_formats.cpp:50: undefined reference to `__cxa_guard_release' 33c:/msys/1.0/home/Sean/sources/allegro5/src/win/d3d_display_formats.cpp:49: undefined reference to `__cxa_guard_release' 34c:/msys/1.0/home/Sean/sources/allegro5/src/win/d3d_display_formats.cpp:49: undefined reference to `__cxa_guard_abort' 35c:/msys/1.0/home/Sean/sources/allegro5/src/win/d3d_display_formats.cpp:50: undefined reference to `__cxa_guard_abort' 36c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(d3d_display_formats.cpp.obj):d3d_display_formats.cpp:(.eh_frame+0x63): undefined reference to `__gxx_personality_v0' 37c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(d3d_display_formats.cpp.obj):d3d_display_formats.cpp:(.eh_frame+0xf3): undefined reference to `__gxx_personality_v0' 38c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_shader.c.obj): In function `check_gl_error': 39c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_shader.c:55: undefined reference to `_imp__glGetError@0' 40c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_shader.c.obj): In function `glsl_set_shader_sampler': 41c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_shader.c:279: undefined reference to `_imp__glBindTexture@8' 42c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_shader.c.obj): In function `glsl_use_shader': 43c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_shader.c:209: undefined reference to `_imp__glGetError@0' 44c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `wgl_flip_display': 45c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:1337: undefined reference to `_imp__glFlush@0' 46c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:1339: undefined reference to `_imp__SwapBuffers@4' 47c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `destroy_display_internals': 48c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:1104: undefined reference to `_imp__wglDeleteContext@4' 49c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `wgl_update_display_region': 50c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:1352: undefined reference to `_imp__glFlush@0' 51c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:1353: undefined reference to `_imp__SwapBuffers@4' 52c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `wgl_flip_display': 53c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:1337: undefined reference to `_imp__glFlush@0' 54c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:1339: undefined reference to `_imp__SwapBuffers@4' 55c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `init_temp_context': 56c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:135: undefined reference to `_imp__ChoosePixelFormat@8' 57c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:143: undefined reference to `_imp__SetPixelFormat@12' 58c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:149: undefined reference to `_imp__wglCreateContext@4' 59c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:156: undefined reference to `_imp__wglMakeCurrent@8' 60c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:159: undefined reference to `_imp__wglDeleteContext@4' 61c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `wgl_unset_current_display': 62c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:1181: undefined reference to `_imp__wglMakeCurrent@8' 63c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `wgl_set_current_display': 64c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:1158: undefined reference to `_imp__wglGetCurrentContext@0' 65c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:1162: undefined reference to `_imp__wglMakeCurrent@8' 66c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `is_wgl_extension_supported': 67c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:103: undefined reference to `_imp__glGetString@4' 68c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:107: undefined reference to `_imp__wglGetProcAddress@4' 69c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `get_available_pixel_formats_ext': 70c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:734: undefined reference to `_imp__wglGetCurrentContext@0' 71c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:735: undefined reference to `_imp__wglGetCurrentDC@0' 72c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `init_pixel_format_extensions': 73c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:176: undefined reference to `_imp__wglGetProcAddress@4' 74c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `get_available_pixel_formats_ext': 75c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:785: undefined reference to `_imp__wglMakeCurrent@8' 76c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:787: undefined reference to `_imp__wglDeleteContext@4' 77c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `select_pixel_format': 78c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:884: undefined reference to `_imp__SetPixelFormat@12' 79c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `get_pixel_formats_count_old': 80c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:210: undefined reference to `_imp__DescribePixelFormat@16' 81c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `get_available_pixel_formats_ext': 82c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:785: undefined reference to `_imp__wglMakeCurrent@8' 83c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:787: undefined reference to `_imp__wglDeleteContext@4' 84c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:785: undefined reference to `_imp__wglMakeCurrent@8' 85c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `init_ogl_context_ex': 86c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:670: undefined reference to `_imp__wglGetCurrentContext@0' 87c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:671: undefined reference to `_imp__wglGetCurrentDC@0' 88c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `init_context_creation_extensions': 89c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:194: undefined reference to `_imp__wglGetProcAddress@4' 90c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `init_ogl_context_ex': 91c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:694: undefined reference to `_imp__wglMakeCurrent@8' 92c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:696: undefined reference to `_imp__wglDeleteContext@4' 93c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `create_display_internals': 94c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:986: undefined reference to `_imp__wglMakeCurrent@8' 95c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:975: undefined reference to `_imp__wglCreateContext@4' 96c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `init_ogl_context_ex': 97c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:694: undefined reference to `_imp__wglMakeCurrent@8' 98c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wgl_disp.c.obj): In function `wgl_create_display': 99c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:1059: undefined reference to `_imp__glGetString@4' 100c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:1061: undefined reference to `_imp__glGetString@4' 101c:/msys/1.0/home/Sean/sources/allegro5/src/win/wgl_disp.c:1060: undefined reference to `_imp__glGetString@4' 102c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wmcursor.c.obj): In function `al_win_create_icon': 103c:/msys/1.0/home/Sean/sources/allegro5/src/win/wmcursor.c:97: undefined reference to `_imp__CreateCompatibleDC@4' 104c:/msys/1.0/home/Sean/sources/allegro5/src/win/wmcursor.c:101: undefined reference to `_imp__CreateBitmap@20' 105c:/msys/1.0/home/Sean/sources/allegro5/src/win/wmcursor.c:102: undefined reference to `_imp__CreateCompatibleBitmap@12' 106c:/msys/1.0/home/Sean/sources/allegro5/src/win/wmcursor.c:103: undefined reference to `_imp__SelectObject@8' 107c:/msys/1.0/home/Sean/sources/allegro5/src/win/wmcursor.c:104: undefined reference to `_imp__SetPixel@16' 108c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wmcursor.c.obj): In function `local_stretch_blit_to_hdc': 109c:/msys/1.0/home/Sean/sources/allegro5/src/win/wmcursor.c:475: undefined reference to `_imp__StretchDIBits@52' 110c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wmcursor.c.obj): In function `al_win_create_icon': 111c:/msys/1.0/home/Sean/sources/allegro5/src/win/wmcursor.c:132: undefined reference to `_imp__SetPixel@16' 112c:/msys/1.0/home/Sean/sources/allegro5/src/win/wmcursor.c:136: undefined reference to `_imp__SetPixel@16' 113c:/msys/1.0/home/Sean/sources/allegro5/src/win/wmcursor.c:147: undefined reference to `_imp__DeleteDC@4' 114c:/msys/1.0/home/Sean/sources/allegro5/src/win/wmcursor.c:159: undefined reference to `_imp__DeleteObject@4' 115c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wthread.c.obj): In function `al_win_thread_init': 116c:/msys/1.0/home/Sean/sources/allegro5/src/win/wthread.c:74: undefined reference to `_imp__CoInitialize@4' 117c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(wthread.c.obj): In function `al_win_thread_exit': 118c:/msys/1.0/home/Sean/sources/allegro5/src/win/wthread.c:84: undefined reference to `_imp__CoUninitialize@0' 119c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(extensions.c.obj): In function `load_extension': 120c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/extensions.c:288: undefined reference to `_imp__wglGetProcAddress@4' 121c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(extensions.c.obj): In function `ogl_is_extension_supported': 122c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/extensions.c:476: undefined reference to `_imp__glGetIntegerv@8' 123c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/extensions.c:503: undefined reference to `_imp__wglGetProcAddress@4' 124c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/extensions.c:488: undefined reference to `_imp__glGetString@4' 125c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(extensions.c.obj): In function `al_get_opengl_proc_address': 126c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/extensions.c:613: undefined reference to `_imp__wglGetProcAddress@4' 127c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(extensions.c.obj): In function `al_ogl_manage_extensions': 128c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/extensions.c:719: undefined reference to `_imp__glGetString@4' 129c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(extensions.c.obj): In function `load_extensions': 130C:/msys/1.0/home/Sean/sources/allegro5/include/allegro5/opengl/GLext/wgl_ext_api.h:167: undefined reference to `_imp__glGetIntegerv@8' 131c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(extensions.c.obj): In function `al_ogl_manage_extensions': 132c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/extensions.c:733: undefined reference to `_imp__glGetString@4' 133c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(extensions.c.obj): In function `print_extensions_3_0': 134c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/extensions.c:212: undefined reference to `_imp__glGetIntegerv@8' 135c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_bitmap.c.obj): In function `ogl_draw_bitmap_region': 136c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:355: undefined reference to `_imp__glBindTexture@8' 137c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:356: undefined reference to `_imp__glCopyTexSubImage2D@32' 138c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_bitmap.c.obj): In function `ogl_unlock_compressed_region': 139c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:901: undefined reference to `_imp__glPushClientAttrib@4' 140c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:904: undefined reference to `_imp__glPixelStorei@8' 141c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:905: undefined reference to `_imp__glGetError@0' 142c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:912: undefined reference to `_imp__glBindTexture@8' 143c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:927: undefined reference to `_imp__glPopClientAttrib@0' 144c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_bitmap.c.obj): In function `ogl_lock_compressed_region': 145c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:773: undefined reference to `_imp__glPushClientAttrib@4' 146c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:776: undefined reference to `_imp__glPixelStorei@8' 147c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:777: undefined reference to `_imp__glGetError@0' 148c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:835: undefined reference to `_imp__glPopClientAttrib@0' 149c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:789: undefined reference to `_imp__glBindTexture@8' 150c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:835: undefined reference to `_imp__glPopClientAttrib@0' 151c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_bitmap.c.obj): In function `ogl_upload_bitmap': 152c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:420: undefined reference to `_imp__glBindTexture@8' 153c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:421: undefined reference to `_imp__glGetError@0' 154c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:429: undefined reference to `_imp__glTexParameteri@12' 155c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:485: undefined reference to `_imp__glPixelStorei@8' 156c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:486: undefined reference to `_imp__glTexImage2D@36' 157c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:489: undefined reference to `_imp__glGetError@0' 158c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:528: undefined reference to `_imp__glGetError@0' 159c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:408: undefined reference to `_imp__glGenTextures@8' 160c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:409: undefined reference to `_imp__glGetError@0' 161c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:519: undefined reference to `_imp__glDeleteTextures@8' 162c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:493: undefined reference to `_imp__glTexImage2D@36' 163c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:497: undefined reference to `_imp__glGetError@0' 164c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:465: undefined reference to `_imp__glGetError@0' 165c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_bitmap.c.obj): In function `ogl_destroy_bitmap': 166c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:579: undefined reference to `_imp__glDeleteTextures@8' 167c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_bitmap.c:579: undefined reference to `_imp__glDeleteTextures@8' 168c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_display.c.obj): In function `al_ogl_setup_bitmap_clipping': 169c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_display.c:148: undefined reference to `_imp__glEnable@4' 170c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_display.c:154: undefined reference to `_imp__glScissor@16' 171c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_display.c:145: undefined reference to `_imp__glDisable@4' 172c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_draw.c.obj): In function `ogl_update_transformation': 173c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:473: undefined reference to `_imp__glViewport@16' 174c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:464: undefined reference to `_imp__glMatrixMode@4' 175c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:465: undefined reference to `_imp__glLoadMatrixf@4' 176c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:475: undefined reference to `_imp__glViewport@16' 177c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_draw.c.obj): In function `ogl_clear_depth_buffer': 178c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:486: undefined reference to `_imp__glClearDepth@8' 179c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:492: undefined reference to `_imp__glClear@4' 180c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_draw.c.obj): In function `ogl_clear': 181c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:238: undefined reference to `_imp__glClearColor@16' 182c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:239: undefined reference to `_imp__glClear@4' 183c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_draw.c.obj): In function `color_ptr_on': 184c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:167: undefined reference to `_imp__glEnableClientState@4' 185c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:168: undefined reference to `_imp__glColorPointer@16' 186c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_draw.c.obj): In function `vert_ptr_on': 187c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:137: undefined reference to `_imp__glEnableClientState@4' 188c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:138: undefined reference to `_imp__glVertexPointer@16' 189c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_draw.c.obj): In function `al_opengl_set_blender': 190c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:93: undefined reference to `_imp__glEnable@4' 191c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:108: undefined reference to `_imp__glEnable@4' 192c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:110: undefined reference to `_imp__glBlendFunc@8' 193c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_draw.c.obj): In function `ogl_flush_vertex_cache': 194c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:335: undefined reference to `_imp__glGetIntegerv@8' 195c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:345: undefined reference to `_imp__glBindTexture@8' 196c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:404: undefined reference to `_imp__glGetError@0' 197c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:405: undefined reference to `_imp__glDrawArrays@12' 198c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:332: undefined reference to `_imp__glEnable@4' 199c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:444: undefined reference to `_imp__glDisable@4' 200c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_draw.c.obj): In function `vert_ptr_off': 201c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:152: undefined reference to `_imp__glDisableClientState@4' 202c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_draw.c.obj): In function `ogl_flush_vertex_cache': 203c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:401: undefined reference to `_imp__glDisableClientState@4' 204c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_draw.c.obj): In function `tex_ptr_on': 205c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:197: undefined reference to `_imp__glEnableClientState@4' 206c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:198: undefined reference to `_imp__glTexCoordPointer@16' 207c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_draw.c.obj): In function `ogl_draw_pixel': 208c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:281: undefined reference to `_imp__glDrawArrays@12' 209c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_draw.c.obj): In function `color_ptr_off': 210c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:182: undefined reference to `_imp__glDisableClientState@4' 211c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_draw.c.obj): In function `vert_ptr_off': 212c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_draw.c:152: undefined reference to `_imp__glDisableClientState@4' 213c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_fbo.c.obj): In function `check_gl_error': 214c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_fbo.c:110: undefined reference to `_imp__glGetError@0' 215c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_fbo.c.obj): In function `attach_depth_buffer': 216c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_fbo.c:209: undefined reference to `_imp__glGetError@0' 217c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_fbo.c.obj): In function `al_ogl_bind_framebuffer': 218c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_fbo.c:84: undefined reference to `_imp__glGetIntegerv@8' 219c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_fbo.c:84: undefined reference to `_imp__glGetIntegerv@8' 220c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_fbo.c.obj): In function `al_ogl_create_persistent_fbo': 221c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_fbo.c:345: undefined reference to `_imp__glGetError@0' 222c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_fbo.c.obj): In function `use_fbo_for_bitmap': 223c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_fbo.c:638: undefined reference to `_imp__glGetError@0' 224c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_fbo.c.obj): In function `attach_multisample_buffer': 225c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_fbo.c:273: undefined reference to `_imp__glGetError@0' 226c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_fbo.c.obj): In function `ogl_new_fbo': 227c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_fbo.c:460: undefined reference to `_imp__glGetError@0' 228c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_lock.c.obj): In function `al_ogl_lock_region_new': 229c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:136: undefined reference to `_imp__glPushClientAttrib@4' 230c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:140: undefined reference to `_imp__glPixelStorei@8' 231c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:141: undefined reference to `_imp__glGetError@0' 232c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:167: undefined reference to `_imp__glPopClientAttrib@0' 233c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_lock.c.obj): In function `ogl_lock_region_backbuffer': 234c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:197: undefined reference to `_imp__glReadPixels@28' 235c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_lock.c.obj): In function `al_ogl_lock_region_new': 236c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:167: undefined reference to `_imp__glPopClientAttrib@0' 237c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_lock.c.obj): In function `ogl_lock_region_nonbb_readwrite_fbo': 238c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:300: undefined reference to `_imp__glGetIntegerv@8' 239c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:326: undefined reference to `_imp__glReadPixels@28' 240c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_lock.c.obj): In function `al_ogl_lock_region_new': 241c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:167: undefined reference to `_imp__glPopClientAttrib@0' 242c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_lock.c.obj): In function `ogl_lock_region_nonbb_readwrite_nonfbo': 243c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:371: undefined reference to `_imp__glBindTexture@8' 244c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:372: undefined reference to `_imp__glGetTexImage@20' 245c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_lock.c.obj): In function `ogl_unlock_region_non_readonly': 246c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:457: undefined reference to `_imp__glPushClientAttrib@4' 247c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:461: undefined reference to `_imp__glPixelStorei@8' 248c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:462: undefined reference to `_imp__glGetError@0' 249c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_lock.c.obj): In function `ogl_unlock_region_backbuffer': 250c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:555: undefined reference to `_imp__glDisable@4' 251c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:557: undefined reference to `_imp__glDrawPixels@20' 252c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_lock.c.obj): In function `ogl_unlock_region_non_readonly': 253c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:506: undefined reference to `_imp__glPixelTransferi@8' 254c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:481: undefined reference to `_imp__glBindTexture@8' 255c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_lock.c.obj): In function `ogl_unlock_region_nonbb_fbo_writeonly': 256c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:611: undefined reference to `_imp__glTexSubImage2D@36' 257c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_lock.c.obj): In function `ogl_unlock_region_non_readonly': 258c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:508: undefined reference to `_imp__glPopClientAttrib@0' 259c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_lock.c.obj): In function `ogl_unlock_region_backbuffer': 260c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:549: undefined reference to `_imp__glPushMatrix@0' 261c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:550: undefined reference to `_imp__glLoadIdentity@0' 262c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:551: undefined reference to `_imp__glRasterPos2f@8' 263c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:555: undefined reference to `_imp__glDisable@4' 264c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:557: undefined reference to `_imp__glDrawPixels@20' 265c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:568: undefined reference to `_imp__glPopMatrix@0' 266c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:532: undefined reference to `_imp__glGetIntegerv@8' 267c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_lock.c.obj): In function `ogl_unlock_region_nonbb_nonfbo': 268c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:671: undefined reference to `_imp__glTexSubImage2D@36' 269c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_lock.c.obj): In function `ogl_unlock_region_non_readonly': 270c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:472: undefined reference to `_imp__glPixelTransferi@8' 271c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_lock.c.obj): In function `ogl_unlock_region_nonbb_fbo_readwrite': 272c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:634: undefined reference to `_imp__glTexSubImage2D@36' 273c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_lock.c:644: undefined reference to `_imp__glGetTexLevelParameteriv@16' 274c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(ogl_render_state.c.obj): In function `al_ogl_update_render_state': 275c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_render_state.c:32: undefined reference to `_imp__glEnable@4' 276c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_render_state.c:33: undefined reference to `_imp__glAlphaFunc@8' 277c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_render_state.c:37: undefined reference to `_imp__glDisable@4' 278c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_render_state.c:40: undefined reference to `_imp__glDepthFunc@4' 279c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_render_state.c:42: undefined reference to `_imp__glDepthMask@4' 280c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_render_state.c:43: undefined reference to `_imp__glColorMask@16' 281c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_render_state.c:30: undefined reference to `_imp__glDisable@4' 282c:/msys/1.0/home/Sean/sources/allegro5/src/opengl/ogl_render_state.c:39: undefined reference to `_imp__glEnable@4' 283c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(prim_opengl.c.obj): In function `setup_state': 284c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:207: undefined reference to `_imp__glEnableClientState@4' 285c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:211: undefined reference to `_imp__glVertexPointer@16' 286c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:226: undefined reference to `_imp__glDisableClientState@4' 287c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:231: undefined reference to `_imp__glEnableClientState@4' 288c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:233: undefined reference to `_imp__glColorPointer@16' 289c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:308: undefined reference to `_imp__glBindTexture@8' 290c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:321: undefined reference to `_imp__glTexParameteri@12' 291c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:328: undefined reference to `_imp__glBindTexture@8' 292c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:235: undefined reference to `_imp__glDisableClientState@4' 293c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:236: undefined reference to `_imp__glColor4f@16' 294c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:213: undefined reference to `_imp__glDisableClientState@4' 295c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:288: undefined reference to `_imp__glBindTexture@8' 296c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:316: undefined reference to `_imp__glMatrixMode@4' 297c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:317: undefined reference to `_imp__glLoadMatrixf@4' 298c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:320: undefined reference to `_imp__glEnable@4' 299c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:220: undefined reference to `_imp__glEnableClientState@4' 300c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:224: undefined reference to `_imp__glTexCoordPointer@16' 301c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:239: undefined reference to `_imp__glEnableClientState@4' 302c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:245: undefined reference to `_imp__glVertexPointer@16' 303c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:246: undefined reference to `_imp__glColorPointer@16' 304c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:247: undefined reference to `_imp__glTexCoordPointer@16' 305c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:243: undefined reference to `_imp__glDisableClientState@4' 306c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(prim_opengl.c.obj): In function `revert_state': 307c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:358: undefined reference to `_imp__glDisable@4' 308c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:359: undefined reference to `_imp__glMatrixMode@4' 309c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:360: undefined reference to `_imp__glLoadIdentity@0' 310c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:376: undefined reference to `_imp__glDisableClientState@4' 311c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(prim_opengl.c.obj): In function `draw_prim_raw': 312c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:442: undefined reference to `_imp__glDrawArrays@12' 313c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:437: undefined reference to `_imp__glDrawArrays@12' 314c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:432: undefined reference to `_imp__glDrawArrays@12' 315c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:427: undefined reference to `_imp__glDrawArrays@12' 316c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:422: undefined reference to `_imp__glDrawArrays@12' 317c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(prim_opengl.c.obj):c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:417: more undefined references to `_imp__glDrawArrays@12' follow 318c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(prim_opengl.c.obj): In function `draw_prim_indexed_raw': 319c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:545: undefined reference to `_imp__glDrawElements@16' 320c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:540: undefined reference to `_imp__glDrawElements@16' 321c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:550: undefined reference to `_imp__glDrawElements@16' 322c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:531: undefined reference to `_imp__glDrawElements@16' 323c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:526: undefined reference to `_imp__glDrawElements@16' 324c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(prim_opengl.c.obj): In function `lock_buffer_common': 325c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:743: undefined reference to `_imp__glGetError@0' 326c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(prim_opengl.c.obj): In function `create_buffer_common': 327c:/msys/1.0/home/Sean/sources/allegro5/addons/primitives/prim_opengl.c:671: undefined reference to `_imp__glGetError@0' 328collect2.exe: error: ld returned 1 exit status

I'm not sure what I did wrong.

Edgar Reynaldo
Member #8,592
May 2007
avatar

The only thing you did wrong was forgetting to link the (other) static libraries.

Here's the full list :

-static 
-ljpeg 
-ldumb 
-lFLAC 
-ltheora
-lvorbisfile 
-lvorbis 
-logg 
-lphysfs 
-lfreetype 
-lpng16 
-lzlibstatic 
-ldsound
-lgdiplus 
-luuid 
-lkernel32 
-lwinmm 
-lpsapi 
-lopengl32 
-lglu32 
-luser32 
-lcomdlg32 
-lgdi32 
-lshell32 
-lole32 
-ladvapi32 
-lws2_32 
-lshlwapi 
-static-libstdc++ 
-static-libgcc

Without line breaks :

-static -ljpeg -ldumb -lFLAC  -ltheora -lvorbisfile -lvorbis -logg -lphysfs -lfreetype -lpng16 -lzlibstatic -ldsound -lgdiplus -luuid -lkernel32 -lwinmm -lpsapi -lopengl32 -lglu32 -luser32 -lcomdlg32 -lgdi32 -lshell32 -lole32 -ladvapi32 -lws2_32 -lshlwapi -static-libstdc++ -static-libgcc

To build FreeType, Ogg, and Vorbis, you may need to install to your compiler directory. Because configure is dumb as a brick.

And to build FreeType you may need to alter the options that control whether FreeType comes with LibPNG and Zlib or not.

Polybios
Member #12,293
October 2010

Didn't SiegeLord provide build scripts and bundled, cmake-ified dependencies for Windows builds at https://github.com/liballeg/allegro_winpkg? Maybe we could refer to that if it's there anyway?

Edgar Reynaldo
Member #8,592
May 2007
avatar

Those only work for MSYS2. :/ And I don't believe he updates his sources. I update my sources every release.

So there's no reason to prefer one over the other but rather better to have both.

iheartcoffee
Member #16,518
August 2016
avatar

Hi Edgar,
Thank you so much for the responses. I also have one more question.
I get the following error when trying to compile:

 gcc -Wall -ansi -O -pedantic -std=c99 ball.c -o ball.exe -static -lallegro_monolith-static -ljpeg -ldumb -lFL
AC  -ltheora -lvorbisfile -lvorbis -logg -lphysfs -lfreetype -lpng16 -lzlibstatic -ldsound -lgdiplus -luuid -lkernel32
-lwinmm -lpsapi -lopengl32 -lglu32 -luser32 -lcomdlg32 -lgdi32 -lshell32 -lole32 -ladvapi32 -lws2_32 -lshlwapi -static-
libstdc++ -static-libgcc -Wl,--subsystem,windows
c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(d3d_display_formats.cpp.obj): In function `al_d3d_generate_display_format_list':
c:/msys/1.0/home/Sean/sources/allegro5/src/win/d3d_display_formats.cpp:49: undefined reference to `__cxa_guard_acquire'
c:/msys/1.0/home/Sean/sources/allegro5/src/win/d3d_display_formats.cpp:50: undefined reference to `__cxa_guard_acquire'
c:/msys/1.0/home/Sean/sources/allegro5/src/win/d3d_display_formats.cpp:50: undefined reference to `__cxa_guard_release'
c:/msys/1.0/home/Sean/sources/allegro5/src/win/d3d_display_formats.cpp:49: undefined reference to `__cxa_guard_release'
c:/msys/1.0/home/Sean/sources/allegro5/src/win/d3d_display_formats.cpp:49: undefined reference to `__cxa_guard_abort'
c:/msys/1.0/home/Sean/sources/allegro5/src/win/d3d_display_formats.cpp:50: undefined reference to `__cxa_guard_abort'
c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(d3d_display_formats.cpp.obj):d3d_display_formats.cpp:(.eh_frame+0x63): undefined reference to `__gxx_personality_v0'
c:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib\liballegro_monolith-static.a(d3d_display_formats.cpp.obj):d3d_display_formats.cpp:(.eh_frame+0xf3): undefined reference to `__gxx_personality_v0'
collect2.exe: error: ld returned 1 exit status

I know it's something to do with a library but I don't know quite how to fix it.

UPDATE:
I tried recompiling the Freetype library so that the TTF would work. This is the cmake command that I issued:

cmake -G "MSYS Makefiles" ..
-- Building with ZLIB
-- Building with PNG
-- Checking for module 'harfbuzz>=0.9.7'
--   No package 'harfbuzz' found
-- Creating directory C:/msys/1.0/home/Sean/sources/freetype-2.9/build/include/freetype/config
-- Creating file C:/msys/1.0/home/Sean/sources/freetype-2.9/build/include/freetype/config/ftconfig.h
-- Creating file C:/msys/1.0/home/Sean/sources/freetype-2.9/build/include/freetype/config/ftoption.h
-- Configuring done
-- Generating done
-- Build files have been written to: C:/msys/1.0/home/Sean/sources/freetype-2.9/build

I complied harfbuzz and installed it to C:\mingw\mingw32\i686-w64-mingw32
It's still not getting detected by cmake. I wonder if harfbuzz if needed for TTF to work. The ZLIB and PNG both get detected.
Thanks

Edgar Reynaldo
Member #8,592
May 2007
avatar

You're using a C compiler on C++ code. That isn't gonna work.

It's C++ code because some of Allegro's D3D code is c plus plus. You're using gcc and -std=c99 which won't work. Use g++ and any standard like -std=c++11 .

EDIT
To clarify, you can compile your object code as C, but g++ will need to link it.

Harfbuzz is optional, unless of course you are using it.

Sean said:

I complied harfbuzz and installed it to C:\mingw\mingw32\i686-w64-mingw32

CMake needs to know where to look for it. I think if you install it to c:\mingw\lib and c:\mingw\include it will find it, instead of mingw\i686...\lib and mingw\i686...\include .

iheartcoffee
Member #16,518
August 2016
avatar

Hi Edgar,
The program compiled when I ran it through g++. Just to get this clear. Can I write my program in C and then run it through the g++ compiler? The reason being I'm still learning C++ and I only know C so far.
Thanks

Edgar Reynaldo
Member #8,592
May 2007
avatar

You can compile your C code into .o (Object files) which you then link together to make the exe.

Example :

gcc -Wall -Wextra -Wshadow -pedantic -ansi -c -o main.o -std=c99 main.c
g++ -o main.exe main.o -lallegro_monolith-static etc....

The important bit is -c which stops compilation at the object file stage and does not perform any linking.

Go to: