JulNadeauCA / libagar

Cross-Platform GUI Toolkit (stable)
https://libagar.org/
BSD 2-Clause "Simplified" License
401 stars 42 forks source link

MINGW MSYS make depend all : can't find any references when building libraries #59

Closed WallyZambotti closed 4 years ago

WallyZambotti commented 4 years ago

Core and GUI appear to build fine but then everything else that attempts to link to them cannot find any references.

I have included the configuration output and the core library build from the make depend all. Also included is the library build output for math showing the undefined references.

The use of libtool to process the library does not appear to be happening as it did on 1.5.0. Not sure if this is intended or not?

$ export MINGWROOT=/mingw64 $ export CFLAGS=-O2 $ ./configure --host=x86_64-w64-mingw32 --prefix=$MINGWROOT --with-{freetype,png,jpeg,gl}=$MINGWROOT --without-{fontconfig,gettext,iconv} BSDBuild 3.2 https://bsdbuild.hypertriton.com/

checking for a C compiler...yes, /mingw64/bin/x86_64-w64-mingw32-gcc checking whether the C compiler works...yes, it outputs .exe files cc: checking whether compiler is Clang...no cc: checking whether compiler is GCC...yes cc: checking for compiler warning options...yes cc: checking for float and double...yes cc: checking for long double...yes cc: checking for long long...yes cc: checking for linker -no-undefined option...no cc: checking for linker -static-libgcc option...no cc: checking for cygwin environment...no checking for Objective-C compiler...yes, /mingw64/bin/x86_64-w64-mingw32-gcc checking whether the Objective-C compiler works...yes objc: checking for compiler warning options...yes *

