<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Sun May 19, 2013 5:34 pm by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Sun May 19, 2013 5:34 pm</pubDate>
  <lastBuildDate>Sun May 19, 2013 5:34 pm</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>RE: A few problems with SDL in Ubuntu - Dapper</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=27730#27730</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=162'&gt;Nigel&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Jul 19, 2006 10:39 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      That's the downside of using an IDE... most of them will try to cater for so many possible situations that the makefiles they produce are horrendous tangles of spaghetti... almost as bad as the ones I write by hand &lt;img src=&quot;images/smiles/icon_rolleyes.gif&quot; alt=&quot;Rolling Eyes&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;
Still, if you're up &amp;amp; running, I'd stick with Kdevelop - switching IDEs mid-project is not for the faint-hearted !</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=27730#27730</comments>
                                        <author>Nigel</author>
                                        <pubDate>Wed Jul 19, 2006 10:39 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=27730#27730</guid>
                                      </item>
                                      <item>
                                        <title>RE: A few problems with SDL in Ubuntu - Dapper</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=27670#27670</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5530'&gt;GMorgan&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Jul 18, 2006 3:26 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I do have entries along these sorts of lines&lt;br /&gt;
&lt;br /&gt;
LIBSDL_CFLAGS = @LIBSDL_CFLAGS@&lt;br /&gt;
LIBSDL_LIBS = @LIBSDL_LIBS@&lt;br /&gt;
LIBSDL_RPATH = @LIBSDL_RPATH@&lt;br /&gt;
&lt;br /&gt;
# set the include path found by configure&lt;br /&gt;
AM_CPPFLAGS = $(LIBSDL_CFLAGS) $(all_includes)&lt;br /&gt;
&lt;br /&gt;
# the library search path.&lt;br /&gt;
sdl1a_LDFLAGS = $(all_libraries) $(LIBSDL_RPATH)&lt;br /&gt;
sdl1a_LDADD = $(LIBSDL_LIBS)&lt;br /&gt;
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs&lt;br /&gt;
CONFIG_HEADER = ../config.h&lt;br /&gt;
CONFIG_CLEAN_FILES = &lt;br /&gt;
bin_PROGRAMS =  sdl1a$(EXEEXT)&lt;br /&gt;
PROGRAMS =  $(bin_PROGRAMS)&lt;br /&gt;
&lt;br /&gt;
but I couldn't find the options mentioned when I greped the makefile.&lt;br /&gt;
&lt;br /&gt;
I'm having trouble with seg faults on the second tutorial but I'll try to solve it myself before I come crying too much.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=27670#27670</comments>
                                        <author>GMorgan</author>
                                        <pubDate>Tue Jul 18, 2006 3:26 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=27670#27670</guid>
                                      </item>
                                      <item>
                                        <title>RE: A few problems with SDL in Ubuntu - Dapper</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=27646#27646</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=162'&gt;Nigel&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Jul 18, 2006 10:05 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Check the makefile it has generated. I'll bet the new version includes the SDL libraries in the link whereas the old one didn't.&lt;br /&gt;
Look for options something like&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;nbsp;-lSDL -lSDL_mixer&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=27646#27646</comments>
                                        <author>Nigel</author>
                                        <pubDate>Tue Jul 18, 2006 10:05 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=27646#27646</guid>
                                      </item>
                                      <item>
                                        <title>RE: A few problems with SDL in Ubuntu - Dapper</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=27609#27609</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5530'&gt;GMorgan&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Jul 17, 2006 6:11 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I'm using Kdevelop, I started it as a simple hello world.&lt;br /&gt;
&lt;br /&gt;
//edit -  I've switched to a simple SDL project and it works now but the question is what has changed. I don't want to be unnecessarily tied to one IDE//</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=27609#27609</comments>
                                        <author>GMorgan</author>
                                        <pubDate>Mon Jul 17, 2006 6:11 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=27609#27609</guid>
                                      </item>
                                      <item>
                                        <title>RE: A few problems with SDL in Ubuntu - Dapper</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=27608#27608</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=162'&gt;Nigel&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Jul 17, 2006 5:30 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Looks like you're not including the SDL libraries in your link... is it a home-brewed makefile ?</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=27608#27608</comments>
                                        <author>Nigel</author>
                                        <pubDate>Mon Jul 17, 2006 5:30 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=27608#27608</guid>
                                      </item>
                                      <item>
                                        <title>A few problems with SDL in Ubuntu - Dapper</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=27605#27605</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5530'&gt;GMorgan&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Jul 17, 2006 5:19 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I'm turning my programming attention towards SDL but I'm running into a few difficulties. I've been following the first tutorial on &lt;a href=&quot;http://cone3d.gamedev.net/cgi-bin/index.pl?page=tutorials/gfxsdl/index&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;&gt;this website.&lt;/a&gt; The program I'm running is below.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;#include &amp;lt;SDL/SDL.h&amp;gt;&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
