Jump to content

How can I use SDL with Visual Studio 2010 and not restrict my game to one platform

- - - - -

  • Please log in to reply
2 replies to this topic

#1
liamzebedee

liamzebedee

    Programmer

  • Members
  • PipPipPipPip
  • 129 posts
C++ bare bones is platform compatible if you use the right compiler. If I'm using C++ SDL code it does not have to be changed to compile for multiple platforms right?

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
C++ bare bones can be compiled to multiple platforms. However, the compiled code is not cross-platform. If you use ANY windows-specific code, it will not be cross-platform.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
As long as you compile for the specific platform, you can use your original source and library. You will require the binaries specific to each platform however if you do not compile the libSDL .tar.gz package yourself.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users