$ make depend all . . . ==> core make[1]: Entering directory '/c/Users/HP/Documents/Projects/libagar/core' make byteswap.o class.o config.o core.o cpuinfo.o data_source.o db.o dir.o dso.o error.o event.o exec.o file.o getopt.o load_integral.o load_real.o load_string.o load_version.o object.o string.o tbl.o text.o time.o time_dummy.o timeout.o threads.o vasprintf.o vsnprintf.o user.o user_dummy.o user_getenv.o variable.o vec.o time_win32.o time_posix.o time_renderer.o user_win32.o
make[2]: Entering directory '/c/Users/HP/Documents/Projects/libagar/core' /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o byteswap.o -c byteswap.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o class.o -c class.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o config.o -c config.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o core.o -c core.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o cpuinfo.o -c cpuinfo.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o data_source.o -c data_source.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o db.o -c db.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o dir.o -c dir.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o dso.o -c dso.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o error.o -c error.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o event.o -c event.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o exec.o -c exec.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o file.o -c file.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o getopt.o -c getopt.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o load_integral.o -c load_integral.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o load_real.o -c load_real.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o load_string.o -c load_string.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o load_version.o -c load_version.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o object.o -c object.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o string.o -c string.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o tbl.o -c tbl.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o text.o -c text.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o time.o -c time.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o time_dummy.o -c time_dummy.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o timeout.o -c timeout.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o threads.o -c threads.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o vasprintf.o -c vasprintf.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o vsnprintf.o -c vsnprintf.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o user.o -c user.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o user_dummy.o -c user_dummy.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o user_getenv.o -c user_getenv.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o variable.o -c variable.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o vec.o -c vec.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o time_win32.o -c time_win32.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o time_posix.o -c time_posix.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o time_renderer.o -c time_renderer.c /mingw64/bin/x86_64-w64-mingw32-gcc -O2 -D_AGAR_INTERNAL -D_DEFAULT_SOURCE -D_BSD_SOURCE -I/c/Users/HP/Documents/Projects/libagar/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -D_AGAR_CORE_INTERNAL -o user_win32.o -c user_win32.c make[2]: Leaving directory '/c/Users/HP/Documents/Projects/libagar/core' ar -cru libag_core.a byteswap.o class.o config.o core.o cpuinfo.o data_source.o db.o dir.o dso.o error.o event.o exec.o file.o getopt.o load_integral.o load_real.o load_string.o load_version.o object.o string.o tbl.o text.o time.o time_dummy.o timeout.o threads.o vasprintf.o vsnprintf.o user.o user_dummy.o user_getenv.o variable.o vec.o time_win32.o time_posix.o time_renderer.o user_win32.o ranlib libag_core.a /mingw64/bin/x86_64-w64-mingw32-gcc -shared -o ag_core.dll -Wl,--out-implib,libag_core_dll.lib -Wl,-rpath /mingw64/lib byteswap.o class.o config.o core.o cpuinfo.o data_source.o db.o dir.o dso.o error.o event.o exec.o file.o getopt.o load_integral.o load_real.o load_string.o load_version.o object.o string.o tbl.o text.o time.o time_dummy.o timeout.o threads.o vasprintf.o vsnprintf.o user.o user_dummy.o user_getenv.o variable.o vec.o time_win32.o time_posix.o time_renderer.o user_win32.o -lpthread
-lwinmm make[1]: Leaving directory '/c/Users/HP/Documents/Projects/libagar/core' . . . make[2]: Leaving directory '/c/Users/HP/Documents/Projects/libagar/math' ar -cru libag_math.a m_math.o m_complex.o m_quaternion.o m_vector.o m_vectorz.o m_vector_fpu.o m_vector2_fpu.o m_vector3_fpu.o m_vector4_fpu.o m_vector3_sse.o m_matrix.o m_matrix_fpu.o m_matrix44_fpu.o m_matrix44_sse.o m_gui.o m_plotter.o m_matview.o m_line.o m_circle.o m_triangle.o m_rectangle.o m_polygon.o m_plane.o m_coordinates.o m_heapsort.o m_mergesort.o m_qsort.o m_radixsort.o m_point_set.o m_color.o m_sphere.o m_polyhedron.o m_matrix_sparse.o m_sparse_allocate.o m_sparse_build.o m_sparse_eda.o m_sparse_factor.o m_sparse_output.o m_sparse_solve.o m_sparse_utils.o m_bezier.o m_bezier_primitives.o ranlib libag_math.a /mingw64/bin/x86_64-w64-mingw32-gcc -shared -o ag_math.dll -Wl,--out-implib,libag_math_dll.lib -Wl,-rpath /mingw64/lib m_math.o m_complex.o m_quaternion.o m_vector.o m_vectorz.o m_vector_fpu.o m_vector2_fpu.o m_vector3_fpu.o m_vector4_fpu.o m_vector3_sse.o m_matrix.o m_matrix_fpu.o m_matrix44_fpu.o m_matrix44_sse.o m_gui.o m_plotter.o m_matview.o m_line.o m_circle.o m_triangle.o m_rectangle.o m_polygon.o m_plane.o m_coordinates.o m_heapsort.o m_mergesort.o m_qsort.o m_radixsort.o m_point_set.o m_color.o m_sphere.o m_polyhedron.o m_matrix_sparse.o m_sparse_allocate.o m_sparse_build.o m_sparse_eda.o m_sparse_factor.o m_sparse_output.o m_sparse_solve.o m_sparse_utils.o m_bezier.o m_bezier_primitives.o -L../gui -lag_gui -LC:/msys64/mingw64/lib -lfreetype -L/mingw64/lib -lopengl32 -lgdi32 -L/mingw64/lib -ljpeg -L/mingw64/lib -lpng16 -lm -L../core -lag_core -lpthread -lwinmm m_math.o:m_math.c:(.text+0x819): undefined reference to ag_read_uint8' m_math.o:m_math.c:(.text+0x836): undefined reference toag_read_float' m_math.o:m_math.c:(.text+0x86d): undefined reference to ag_read_uint8' m_math.o:m_math.c:(.text+0x87d): undefined reference toag_read_double' m_math.o:m_math.c:(.text+0x894): undefined reference to ag_read_float' m_math.o:m_math.c:(.text+0x8d7): undefined reference toag_write_uint8' m_math.o:m_math.c:(.text+0x98c): undefined reference to ag_write_uint8' m_math.o:m_math.c:(.text+0x998): undefined reference toag_write_double' m_math.o:m_math.c:(.text+0x9b0): undefined reference to ag_write_uint8' m_math.o:m_math.c:(.text+0xa8c): undefined reference toag_write_uint8' m_math.o:m_math.c:(.text+0xa98): undefined reference to ag_write_double' m_math.o:m_math.c:(.text+0xaaa): undefined reference toag_write_uint8' m_math.o:m_math.c:(.text+0xab6): undefined reference to ag_write_double' m_math.o:m_math.c:(.text+0xac8): undefined reference toag_write_uint8' m_math.o:m_math.c:(.text+0xbac): undefined reference to ag_write_uint8' m_math.o:m_math.c:(.text+0xbb8): undefined reference toag_write_double' m_math.o:m_math.c:(.text+0xbca): undefined reference to ag_write_uint8' m_math.o:m_math.c:(.text+0xbd6): undefined reference toag_write_double' m_math.o:m_math.c:(.text+0xbe8): undefined reference to ag_write_uint8' m_math.o:m_math.c:(.text+0x82e): undefined reference toag_read_double' m_math.o:m_math.c:(.text+0x8ed): undefined reference to ag_write_double' m_math.o:m_math.c:(.text+0x9c7): undefined reference toag_write_double' m_math.o:m_math.c:(.text+0xadf): undefined reference to ag_write_double' m_math.o:m_math.c:(.text+0xbff): undefined reference toag_write_double' m_vector.o:m_vector.c:(.text+0x14d): undefined reference to ag_read_uint8' m_vector.o:m_vector.c:(.text+0x178): undefined reference toag_read_float' m_vector.o:m_vector.c:(.text+0x188): undefined reference to ag_read_float' m_vector.o:m_vector.c:(.text+0x1a4): undefined reference toag_read_double' m_vector.o:m_vector.c:(.text+0x1b0): undefined reference to ag_read_double' m_vector.o:m_vector.c:(.text+0x1dd): undefined reference toag_read_uint8' m_vector.o:m_vector.c:(.text+0x208): undefined reference to ag_read_float' m_vector.o:m_vector.c:(.text+0x214): undefined reference toag_read_float' m_vector.o:m_vector.c:(.text+0x221): undefined reference to ag_read_float' m_vector.o:m_vector.c:(.text+0x237): undefined reference toag_read_double' m_vector.o:m_vector.c:(.text+0x24b): undefined reference to ag_read_double' m_vector.o:m_vector.c:(.text+0x260): undefined reference toag_read_double' m_vector.o:m_vector.c:(.text+0x28d): undefined reference to ag_read_uint8' m_vector.o:m_vector.c:(.text+0x2b8): undefined reference toag_read_float' m_vector.o:m_vector.c:(.text+0x2c4): undefined reference to ag_read_float' m_vector.o:m_vector.c:(.text+0x2d1): undefined reference toag_read_float' m_vector.o:m_vector.c:(.text+0x2de): undefined reference to ag_read_float' m_vector.o:m_vector.c:(.text+0x2f4): undefined reference toag_read_double' m_vector.o:m_vector.c:(.text+0x308): undefined reference to ag_read_double' m_vector.o:m_vector.c:(.text+0x31d): undefined reference toag_read_double' m_vector.o:m_vector.c:(.text+0x332): undefined reference to ag_read_double' m_vector.o:m_vector.c:(.text+0x422): undefined reference toag_write_uint8' m_vector.o:m_vector.c:(.text+0x42e): undefined reference to ag_write_double' m_vector.o:m_vector.c:(.text+0x462): undefined reference toag_write_uint8' m_vector.o:m_vector.c:(.text+0x46e): undefined reference to ag_write_float' m_vector.o:m_vector.c:(.text+0x47b): undefined reference toag_write_float' m_vector.o:m_vector.c:(.text+0x4b2): undefined reference to ag_write_uint8' m_vector.o:m_vector.c:(.text+0x4be): undefined reference toag_write_float' m_vector.o:m_vector.c:(.text+0x4cb): undefined reference to ag_write_float' m_vector.o:m_vector.c:(.text+0x4d8): undefined reference toag_write_float' m_vector.o:m_vector.c:(.text+0x4fe): undefined reference to ag_malloc' m_vector.o:m_vector.c:(.text+0x52e): undefined reference toag_malloc' m_vector.o:m_vector.c:(.text+0x55e): undefined reference to ag_malloc' m_vector.o:m_vector.c:(.text+0x441): undefined reference toag_write_double' m_vector.o:m_vector.c:(.text+0x48e): undefined reference to ag_write_float' m_vector.o:m_vector.c:(.text+0x4eb): undefined reference toag_write_float' m_vectorz.o:m_vectorz.c:(.text+0x5e): undefined reference to ag_malloc' m_vectorz.o:m_vectorz.c:(.text+0x6c): undefined reference toag_malloc' m_vectorz.o:m_vectorz.c:(.text+0xfd): undefined reference to ag_free' m_vectorz.o:m_vectorz.c:(.text+0x207): undefined reference toag_realloc' m_vectorz.o:m_vectorz.c:(.text+0x10a): undefined reference to ag_free' m_vector_fpu.o:m_vector_fpu.c:(.text+0x2dd): undefined reference toag_free' m_vector_fpu.o:m_vector_fpu.c:(.text+0x30a): undefined reference to ag_try_realloc' m_vector_fpu.o:m_vector_fpu.c:(.text+0x323): undefined reference toag_free' m_vector_fpu.o:m_vector_fpu.c:(.text+0x34e): undefined reference to ag_malloc' m_vector_fpu.o:m_vector_fpu.c:(.text+0x377): undefined reference toag_malloc' m_vector_fpu.o:m_vector_fpu.c:(.text+0x39e): undefined reference to ag_read_uint32' m_vector_fpu.o:m_vector_fpu.c:(.text+0x410): undefined reference toag_write_uint32' m_vector_fpu.o:m_vector_fpu.c:(.text+0x462): undefined reference to ag_malloc' m_vector_fpu.o:m_vector_fpu.c:(.text+0x4c7): undefined reference toag_malloc' m_vector_fpu.o:m_vector_fpu.c:(.text+0x4eb): undefined reference to ag_malloc' m_vector_fpu.o:m_vector_fpu.c:(.text+0x547): undefined reference toag_malloc' m_vector_fpu.o:m_vector_fpu.c:(.text+0x566): undefined reference to ag_malloc' m_vector_fpu.o:m_vector_fpu.c:(.text+0x5c7): more undefined references toag_malloc' follow m_vector_fpu.o:m_vector_fpu.c:(.text+0x8c4): undefined reference to ag_free' m_vector_fpu.o:m_vector_fpu.c:(.text+0x8cc): undefined reference toag_free' m_vector_fpu.o:m_vector_fpu.c:(.text+0x8e9): undefined reference to ag_malloc' m_vector_fpu.o:m_vector_fpu.c:(.text+0x940): undefined reference toag_malloc' m_vector_fpu.o:m_vector_fpu.c:(.text+0x9a7): undefined reference to ag_malloc' m_vector_fpu.o:m_vector_fpu.c:(.text+0x2ea): undefined reference toag_free' m_matrix.o:m_matrix.c:(.text+0x16e): undefined reference to ag_write_uint8' m_matrix.o:m_matrix.c:(.text+0x17b): undefined reference toag_write_float' m_matrix_fpu.o:m_matrix_fpu.c:(.text+0x657): undefined reference to `ag_write_uint32' . . .

WallyZambotti commented 4 years ago

It turns out the order of the libraries when linking is important with gcc in mingw64 msys.

I fixed the issued by replacing all lines (like the following) in all makefiles:

LIBS= ${ENABLE_GUI_LIBS} ${GUI_LIBS} \

for this instead:

LIBS= ${ENABLE_GUI_LIBS} -L../core -lag_core \ ${GUI_LIBS} ${CORE_LIBS}

And the make depend all completed without error.