Neat demo. It builds with codeblocks. I'm using the dll version of wxWidgets 2.6 and wxIFM as a static lib. Steps:
1. Build wxWidgets 2.6 according to the wiki:
http://wiki.codeblocks.org/index.php/Compiling_wxWidgets_2.6.1_to_develop_Code::Blocks_%28MSW%29#Building_wxWidgets_2.6.1_mingw32_.26_vc.2B.2B_toolkit_2003under "for vc++ toolkit 2003 compiler"
2. Download wxIFM 1.0.4
http://www.solidsteel.nl/users/wxwidgets/viewtopic.php?p=16704#167042b. and this patch:
http://forums.codeblocks.org/index.php?action=dlattach;topic=748.0;id=84 (reply #25 of this thread)
3. Extract wxIFM source and patch it
open MSYS (download from mingw sourceforget site if needed), and do
cd wxIFM
patch -p0 -i ../wxifm_diff.patch.txt
4. open codeblocks and import the .sln. You will need to add some paths, enable c++ exceptions option, and also the WXUSINGDLL define. Then build wxIFM and then the demo. I've attached the modified .cbp codeblocks files. You will need to modify any absolute paths as needed if you use these. I only changed things for the nonunicode release builds as wel...
4b. if you want to link against msvcrt.dll instead of libc.lib (you can choose in the compiler options (MT DLL runtime lib or MT runtime lib) then do this to produce msvcprt.lib:
open MSYS
cd /c/WINDOWS/system32
PATH=$PATH:/c/Program\ Files/Microsoft\ Platform\ SDK/Bin/win64/
echo LIBRARY msvcp71.dll > msvcprt.def
echo EXPORTS >> msvcprt.def
link -dump -exports msvcp71.dll | sed -nf exports.sed >> msvcprt.def
link -lib -machine:X86 -def:msvcprt.def -out:msvcprt.lib
exit
---exports.sed---
# echo LIBRARY msvcp71.dll > msvcprt.def
# echo EXPORTS >> msvcprt.def
# link -dump -exports msvcp71.dll | sed -nf exports_alt.sed >> msvcprt.def
# link -lib -machine:X86 -def:msvcprt.def -out:msvcprt.lib
#
/[ \t]*ordinal hint/,/^[ \t]*Summary/{
/^[ \t]\+[0-9]\+/{
s/^[ \t]\+[0-9]\+[ \t]\+[0-9A-Fa-f]\+[ \t]\+[0-9A-Fa-f]\+[ \t]\+\(.*\)/\1/p
}
}
---end exports.sed---
the above should be saved as exports.sed (and make sure it uses linux line endings...vi exports.sed and check that there are no ^M at the end of the lines. Shift-ZZ to get out of vi...).
now just put the generated msvcprt.lib and msvcprt.exp in your lib path: e.g. c:\program files\platform sdk\lib
(there's a similar trick to produce libmsvcrtp.a which gcc would need. i just tried wxIFM with msvc toolkit since it had .sln stuff already. google for the mingw exports.sed procedure it if needed)
5. the demo outputs to c:\. move c:\demo1.exe to wxIFM\samples\demo1 and launch it (copy wxmsw26_vc_cb.dll to the same directory or c:\windows\system32 if not already reachable somewhere in your path).
[attachment deleted by admin]