Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-193

[RESOLVED] Undefined references with fltk [LINKER ERROR]

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Not a Bug
    • 2.3.0
    • N/A
    • None
    • None
    • 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'

      Attachments

        Activity

          People

            georg Georg Richter
            dustingoodson Dustin Goodson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.