<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Compiling SDL_gfx (2.0.17) on Visual Studio 2008 (VS9)</title>
	<link>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/</link>
	<description></description>
	<pubDate>Wed, 07 Jan 2009 00:00:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3</generator>
		<item>
		<title>By: tobbez</title>
		<link>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15190</link>
		<dc:creator>tobbez</dc:creator>
		<pubDate>Fri, 05 Dec 2008 02:09:09 +0000</pubDate>
		<guid>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15190</guid>
		<description>@Paul: You still have to setup the include and library paths for SDL properly, i.e. adding them in Tools -&gt; Options -&gt; Projects and Solutions -&gt; VC++ Directories.</description>
		<content:encoded><![CDATA[<p>@Paul: You still have to setup the include and library paths for SDL properly, i.e. adding them in Tools -> Options -> Projects and Solutions -> VC++ Directories.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15189</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Thu, 04 Dec 2008 21:56:21 +0000</pubDate>
		<guid>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15189</guid>
		<description>Thank you so much - you are a lifesaver.

You made a correct decision to upload the binaries, because i still get four compiler errors. (cannot open include file: 'SDL.h')

I think that's because it doesn't see SDL.lib</description>
		<content:encoded><![CDATA[<p>Thank you so much - you are a lifesaver.</p>
<p>You made a correct decision to upload the binaries, because i still get four compiler errors. (cannot open include file: &#8216;SDL.h&#8217;)</p>
<p>I think that&#8217;s because it doesn&#8217;t see SDL.lib</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15188</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 02 Dec 2008 15:36:40 +0000</pubDate>
		<guid>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15188</guid>
		<description>Amazing work, thanks.</description>
		<content:encoded><![CDATA[<p>Amazing work, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sweetlilmre</title>
		<link>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15186</link>
		<dc:creator>sweetlilmre</dc:creator>
		<pubDate>Fri, 31 Oct 2008 13:37:25 +0000</pubDate>
		<guid>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15186</guid>
		<description>No offence, but your assumptions as to why this does not compile are completely incorrect.


point 2: the compile errors are NOT a result of the mentioned bug. C89 only allows variable declaration at the top of the function. If you hoist the vars it complains about to the top, the errors disappear.

e.g. in:

Uint8 drawoct = 0; // 0x00000000

It is the definition of the var drawoct at this point that causes the issue, move the definition to the top of the function and change above to:

drawoct = 0; // 0x00000000

Most of these errors are in arcColor() and easily fixable.

point 4: the project file can be fixed very simply by opening it in a text editor and deleting the references to "..\..\..\Documents and Settings\James\Desktop\SDL_gfx-2.0.3\" and making sure the vcproj is in the same dir as the source.

point 8: this is simply a typo, if you look carefully, the paramer is named 'ftl' and the operand is named 'flt'. Either change the param to flt, or the op to ftl and all is well.</description>
		<content:encoded><![CDATA[<p>No offence, but your assumptions as to why this does not compile are completely incorrect.</p>
<p>point 2: the compile errors are NOT a result of the mentioned bug. C89 only allows variable declaration at the top of the function. If you hoist the vars it complains about to the top, the errors disappear.</p>
<p>e.g. in:</p>
<p>Uint8 drawoct = 0; // 0&#215;00000000</p>
<p>It is the definition of the var drawoct at this point that causes the issue, move the definition to the top of the function and change above to:</p>
<p>drawoct = 0; // 0&#215;00000000</p>
<p>Most of these errors are in arcColor() and easily fixable.</p>
<p>point 4: the project file can be fixed very simply by opening it in a text editor and deleting the references to &#8220;..\..\..\Documents and Settings\James\Desktop\SDL_gfx-2.0.3\&#8221; and making sure the vcproj is in the same dir as the source.</p>
<p>point 8: this is simply a typo, if you look carefully, the paramer is named &#8216;ftl&#8217; and the operand is named &#8216;flt&#8217;. Either change the param to flt, or the op to ftl and all is well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PRIZRAK</title>
		<link>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15185</link>
		<dc:creator>PRIZRAK</dc:creator>
		<pubDate>Sat, 18 Oct 2008 16:07:21 +0000</pubDate>
		<guid>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15185</guid>
		<description>Thank you very much!</description>
		<content:encoded><![CDATA[<p>Thank you very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swiz</title>
		<link>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15184</link>
		<dc:creator>Swiz</dc:creator>
		<pubDate>Sat, 11 Oct 2008 11:20:38 +0000</pubDate>
		<guid>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15184</guid>
		<description>If anyone cares, I tweaked the VC6 makefile to get it working using VC9 Express. It's built, but I've not tested it yet. You'll need to change the include and lib defines, and still follow all the other steps (rename to cpp etc).

# This makefile will build an SDL_gfx.dll with Visual C
# It was made for VC6 on Windows 98
#
# nmake should build the lot.
# .dll file goes in your system directory
# .lib and the .h files go into the searchpath of you compiler
#
# Edit this:
LIBSDL=C:\dev\SDL-1.2.13\lib\sdl.lib
# Leave the rest

CFLAGS=-DBUILD_DLL -DWIN32 -IC:\dev\SDL-1.2.13\include

.cpp.obj:
	$(CC) $(CFLAGS) -I. $(CPPFLAGS) -c $(&#60;:/=\)
	
OBJS=SDL_framerate.obj SDL_gfxPrimitives.obj SDL_imageFilter.obj SDL_rotozoom.obj

SDL_gfx.dll: $(OBJS)	
	cl $(OBJS) /link /dll /out:$@ $(LIBSDL)

clean:
	del *.obj
	del *.lib
	del *.exp
	del *.dll</description>
		<content:encoded><![CDATA[<p>If anyone cares, I tweaked the VC6 makefile to get it working using VC9 Express. It&#8217;s built, but I&#8217;ve not tested it yet. You&#8217;ll need to change the include and lib defines, and still follow all the other steps (rename to cpp etc).</p>
<p># This makefile will build an SDL_gfx.dll with Visual C<br />
# It was made for VC6 on Windows 98<br />
#<br />
# nmake should build the lot.<br />
# .dll file goes in your system directory<br />
# .lib and the .h files go into the searchpath of you compiler<br />
#<br />
# Edit this:<br />
LIBSDL=C:\dev\SDL-1.2.13\lib\sdl.lib<br />
# Leave the rest</p>
<p>CFLAGS=-DBUILD_DLL -DWIN32 -IC:\dev\SDL-1.2.13\include</p>
<p>.cpp.obj:<br />
	$(CC) $(CFLAGS) -I. $(CPPFLAGS) -c $(&lt;:/=\)</p>
<p>OBJS=SDL_framerate.obj SDL_gfxPrimitives.obj SDL_imageFilter.obj SDL_rotozoom.obj</p>
<p>SDL_gfx.dll: $(OBJS)<br />
	cl $(OBJS) /link /dll /out:$@ $(LIBSDL)</p>
<p>clean:<br />
	del *.obj<br />
	del *.lib<br />
	del *.exp<br />
	del *.dll</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ande</title>
		<link>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15183</link>
		<dc:creator>Ande</dc:creator>
		<pubDate>Sun, 05 Oct 2008 17:43:06 +0000</pubDate>
		<guid>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15183</guid>
		<description>Is there any place where I could download this newest DLL? It makes no sense everyone has to compile it by themselves.</description>
		<content:encoded><![CDATA[<p>Is there any place where I could download this newest DLL? It makes no sense everyone has to compile it by themselves.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15182</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sat, 04 Oct 2008 01:41:48 +0000</pubDate>
		<guid>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15182</guid>
		<description>I can't begin to tell you how thankful I am for this post! I had totally given up hope. Keep up the great work!</description>
		<content:encoded><![CDATA[<p>I can&#8217;t begin to tell you how thankful I am for this post! I had totally given up hope. Keep up the great work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: renkin</title>
		<link>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15179</link>
		<dc:creator>renkin</dc:creator>
		<pubDate>Tue, 09 Sep 2008 16:49:49 +0000</pubDate>
		<guid>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15179</guid>
		<description>Thanks a great deal! I was about to get gloomy about sdlgfx.</description>
		<content:encoded><![CDATA[<p>Thanks a great deal! I was about to get gloomy about sdlgfx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FyberOptic</title>
		<link>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15178</link>
		<dc:creator>FyberOptic</dc:creator>
		<pubDate>Sun, 31 Aug 2008 01:42:57 +0000</pubDate>
		<guid>http://blog.ryara.net/2008/07/12/compiling-sdl_gfx-2017-on-visual-studio-2008-vs9/#comment-15178</guid>
		<description>Wow, thanks a lot for this.  I wasted so much time today trying to get clanlib to work using SDL + SDL_gfx.  That was partially because I started with msys + mingw to build clanlib, but after many hours of frustration only for my test program to still not build properly in the end, I decided to just go to Visual Studio.  Everything built just fine (half an hour compared to almost six with mingw), up until SDL_gfx.  I was ready to give up completely till I found this page.  After your fixes, it compiled like a charm.  So thanks again!</description>
		<content:encoded><![CDATA[<p>Wow, thanks a lot for this.  I wasted so much time today trying to get clanlib to work using SDL + SDL_gfx.  That was partially because I started with msys + mingw to build clanlib, but after many hours of frustration only for my test program to still not build properly in the end, I decided to just go to Visual Studio.  Everything built just fine (half an hour compared to almost six with mingw), up until SDL_gfx.  I was ready to give up completely till I found this page.  After your fixes, it compiled like a charm.  So thanks again!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 6.555 seconds -->
