[CONC-193] [RESOLVED] Undefined references with fltk [LINKER ERROR] Created: 2016-07-18  Updated: 2016-07-19  Resolved: 2016-07-19

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 2.3.0
Fix Version/s: N/A

Type: Bug Priority: Trivial
Reporter: Dustin Goodson Assignee: Georg Richter
Resolution: Not a Bug Votes: 0
Labels: None
Environment:

Windows 7 Enterprise
Msys2 Mingw64
Affects gcc and g++



 Description   

REMOVE THIS BUG REPORT, IT WAS A USER ERROR! Sorry!

The following error occurs when attempting to compile MariaDB C Connector with an included Fltk lib (Just recompiled fltk-1.3.3 to confirm it wasn't a bad copy).

What I am typing in Mingw64 shell (part of Msys2):
g++ -o ./test.exe -I'../MariaDB Connector C 64-bit/include' -I/usr/local/fltk-1.3.3/include -mwindows -L/usr/local/fltk-1.3.3/lib '../MariaDB Connector C 64-bit/lib/libmariadb.dll' /usr/local/fltk-1.3.3/lib/libfltk.a -lole32 -luuid -lcomctl32 ./cellstructures.cpp ./test.cpp

and

gcc -o ./test.exe -I'../MariaDB Connector C 64-bit/include' -I/usr/local/fltk-1.3.3/include -mwindows -L/usr/local/fltk-1.3.3/lib '../MariaDB Connector C 64-bit/lib/libmariadb.dll' /usr/local/fltk-1.3.3/lib/libfltk.a -lole32 -luuid -lcomctl32 ./cellstructures.cpp ./test.cpp

Which results in these errors

C:\Users****\msys64\tmp\ccj6bAyV.o:cellstructures.cpp.rdata$.refptr.FL_NORMAL_SIZE[.refptr.FL_NORMAL_SIZE]+0x0): undefined reference to `FL_NORMAL_SIZE'
C:\Users****\msys64\tmp\ccj6bAyV.o:cellstructures.cpp.rdata$.refptr.fl_graphics_driver[.refptr.fl_graphics_driver]+0x0): undefined reference to `fl_graphics_driver'


Generated at Thu Feb 08 03:03:32 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.