void DrawPixel&amp;#40;SDL_Surface *screen, int x, int y, Uint8 R, Uint8 G, Uint8 B&amp;#41;;&lt;br /&gt;
void Slock&amp;#40;SDL_Surface *screen&amp;#41;;&lt;br /&gt;
void Sulock&amp;#40;SDL_Surface *screen&amp;#41;;&lt;br /&gt;
&lt;br /&gt;
int main&amp;#40;&amp;#41;&amp;#123;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;if&amp;#40; SDL_Init&amp;#40; SDL_INIT_VIDEO|SDL_INIT_AUDIO &amp;#41; &amp;lt; 0 &amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;#123;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;cout &amp;lt;&amp;lt; &amp;quot;Unable to init SDL&amp;#58; &amp;quot; &amp;lt;&amp;lt; SDL_GetError&amp;#40;&amp;#41; &amp;lt;&amp;lt; endl;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;return 1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;atexit&amp;#40;SDL_Quit&amp;#41;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;SDL_Surface *screen;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;screen = SDL_SetVideoMode&amp;#40; 640, 480, 32, SDL_HWSURFACE|SDL_DOUBLEBUF &amp;#41;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;if &amp;#40; screen == NULL &amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;#123;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;cout &amp;lt;&amp;lt; &amp;quot;Unable to set 640x480 video&amp;#58; &amp;quot; &amp;lt;&amp;lt; SDL_GetError&amp;#40;&amp;#41; &amp;lt;&amp;lt; endl;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;return 1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;return 0;&lt;br /&gt;
&amp;#125;&lt;br /&gt;
&lt;br /&gt;
void DrawPixel&amp;#40;SDL_Surface *screen, int x, int y, Uint8 R, Uint8 G, Uint8 B&amp;#41;&amp;#123;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;Uint32 color = SDL_MapRGB&amp;#40;screen-&amp;gt;format, R, G, B&amp;#41;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;switch &amp;#40;screen-&amp;gt;format-&amp;gt;BytesPerPixel&amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;#123;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;case 1&amp;#58; // Assuming 8-bpp&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#123;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;Uint8 *bufp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;bufp = &amp;#40;Uint8 *&amp;#41;screen-&amp;gt;pixels + y*screen-&amp;gt;pitch + x;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;*bufp = color;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#125;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;break;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;case 2&amp;#58; // Probably 15-bpp or 16-bpp&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#123;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;Uint16 *bufp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;bufp = &amp;#40;Uint16 *&amp;#41;screen-&amp;gt;pixels + y*screen-&amp;gt;pitch/2 + x;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;*bufp = color;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#125;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;break;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;case 3&amp;#58; // Slow 24-bpp mode, usually not used&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#123;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;Uint8 *bufp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;bufp = &amp;#40;Uint8 *&amp;#41;screen-&amp;gt;pixels + y*screen-&amp;gt;pitch + x * 3;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;if&amp;#40;SDL_BYTEORDER == SDL_LIL_ENDIAN&amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#123;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;bufp&amp;#91;0&amp;#93; = color;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;bufp&amp;#91;1&amp;#93; = color &amp;gt;&amp;gt; 8;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;bufp&amp;#91;2&amp;#93; = color &amp;gt;&amp;gt; 16;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#125; else&amp;#123;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;bufp&amp;#91;2&amp;#93; = color;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;bufp&amp;#91;1&amp;#93; = color &amp;gt;&amp;gt; 8;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;bufp&amp;#91;0&amp;#93; = color &amp;gt;&amp;gt; 16;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#125;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#125;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;break;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;case 4&amp;#58; // Probably 32-bpp&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#123;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;Uint32 *bufp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;bufp = &amp;#40;Uint32 *&amp;#41;screen-&amp;gt;pixels + y*screen-&amp;gt;pitch/4 + x;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;*bufp = color;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#125;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;break;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;&lt;br /&gt;
&amp;#125;&lt;br /&gt;
&lt;br /&gt;
void Slock&amp;#40;SDL_Surface *screen&amp;#41;&amp;#123;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;if &amp;#40; SDL_MUSTLOCK&amp;#40;screen&amp;#41; &amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;#123;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;if &amp;#40; SDL_LockSurface&amp;#40;screen&amp;#41; &amp;lt; 0 &amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#123;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;return;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#125;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;&lt;br /&gt;
&amp;#125;&lt;br /&gt;
&lt;br /&gt;
void Sulock&amp;#40;SDL_Surface *screen&amp;#41;&amp;#123;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;if &amp;#40; SDL_MUSTLOCK&amp;#40;screen&amp;#41; &amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;#123;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;SDL_UnlockSurface&amp;#40;screen&amp;#41;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;&lt;br /&gt;
&amp;#125;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
and the output from the compiler looks like this.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;cd '/home/gareth/documents/Programming/C-C++/sdl1/debug' &amp;amp;&amp;amp; WANT_AUTOCONF_2_5=&amp;quot;1&amp;quot; WANT_AUTOMAKE_1_6=&amp;quot;1&amp;quot; make -k &lt;br /&gt;
make all-recursive&lt;br /&gt;
Making all in src&lt;br /&gt;
compiling sdl1.cpp &amp;#40;g++&amp;#41;&lt;br /&gt;
linking sdl1 &amp;#40;libtool&amp;#41;&lt;br /&gt;
linking sdl1 &amp;#40;g++&amp;#41;&lt;br /&gt;
sdl1.o&amp;#58; In function `main'&amp;#58;/home/gareth/documents/Programming/C-C++/sdl1/src/sdl1.cpp&amp;#58;13&amp;#58; undefined reference to `SDL_Init'&lt;br /&gt;
&amp;#58;/home/gareth/documents/Programming/C-C++/sdl1/src/sdl1.cpp&amp;#58;15&amp;#58; undefined reference to `SDL_GetError'&lt;br /&gt;
&amp;#58;/home/gareth/documents/Programming/C-C++/sdl1/src/sdl1.cpp&amp;#58;18&amp;#58; undefined reference to `SDL_Quit'&lt;br /&gt;
&amp;#58;/home/gareth/documents/Programming/C-C++/sdl1/src/sdl1.cpp&amp;#58;21&amp;#58; undefined reference to `SDL_SetVideoMode'&lt;br /&gt;
&amp;#58;/home/gareth/documents/Programming/C-C++/sdl1/src/sdl1.cpp&amp;#58;25&amp;#58; undefined reference to `SDL_GetError'&lt;br /&gt;
sdl1.o&amp;#58; In function `DrawPixel&amp;#40;SDL_Surface*, int, int, unsigned char, unsigned char, unsigned char&amp;#41;'&amp;#58;/home/gareth/documents/Programming/C-C++/sdl1/src/sdl1.cpp&amp;#58;33&amp;#58; undefined reference to `SDL_MapRGB'&lt;br /&gt;
sdl1.o&amp;#58; In function `Slock&amp;#40;SDL_Surface*&amp;#41;'&amp;#58;/home/gareth/documents/Programming/C-C++/sdl1/src/sdl1.cpp&amp;#58;79&amp;#58; undefined reference to `SDL_LockSurface'&lt;br /&gt;
sdl1.o&amp;#58; In function `Sulock&amp;#40;SDL_Surface*&amp;#41;'&amp;#58;/home/gareth/documents/Programming/C-C++/sdl1/src/sdl1.cpp&amp;#58;89&amp;#58; undefined reference to `SDL_UnlockSurface'&lt;br /&gt;
collect2&amp;#58; ld returned 1 exit status&lt;br /&gt;
make&amp;#91;2&amp;#93;&amp;#58; *** &amp;#91;sdl1&amp;#93; Error 1&lt;br /&gt;
make&amp;#91;2&amp;#93;&amp;#58; Target `all' not remade because of errors.&lt;br /&gt;
make&amp;#91;2&amp;#93;&amp;#58; Nothing to be done for `all-am'.&lt;br /&gt;
make&amp;#91;1&amp;#93;&amp;#58; *** &amp;#91;all-recursive&amp;#93; Error 1&lt;br /&gt;
make&amp;#58; *** &amp;#91;all-recursive-am&amp;#93; Error 2&lt;br /&gt;
make&amp;#58; Target `all' not remade because of errors.&lt;br /&gt;
*** Exited with status&amp;#58; 2 ***&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
At first I thought the #include &amp;lt;SDL/SDL.h&amp;gt; statement was wrong but upon trying different combinations I got a ton more of errors, this second load of errors was repeated for every combination bar the original file so I'm assuming the statement was correct.&lt;br /&gt;
&lt;br /&gt;
Any help would be appreciated.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=27605#27605</comments>
                                        <author>GMorgan</author>
                                        <pubDate>Mon Jul 17, 2006 5:19 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=27605#27605</guid>
                                      </item></channel></rss>