C++ and SDL

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2009
Posts: 22
Reputation: iammfa has a little shameless behaviour in the past 
Solved Threads: 0
iammfa iammfa is offline Offline
Newbie Poster

C++ and SDL

 
0
  #1
Sep 1st, 2009
hi,
i'm beginner in c++ and i'm using SDL with it, i started with beginner SDL tutorial, the 1st lesson learning me how setup SDL, i don't understand some steps from step 11 to 13, i hope some guides
this a link:

http://lazyfoo.net/SDL_tutorials/les...508e/index.php

regards
iammfa
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 1,467
Reputation: William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of 
Solved Threads: 121
Sponsor
William Hemsworth William Hemsworth is offline Offline
Nearly a Posting Virtuoso

Re: C++ and SDL

 
0
  #2
Sep 1st, 2009
What don't you understand?

Have you tried doing what it tells you to? It seems quite straightforward.
Last edited by William Hemsworth; Sep 1st, 2009 at 8:25 pm.
I need pageviews! most fun profile ever :)
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 147
Reputation: GDICommander is an unknown quantity at this point 
Solved Threads: 19
GDICommander's Avatar
GDICommander GDICommander is offline Offline
Junior Poster

Re: C++ and SDL

 
0
  #3
Sep 1st, 2009
For the step 13, it tells Visual Studio to include these libraries for the link, because the functions you are using with SDL are implemented in these libraries. The librairies must be in the additional library directories (in Linker/General) or in C:\Program Files\Microsoft Visual Studio (your number)\VC\lib.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 22
Reputation: iammfa has a little shameless behaviour in the past 
Solved Threads: 0
iammfa iammfa is offline Offline
Newbie Poster

Re: C++ and SDL

 
0
  #4
Sep 2nd, 2009
i want understand what is the importance of these settings:
- detect 64-bit portability issues = No
- subsystem = Windows(/SUBSYSTEM:WINDOWS)
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 147
Reputation: GDICommander is an unknown quantity at this point 
Solved Threads: 19
GDICommander's Avatar
GDICommander GDICommander is offline Offline
Junior Poster

Re: C++ and SDL

 
0
  #5
Sep 2nd, 2009
According to http://msdn.microsoft.com/en-us/library/yt4xw8fh.aspx :

The /Wp64 compiler option and __w64 keyword are deprecated and will be removed in a future version of the compiler. If you use the /Wp64 compiler option on the command line, the compiler issues Command-Line Warning D9035. Instead of using this option and keyword to detect 64-bit portability issues, use a Visual C++ compiler that targets a 64-bit platform. For more information, see 64-Bit Programming with Visual C++.

For your information, there are 2 types of processors: 32-bit and 64-bit. If you have a 32-bit processor, the compiler will produce processor instructions understandable for your 32-bit processor. (32 0 or 1) It's the same thing for 64-bit processors.

The Visual C++ Compiler will produce 64-bit instructions at compile time for your program if you select x64 as the target. If you select Win32, it will produce 32-bit instructions for your processor. Note that the /w64 flag (Detect 64-bit portability issues) on the command line is deprecated. So, it is recommended to only select the target (Win32 or x64) for your needs and not use the flag.

For the subsystem, check here for more details: http://msdn.microsoft.com/en-us/libr...8VS.71%29.aspx. Windows should be ok, but choosing an other choice will optimize the executable, for example POSIX, if you want to develop a multi-threaded application.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC