equal
deleted
inserted
replaced
69 <br> |
69 <br> |
70 <STRONG><FONT color="#009900">VC7 Specific: Instead of doing this I find it easier to |
70 <STRONG><FONT color="#009900">VC7 Specific: Instead of doing this I find it easier to |
71 add the include and library directories to the list that VC7 keeps. Do this by |
71 add the include and library directories to the list that VC7 keeps. Do this by |
72 selecting Tools|Options|Projects|VC++ Directories and under the "Show |
72 selecting Tools|Options|Projects|VC++ Directories and under the "Show |
73 Directories For:" dropbox select "Include Files", and click the "New Directory |
73 Directories For:" dropbox select "Include Files", and click the "New Directory |
74 Icon" and add the [SDLROOT]\include directory (ex. If you installed to |
74 Icon" and add the [SDLROOT]\include directory (e.g. If you installed to |
75 c:\SDL-1.2.5\ add c:\SDL-1.2.5\include). Proceed to change the |
75 c:\SDL\ add c:\SDL\include). Proceed to change the |
76 dropbox selection to "Library Files" and add [SDLROOT]\lib.</FONT></STRONG> |
76 dropbox selection to "Library Files" and add [SDLROOT]\lib.</FONT></STRONG> |
77 </P> |
77 </P> |
78 <P> |
78 <P> |
79 The "include directory" I am referring to is the <CODE>include</CODE> folder |
79 The "include directory" I am referring to is the <CODE>include</CODE> folder |
80 within the main SDL directory (the one that this HTML file located within). |
80 within the main SDL directory (the one that this HTML file located within). |
103 </P> |
103 </P> |
104 <P><STRONG><FONT color="#009900">Instead of adding the files to your project it is more |
104 <P><STRONG><FONT color="#009900">Instead of adding the files to your project it is more |
105 desireable to add them to the linker options: Project|Properties|Linker|Command |
105 desireable to add them to the linker options: Project|Properties|Linker|Command |
106 Line and type the names of the libraries to link with in the "Additional |
106 Line and type the names of the libraries to link with in the "Additional |
107 Options:" box. Note: This must be done for each build |
107 Options:" box. Note: This must be done for each build |
108 configuration (eg. Release,Debug).</FONT></STRONG></P> |
108 configuration (e.g. Release,Debug).</FONT></STRONG></P> |
109 <H3> |
109 <H3> |
110 SDL 101, First Day of Class |
110 SDL 101, First Day of Class |
111 </H3> |
111 </H3> |
112 <P> |
112 <P> |
113 Now create the basic body of your project. The body of your program should take |
113 Now create the basic body of your project. The body of your program should take |
114 the following form: <CODE> |
114 the following form: <CODE> |
115 <PRE> |
115 <PRE> |
116 #include "SDL2.h" |
116 #include "SDL.h" |
117 |
117 |
118 int main( int argc, char* argv[] ) |
118 int main( int argc, char* argv[] ) |
119 { |
119 { |
120 // Body of the program goes here. |
120 // Body of the program goes here. |
121 return 0; |
121 return 0; |