View Single Post
Old 11-21-2011, 04:06 PM   #1
AudiOishi
Human being with feelings
 
Join Date: Dec 2009
Posts: 50
Default build sws extensions - redefinition errors, Other question.

I'm looking for an introduction to using the Reaper SDK, and as recommended, I'm looking at the SWS extensions as an example.

It looks like the sws extensions want the WDL source folder to live one level up from the sws-extensions folder, so I downloaded it and placed it appropriately.

When I try to build the sws extensions in VS 2008 Express I get the following errors:


Code:
1>------ Build started: Project: SWS_Extension, Configuration: Test Win32 ------
1>Checking for REAPER_DIR environment variable...
1>Compiling...
1>stdafx.cpp
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(920) : error C2365: 'LICE_Arc' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(469) : see declaration of 'LICE_Arc'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(922) : error C2365: 'LICE_Blit' : redefinition; previous definition was 'function'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(924) : error C2365: 'LICE_Blur' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(367) : see declaration of 'LICE_Blur'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(926) : error C2365: 'LICE_BorderedRect' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(498) : see declaration of 'LICE_BorderedRect'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(928) : error C2365: 'LICE_Circle' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(471) : see declaration of 'LICE_Circle'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(930) : error C2365: 'LICE_Clear' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(411) : see declaration of 'LICE_Clear'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(932) : error C2365: 'LICE_ClearRect' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(412) : see declaration of 'LICE_ClearRect'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(935) : error C2365: 'LICE_ClipLine' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(466) : see declaration of 'LICE_ClipLine'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(937) : error C2365: 'LICE_Copy' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(360) : see declaration of 'LICE_Copy'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(944) : error C2365: 'LICE_DrawChar' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(446) : see declaration of 'LICE_DrawChar'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(946) : error C2365: 'LICE_DrawGlyph' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(477) : see declaration of 'LICE_DrawGlyph'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(948) : error C2365: 'LICE_DrawRect' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(497) : see declaration of 'LICE_DrawRect'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(950) : error C2365: 'LICE_DrawText' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(448) : see declaration of 'LICE_DrawText'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(952) : error C2365: 'LICE_FillCircle' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(472) : see declaration of 'LICE_FillCircle'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(954) : error C2365: 'LICE_FillConvexPolygon' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(460) : see declaration of 'LICE_FillConvexPolygon'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(956) : error C2365: 'LICE_FillRect' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(408) : see declaration of 'LICE_FillRect'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(958) : error C2365: 'LICE_FillTrapezoid' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(459) : see declaration of 'LICE_FillTrapezoid'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(960) : error C2365: 'LICE_FillTriangle' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(462) : see declaration of 'LICE_FillTriangle'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(962) : error C2365: 'LICE_GetPixel' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(356) : see declaration of 'LICE_GetPixel'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(964) : error C2365: 'LICE_GradRect' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(402) : see declaration of 'LICE_GradRect'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(966) : error C2365: 'LICE_Line' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(454) : see declaration of 'LICE_Line'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(970) : error C2365: 'LICE_LoadPNG' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(320) : see declaration of 'LICE_LoadPNG'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(972) : error C2365: 'LICE_LoadPNGFromResource' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(322) : see declaration of 'LICE_LoadPNGFromResource'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(974) : error C2365: 'LICE_MeasureText' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(450) : see declaration of 'LICE_MeasureText'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(976) : error C2365: 'LICE_MultiplyAddRect' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(413) : see declaration of 'LICE_MultiplyAddRect'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(978) : error C2365: 'LICE_PutPixel' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(355) : see declaration of 'LICE_PutPixel'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(981) : error C2365: 'LICE_RotatedBlit' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(377) : see declaration of 'LICE_RotatedBlit'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(983) : error C2365: 'LICE_RoundRect' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(473) : see declaration of 'LICE_RoundRect'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(985) : error C2365: 'LICE_ScaledBlit' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(370) : see declaration of 'LICE_ScaledBlit'
1>C:\Program Files\Reaper4\reaper_plugin_functions.h(987) : error C2365: 'LICE_SimpleFill' : redefinition; previous definition was 'function'
1>        c:\projects\reaperdev\wdl\sws-extension\reaper\../../WDL/lice/lice.h(421) : see declaration of 'LICE_SimpleFill'
1>Build log was saved at "file://c:\Projects\ReaperDev\WDL\sws-extension\Test\BuildLog.htm"
1>SWS_Extension - 30 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Any ideas what could be causing this?

I also noticed that as source file for the SWS extensions #includes afxres.h. I believe afxres is only available as part of some MSDN SDK that is not available in visual studio express. Can anyone confirm this? Does that mean that there's no way to build the sws extensions without Visual Studio Professional?
AudiOishi is offline   Reply With Quote