SHGetKnownFolderPath instead?
DXINCLUDE = "C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include"
CXXFLAGS = -g -I. -I$(DXINCLUDE) -DUNICODE -D_UNICODE -DMINGW
CXXFLAGS += -IFreeImage/Dist -ISDL/include/SDL -ISDL_mixer/includeg++ -o programa test.cpp lib/libgosu.a -lopengl32 -lglu32 -LSDL_mixer/lib -lSDL_mixer -LFreeImage/Dist -lfreeimage -LSDL/lib -llibsdllib/libgosu.a(WindowWin.o): In function windowClass':
c:\gosu/GosuImpl/WindowWin.cpp:163: undefined reference to CreateSolidBrush@4'
lib/libgosu.a(WindowWin.o): In function Window':
c:\gosu/GosuImpl/WindowWin.cpp:239: undefined reference to ChoosePixelFormat@8'
c:\gosu/GosuImpl/WindowWin.cpp:241: undefined reference to SetPixelFormat@12'
lib/libgosu.a(WindowWin.o): In function ZN4Gosu6Window13handleMessageEjjl':
c:\gosu/GosuImpl/WindowWin.cpp:484: undefined reference to SwapBuffers@4'
lib/libgosu.a(InputWin.o): In function Input':
c:\gosu/GosuImpl/InputWin.cpp:288: undefined reference to IID_IDirectInput8W'
c:\gosu/GosuImpl/InputWin.cpp:288: undefined reference to DirectInput8Create@20'
c:\gosu/GosuImpl/InputWin.cpp:306: undefined reference to GUID_SysKeyboard'
c:\gosu/GosuImpl/InputWin.cpp:310: undefined reference to c_dfDIKeyboard'
c:\gosu/GosuImpl/InputWin.cpp:324: undefined reference to GUID_SysMouse'
c:\gosu/GosuImpl/InputWin.cpp:328: undefined reference to c_dfDIMouse'
lib/libgosu.a(InputWin.o): In function ZN4Gosu5Input4Impl15gamepadCallbackEPK17DIDEVICEINSTANCEWPv@8':
c:\gosu/GosuImpl/InputWin.cpp:120: undefined reference to c_dfDIJoystick'
lib/libgosu.a(TimingWin.o): In function resetTGT':
c:\gosu/GosuImpl/TimingWin.cpp:14: undefined reference to timeEndPeriod@4'
lib/libgosu.a(TimingWin.o): In function ZN4Gosu12millisecondsEv':
c:\gosu/GosuImpl/TimingWin.cpp:23: undefined reference to timeBeginPeriod@4'
c:\gosu/GosuImpl/TimingWin.cpp:30: undefined reference to `timeGetTime@0'-lgdi32 resolves the undefined references in WindowWin.cpp. Now only the ones in InputWin and TimingWin remain. Come on! We gotta do it! :D
$ gcc -o RubyGosu_wrap.o RubyGosu_wrap.cxx -I/c/Ruby/include/ruby-1.9.1/ -I.. -I. -I/c/RubyDK/include/
In file included from ../Gosu/Gosu.hpp:13:0,
from RubyGosu_wrap.cxx:2267:
RubyGosu_wrap.cxx: In function 'void Gosu::requireFreeImageFor(const char*)':
RubyGosu_wrap.cxx:2329:9: error: expected 'catch' before '__except'
RubyGosu_wrap.cxx:2329:9: error: expected '(' before '__except'
RubyGosu_wrap.cxx:2329:9: error: expected type-specifier before '__except'
RubyGosu_wrap.cxx:2329:18: error: expected ')' before '(' token
RubyGosu_wrap.cxx:2329:18: error: expected '{' before '(' token
RubyGosu_wrap.cxx:2329:37: error: 'GetExceptionCode' was not declared in this scope
RubyGosu_wrap.cxx:2330:9: error: expected ';' before '{' token__except is a Microsoft extension that MinGW likely doesn't support. Basically, I try to open a DLL file and if a Windows-internal exception is raised, I have a backup plan.> I need to build it using mingw in order to build the Ruby wrapper, which has to be built with mingw to work with the Ruby Installer binaries (which are built with mingw).
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill