NO

Author Topic: SDL2 with PellesC 10  (Read 152 times)

Offline Griffin

  • Member
  • *
  • Posts: 2
SDL2 with PellesC 10
« on: November 22, 2020, 07:38:39 pm »
I'm trying to revive an old project that I once built based on SDL. Want it to update to the latest and greatest SDL2 for windows. How do I solve this?

Output from the build-phase:

Building main.obj.
C:\projects\issconfig\SDL2-2.0.12\include\SDL_atomic.h(123): warning #2195: Unrecognized intrinsic function: '_ReadWriteBarrier'.
Building util.obj.
Building issconfig.exe.
POLINK: error: Unresolved external symbol '_SDL_SetMainReady' - referenced from 'C:\projects\issconfig\output\main.obj'.
POLINK: error: Unresolved external symbol '_SDL_Quit' - referenced from 'C:\projects\issconfig\output\main.obj'.
POLINK: error: Unresolved external symbol '_SDL_Init' - referenced from 'C:\projects\issconfig\output\main.obj'.
POLINK: error: Unresolved external symbol '_SDL_CreateWindow' - referenced from 'C:\projects\issconfig\output\main.obj'.
POLINK: fatal error: 4 unresolved external(s).
*** Error code: 1 ***
Done.

I enabled verbose output on the linker and the lib is actually scanned, so it should've worked. The library itself actually seems to contain these symbols, and polink doesn't complain the library is broken.
« Last Edit: November 22, 2020, 08:48:15 pm by Griffin »

Offline Griffin

  • Member
  • *
  • Posts: 2
Re: SDL2 with PellesC 10
« Reply #1 on: November 22, 2020, 09:28:03 pm »
Never mind... it helps to use the 32-bit variant when compiling in win32 mode...  :-X