<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Techy Things &#187; sdl</title>
	<atom:link href="http://tech.yipp.ca/category/sdl/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.yipp.ca</link>
	<description>Just another Yipp.ca Blogs site</description>
	<lastBuildDate>Thu, 01 May 2025 18:06:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>How to fix libSDL.a(xyz): undefined reference to `__imp_timeBeginPeriod&#039; and friends</title>
		<link>http://tech.yipp.ca/sdl/how-to-fix-libsdla-undefined-reference/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-fix-libsdla-undefined-reference</link>
		<comments>http://tech.yipp.ca/sdl/how-to-fix-libsdla-undefined-reference/#comments</comments>
		<pubDate>Fri, 14 Feb 2014 16:25:25 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[sdl]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=585</guid>
		<description><![CDATA[<p>How to fix this error : /usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x25): undefined reference to `__imp_timeBeginPeriod' /usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x2b): undefined reference to `__imp_timeGetTime' /usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x50): undefined reference to `__imp_timeGetTime' /usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0xbb): undefined reference to `__imp_timeBeginPeriod' /usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0xe1): undefined reference to `__imp_timeSetEvent' /usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x140): undefined reference&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/sdl/how-to-fix-libsdla-undefined-reference/">How to fix libSDL.a(xyz): undefined reference to `__imp_timeBeginPeriod' and friends</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2>How to fix this error :</h2>
<pre>/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x25): undefined reference to `__imp_timeBeginPeriod'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x2b): undefined reference to `__imp_timeGetTime'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x50): undefined reference to `__imp_timeGetTime'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0xbb): undefined reference to `__imp_timeBeginPeriod'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0xe1): undefined reference to `__imp_timeSetEvent'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x140): undefined reference to `__imp_timeKillEvent'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x147): undefined reference to `__imp_timeEndPeriod'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.text+0x150f): undefined reference to `IID_IDirectDrawGammaControl'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.text+0x187f): undefined reference to `IID_IDirectDrawGammaControl'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0xa0): undefined reference to `GUID_XAxis'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0xb8): undefined reference to `GUID_YAxis'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0xd0): undefined reference to `GUID_ZAxis'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0xe8): undefined reference to `GUID_RxAxis'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x100): undefined reference to `GUID_RyAxis'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x118): undefined reference to `GUID_RzAxis'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x130): undefined reference to `GUID_Slider'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x148): undefined reference to `GUID_Slider'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x160): undefined reference to `GUID_POV'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x178): undefined reference to `GUID_POV'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x190): undefined reference to `GUID_POV'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x1a8): undefined reference to `GUID_POV'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x4c0): undefined reference to `GUID_XAxis'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x4d8): undefined reference to `GUID_YAxis'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x4f0): undefined reference to `GUID_ZAxis'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x5e0): undefined reference to `GUID_XAxis'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x5f8): undefined reference to `GUID_YAxis'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x610): undefined reference to `GUID_ZAxis'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x6a0): undefined reference to `GUID_Key'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x6b8): undefined reference to `GUID_Key'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x6d0): undefined reference to `GUID_Key'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x6e8): undefined reference to `GUID_Key'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x700): undefined reference to `GUID_Key'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x718): more undefined references to `GUID_Key' follow
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_mmjoystick.o):SDL_mmjoystick.c:(.text+0x40): undefined reference to `__imp_joyGetNumDevs'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_mmjoystick.o):SDL_mmjoystick.c:(.text+0x84): undefined reference to `__imp_joyGetPosEx'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_mmjoystick.o):SDL_mmjoystick.c:(.text+0xd0): undefined reference to `__imp_joyGetDevCapsA'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_mmjoystick.o):SDL_mmjoystick.c:(.text+0x61b): undefined reference to `__imp_joyGetPosEx'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x29): undefined reference to `__imp_mciSendCommandA'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x4d): undefined reference to `__imp_mciGetErrorStringA'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x17f): undefined reference to `__imp_waveOutClose'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x1a3): undefined reference to `__imp_waveOutUnprepareHeader'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x1cf): undefined reference to `__imp_waveOutUnprepareHeader'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x27b): undefined reference to `__imp_waveOutWrite'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x360): undefined reference to `__imp_waveOutGetErrorTextA'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x48f): undefined reference to `__imp_waveOutOpen'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x4e8): undefined reference to `__imp_waveOutPrepareHeader'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5events.o):SDL_dx5events.c:(.text+0x1461): undefined reference to `IID_IDirectInputDevice2A'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5events.o):SDL_dx5events.c:(.data+0x8): undefined reference to `GUID_SysKeyboard'
/usr/local/cross-tools/x86_64-w64-mingw32/lib/libSDL.a(SDL_dx5events.o):SDL_dx5events.c:(.data+0x30): undefined reference to `GUID_SysMouse'
collect2: ld returned 1 exit status
make: *** [ffmpeg_g.exe] Error 1
</pre>
<h2>Solution :</h2>
<pre>Add -lwinmm -lgdi32 -ldxguid</pre>
<h2>Explanation:</h2>
<p>This is a really a rare problem that would occur only when you try to link with libSDL.a static library instead of the dynamic library SDL.dll. Then you have to add those library that SDL.dll normally links against which are the three above. </p>
<p>To view the full article on how to static link SDL into your application visit  </p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/sdl/how-to-fix-libsdla-undefined-reference/">How to fix libSDL.a(xyz): undefined reference to `__imp_timeBeginPeriod' and friends</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.yipp.ca/sdl/how-to-fix-libsdla-undefined-reference/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Insert a SDL event programmatically</title>
		<link>http://tech.yipp.ca/sdl/insert-a-sdl-event-programmatically/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=insert-a-sdl-event-programmatically</link>
		<comments>http://tech.yipp.ca/sdl/insert-a-sdl-event-programmatically/#comments</comments>
		<pubDate>Wed, 12 Feb 2014 18:56:12 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[sdl]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=575</guid>
		<description><![CDATA[<p>SDL_Event user_event; user_event.type=SDL_USEREVENT; user_event.user.code=2; user_event.user.data1=NULL; user_event.user.data2=NULL; SDL_PushEvent(&#38;user_event); ... in event loop switch (event.type) { case SDL_USEREVENT: if (event.user.code == MY_CUSTOM_DEFINE) { } break; (...) }</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/sdl/insert-a-sdl-event-programmatically/">Insert a SDL event programmatically</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre>SDL_Event user_event;
user_event.type=SDL_USEREVENT;
user_event.user.code=2;
user_event.user.data1=NULL;
user_event.user.data2=NULL;
SDL_PushEvent(&amp;user_event);
</pre>
<p>... in event loop</p>
<pre>
switch (event.type) {

case SDL_USEREVENT:
   if (event.user.code == MY_CUSTOM_DEFINE)
   {
   }
   break;

(...)

}
</pre>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/sdl/insert-a-sdl-event-programmatically/">Insert a SDL event programmatically</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.yipp.ca/sdl/insert-a-sdl-event-programmatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
