Re: [Bf-committers] Error compiling under win32 with GCC (maybe Cygwin's/MinGW's shell32 lib lacks SHGetSpecialFolderPath???)

Ralf Hoelzemer Cheleb at gmx.de
Mon Mar 20 10:51:01 CET 2006


Hi Elubie,

i found a solution on the web for this problem.
It seems that SHGetSpecialFolderPath is not available in all versions of
shell32.
I replaced the call with SHGetFolderPath, which seems to work in mingw.
Works for me(tm)
Patch attached

Cheers,
Ralf

> Hi,
> 
> > There is a problem compiling under Win32 using GCC (both Cygwin with
> > makefiles and MinGW with scons) after the last changes to usiblender.c:
> >
> 
> Yes, this was caused by my commit yesterday, sorry for that. I've since
> then
> worked on solving the issue.
> 
> > I added -lshell32 to the list of libraries for ld:
> >
> 
> This is the first thing you need to do, correct. Unfortunately for correct
> inclusion of the
> header shlobj.h -D_WIN32_IE=0x0400 has to be added to the CPPFLAGS too.
> I'm working on solving the issue for the scons build with jesterKing and
> hope
> someone
> familiar with the makefiles can add it there too.
> 
> If adding this is not acceptable, I will disable the inclusion fo shlobj.h
> and
> SHGetSpecialFolderPath
> for FREE_WINDOWS.
> 
> --- Andrea
> 
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blender.patch
Type: application/octet-stream
Size: 1751 bytes
Desc: not available
Url : http://projects.blender.org/pipermail/bf-committers/attachments/20060320/4d1b1058/blender-0001.obj


More information about the Bf-committers mailing list