History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XCL-122
Type: Bug Bug
Status: Open Open
Priority: Trivial Trivial
Assignee: Unassigned
Reporter: Alexander Chemeris
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
sipXtapi: sipXcallLib

Link errors when building sipXtapi with Speex support

Created: 2007-01-05 14:45   Updated: 2007-03-09 18:46
Component/s: sipXcallLib
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Zip Archive libspeex-win32-v1.2beta1-VS2003-dynamic-SSE2.zip (105 kb)
2. Zip Archive libspeex-win32-v1.2beta1-VS2003-static-debug.zip (185 kb)
3. Zip Archive libspeex-win32-v1.2beta1-VS2003-static-SSE.zip (165 kb)
4. Zip Archive libspeex-win32-v1.2beta1-VS2003-static-SSE2.zip (165 kb)
5. Zip Archive libspeex-win32-v1.2beta1-VS2003-static.zip (164 kb)
6. Zip Archive libspeex-win32-v1.2beta1-VS6-static.zip (103 kb)
7. File libspeex.vcproj (13 kb)

Environment: sipXtapi-media-update branch under Windows


 Description  « Hide
You may encounter following link errors when building sipXtapi:

\sipXtapi-media-update\Speex\lib\libspeex.lib : fatal error LNK1262: link failed due to mismatched versions of 'C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\c2.dll' and LINK.EXE

or following :

Linking...
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
libspeex.lib(bits.obj) : warning LNK4218: non-native module found; restarting link with /LTCG
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
MSVCRT.lib(MSVCR71.dll) : error LNK2005: __strdup already defined in LIBCMTD.lib(strdup.obj)

This is NOT sipXtapi errors. Please, do not send reports to sipXtapi mailing list, report this to Speex-dev list.
This errors come from the point that prebuilt Speex-1.2beta use Visual Studio 2005 static multi-threaded runtime, incompatible with Visual Studio 2003 in general and DLL multi-threaded runtime in particular.

You may use attached vcproj file to build Speex yourself or just use attached prbuilt versions.

 All   Comments   Work Log   Change History      Sort Order:
Alexander Chemeris - 2007-01-11 17:28
Explanation of different runtime libraries in Microsoft Knowledge Base:

http://support.microsoft.com/kb/154753

Alexander Chemeris - 2007-01-17 16:46
Static libspeex library for Visual Studio 6.