Also, how would I change my program to use the static library? I have no idea what it uses right now, nor how I can check...
Note, the four steps below can be done in the IDE in the search directory settings area.
1. Backup your project cbp file.
2. Open the project cbp file in a text editor
3. Look for gcc_dll in the text editor.
If found, change to gcc_lib
4. save changes
If the above does not work, I need to know how you created the project. Wizard? And, Wizard options?
Or you can post the cbp file if it is small enough.
Mainly just need these areas of cbp file Compiler and Linker
<Compiler>
<Add option="-Wall" />
<Add option="-g" />
<Add option="-pipe" />
<Add option="-mthreads" />
<Add option="-fmessage-length=0" />
<Add option="-fexceptions" />
<Add option="-Winvalid-pch" />
<Add option="-DHAVE_W32API_H" />
<Add option="-D__WXMSW__" />
<Add option="-DWXUSINGDLL" />
<Add option="-DcbDEBUG" />
<Add option="-DCB_PRECOMP" />
<Add option="-DWX_PRECOMP" />
<Add option="-DwxUSE_UNICODE" />
<Add directory="$(#WX.include)" />
<Add directory="$(#WX.lib)\gcc_dll$(WX_CFG)\msw$(WX_SUFFIX)" />
<Add directory="include\wxscintilla\include" />
<Add directory="include\tinyxml" />
</Compiler>
<Linker>
<Add library="wxmsw28$(WX_SUFFIX)" />
<Add directory="base\tinyxml" />
<Add directory="$(#WX.lib)\gcc_dll$(WX_CFG)" />
</Linker>
Tim S
I did those four steps and then I couldn't even run the program from the compiler. It said it can't find a dll file. Also, I found four occurences in my cbp file of "gcc_dll", and I replaced them all. Do I only need to replace some?
I'm posting the fields you asked (before changing anything).
<Linker>
<Add option="-s" />
<Add library="C:\wxWidgets-2.8.7\lib\gcc_dll\libwxmsw28u.a" />
<Add directory="C:\wxWidgets-2.8.7\lib\gcc_dll" />
</Linker>
<Compiler>
<Add option="-Wall" />
<Add option="-pipe" />
<Add option="-mthreads" />
<Add option='[[if (PLATFORM == PLATFORM_MSW && (GetCompilerFactory().GetCompilerVersionString(_T("gcc")) >= _T("4.0.0"))) print(_T("-Wno-attributes"));]]' />
<Add option="-Winvalid-pch" />
<Add option="-include wx_pch.h" />
<Add option="-D__GNUWIN32__" />
<Add option="-D__WXMSW__" />
<Add option="-DWXUSINGDLL" />
<Add option="-DwxUSE_UNICODE" />
<Add option="-DWX_PRECOMP" />
<Add directory="C:\wxWidgets-2.8.7\include" />
<Add directory="C:\wxWidgets-2.8.7\contrib\include" />
</Compiler>
Thanks for your help!