hi Jeff,

One thing to do is Check which runtime library wxWidgets links to, i.e.

project properties/configuration properties/C/C++/Code Generation/Runtime Library

where it'll say either Multi-threaded Debug or Multi-threaded DLL debug or somesuch.

Do the same for audacity and change them to make sure they are the same(prob. change the wxWidgets to be the same as audacity, I cant remember)...then rebuild.

Should get rid of alot of the linker errors you are seeing.



2008/3/27, Jeff Hussmann <jeff.hussmann@gmail.com>:
Hello all -

I am attempting to compile Audacity 1.3.4 using MSVC++ 2008 Express Edition and having some problems with wxWidgets.

Does Audacity support wxWidgets 2.8.7? This version successfully builds for me, but the Audacity project file contains several references to wx .lib files with '26' in the file names that can't be found when I try to build Audacity - replacing '26' with '28' wherever it occurs fixes these errors but creates 226 new ones that look like

3>------ Build started: Project: Audacity, Configuration: Debug Win32 ------
3>Linking...
3>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _free already defined in LIBCMTD.lib(dbgfree.obj)
3>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _malloc already defined in LIBCMTD.lib(dbgmalloc.obj)
3>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _realloc already defined in LIBCMTD.lib(dbgrealloc.obj)

with many more lines of this, followed by

3>filedialogd.lib(FileDialogPrivate1.obj) : error LNK2001: unresolved external symbol "public: void __thiscall wxStringData::Free(void)" (?Free@wxStringData@@QAEXXZ)
3>filedialogd.lib(FileDialog.obj) : error LNK2001: unresolved external symbol "public: void __thiscall wxStringData::Free(void)" (?Free@wxStringData@@QAEXXZ)
3>ToolsToolBar1.obj : error LNK2001: unresolved external symbol "public: void __thiscall wxStringData::Free(void)" (?Free@wxStringData@@QAEXXZ)

for many more lines.

I have tried to go back and use wxWidgets-2.6.3 to avoid this mess entirely but it simply will not build for me. The error message I get is as follows -


1>------ Build started: Project: base, Configuration: Unicode Debug Win32 ------
1>Compiling...
1>dlmsw.cpp
1>..\..\src\msw\dlmsw.cpp(316) : error C2664: 'BOOL (HANDLE,PENUMLOADED_MODULES_CALLBACK,PVOID)' : cannot convert parameter 2 from 'overloaded-function' to 'PENUMLOADED_MODULES_CALLBACK'
1>        None of the functions with this name in scope match the target type

This same error also occurs in regular (non-Unicode) debug mode.

Any help with either of these issues would be greatly appreciated.

Thanks,
Jeff





-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Audacity-devel mailing list
Audacity-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/audacity-devel