Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [Moved] unresolved external symbol _SDL_GetError
Forum Updated to NodeBB v4.3 + New Features

[Moved] unresolved external symbol _SDL_GetError

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mike4
    wrote on 22 Oct 2011, 13:28 last edited by
    #1

    main.obj: -1: error LNK2019: unresolved external symbol "_SDL_GetError" in function "" int __cdecl LoadGLTex (char *, int) "(LoadGLTex @ @ @ Z YAHPADH?)".

    I've added the libs and headers so why i get this error?
    Many thanks
    Michael

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on 23 Oct 2011, 09:03 last edited by
      #2

      What does this have to do with Qt? You forgot to add some SDL library or so it seems.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mike4
        wrote on 23 Oct 2011, 09:56 last edited by
        #3

        I want to use Qtcreator but have no clue why i get this error. It even works in VS and Eclipse.-
        Tried with a *.pro alike below, any ideas what's going wrong?
        Thanks Michael
        ...

        #Shared library without any Qt functionality
        TEMPLATE = lib
        QT -= gui core

        CONFIG += warn_on plugin release
        CONFIG -= thread exceptions qt rtti debug

        VERSION = 1.0.0

        win32 {

        DEFINES += APL=0 IBM=1 LIN=0
        
        
        INCLUDEPATH += ../SDK/CHeaders/XPLM
        
        INCLUDEPATH += ../headers/GL
        

        INCLUDEPATH += $$PWD/../SDL/include

        DEPENDPATH += $$PWD/../SDL/include

        INCLUDEPATH += ../headers/AL
        
        
        
        LIBS += -L../SDK/Libraries/Win/
        

        LIBS += -L$$PWD/../SDL/lib/

        LIBS += -L../MinGW/lib/
        
        
        LIBS += -lXPLM -lOpenGL32 -lGlu32 -lSDL -lSDLmain -lSDL_image -lOpenAL32
        
        
        TARGET = win.xpl
        

        }
        ...

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mike4
          wrote on 25 Oct 2011, 07:47 last edited by
          #4

          Hi
          the above errors are by my messed project as below. What project settings do I need to change?
          Many thanks
          Michael

          Lead build steps for project myProject ...
          Run "C: \ QtSDK \ QtCreator \ bin \ jom.exe" clean
          E: \ QtSDK \ QtCreator \ bin \ jom.exe-nologo-j 2-f clean Makefile.Debug
          del debug \ main.obj
          del debug \ win.xpl.intermediate.manifest debug \ win.xpl1.exp debug \ win.xpl1.ilk vc vc *. pdb *. idb
          del debug \ win.xpl_resource.res
          E: \ QtSDK \ QtCreator \ bin \ jom.exe-nologo-j 2-f clean Makefile.Release

          jom 1.0.6 - empower your cores

          E: \ cpp-win \ myProject-build-desktop-Qt_4_7_4_for_Desktop_ MSVC2008__Qt_SDK__Release \ debug \ main.obj could not be found
          could not be found
          E: \ cpp-win \ myProject-build-desktop-Qt_4_7_4_for_Desktop
          MSVC2008__Qt_SDK__Release \ vc *. pdb could not be found
          could not be found
          del release \ main.obj
          del release \ win.xpl.intermediate.manifest release \ win.xpl1.exp
          del release \ win.xpl_resource.res
          del ". \ win.xpl.intermediate.manifest"
          could not be found
          del win.xpl1.exp
          could not be found
          E: \ cpp-win \ myProject-build-desktop-Qt_4_7_4_for_Desktop
          _MSVC2008__Qt_SDK__Release \ win.xpl1.exp could not be found
          ...

          1 Reply Last reply
          0

          1/4

          22 Oct 2011, 13:28

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved