Missing symbol (TGLGetMaximumContextVersion) when linking to SDL2
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 602 from 2004/4/15
    Hi,

    got the following linker error when I am linking to SDl2:

    Code:

    ...
    linker ... /gg/usr/local/lib/libSDL2_mixer.a /gg/usr/local/lib/libSDL2_ttf.a /gg/usr/local/lib/libSDL2.a -lm

    /gg/lib/gcc-lib/ppc-morphos/11.3.0/../../../../ppc-morphos/bin/ld: /gg/usr/local/lib/libSDL2.a(sdl-startup.o): in function `__CSTP_init_SDL2Base':
    sdl-startup.c:(.text+0x67a): undefined reference to `TGLGetMaximumContextVersion'
    /gg/lib/gcc-lib/ppc-morphos/11.3.0/../../../../ppc-morphos/bin/ld: sdl-startup.c:(.text+0x68a): undefined reference to `TGLGetMaximumContextVersion'
    collect2: error: ld returned 1 exit status


    Any idea what's going wrong, where this this symbol comes from?

    [ Edited by eliot 26.12.2024 - 09:06 ]
    regards
    eliot
  • »26.12.24 - 09:05
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 631 from 2010/2/10
    From: FRANCE
    Yeah... you need add -lGL

    You can find that here: https://github.com/BeWorld2018/SDL/blob/SDL-2.30.x/sdl2-config#L48
    PowerMac G5 Quad 2.5, IMac G5 2.1, PowerBook G4 1.5, MacMini 1.5
    My MOS ports
  • »26.12.24 - 09:14
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 602 from 2004/4/15
    Same error when linking with "GL".
    Do I need newer libraries of TinyGl?

    Ah ok, I need newer Tiny Gl from https://tinygl.molsen.co.za/

    [ Edited by eliot 26.12.2024 - 09:37 ]
    regards
    eliot
  • »26.12.24 - 09:20
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 602 from 2004/4/15
    Yes, thanks, now it works :D
    regards
    eliot
  • »26.12.24 - 09:37
    Profile