NO

Author Topic: Legend of Pandora  (Read 4929 times)

Offline quadcricket

  • Member
  • *
  • Posts: 3
Legend of Pandora
« on: June 01, 2021, 02:33:35 AM »
https://gitlab.com/quadcricket/legend-of-pandora

I had ported my old project to Windows years ago with Pelles C but now I am having trouble setting up the project in Windows 10 (There are still POCC ifdefs in the code to help compilation).

I followed the help in the forums setting up SDL with a static library but I am not quite sure what to do with SDL_mixer and it's dependency libmad.

Any help would be appreciated.


Edit:

I found that SDL_Mixer has a static .lib ready to go on it's download page and was able to include it no problem. No issues with libmad as far as I can see. It's not compiling yet since, apparently, switch case ranges are a gcc thing and I will need to convert all of them, which might take a bit.


Edit 2:

I commented out the case ranges and added an ifdef to make the Windows' main statement: "int WINAPI wWinMain(HINSTANCE h , HINSTANCE p , wchar_t* c , int s )"
and all is well. I'm glad to see it running!
« Last Edit: June 01, 2021, 08:40:27 AM by quadcricket »

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2107
Re: Legend of Pandora
« Reply #1 on: June 01, 2021, 08:25:19 AM »
for switch case, enable Pelles C extensions
May the source be with you

Offline quadcricket

  • Member
  • *
  • Posts: 3
Re: Legend of Pandora
« Reply #2 on: June 01, 2021, 08:41:32 AM »
for switch case, enable Pelles C extensions

Awesome! That will be a big help to not have to edit everything, thank you!