[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: API VC++ examples without getting tortise or rapidsvn etc.

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2005-05-10 10:13:19 CEST

Matt Daniel wrote:
> MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strncmp already defined in
> LIBCMTD.lib(strncmp.obj) MSVCRT.lib(MSVCRT.dll) : error LNK2005: __assert
> already defined in LIBCMTD.lib(assert.obj) Searching C:\Program

You must not link to several runtime libraries at once. libcmtd.lib is the
static, multi-threaded, debug runtime, msvcrt.dll is the dynamic,
multithreaded, release runtime (note: all dynamic libs are multithreaded).
Select the proper runtime in your project settings (hard to tell where
exactly without knowing the version of the IDE you are using...).

> LNK2001: unresolved external symbol _svn_path_get_longest_ancestor
> LNK2001: unresolved external symbol _svn_wc_status_set_repos_locks

Those are Subversion's symbols.

> LNK2001: unresolved external symbol __imp__apr_pool_destroy@4

This is not directly part of Subversion but rather part of the underlying APR

Both unresolved symbol classes of errors should be resolvable by linking with
the right .libs, either put them into the linker settings or use #pragma

If you are looking for example code, you could take RSVN, TortoiseSVN or other
cross-platform or MS Windows only projects that are built on Subversion.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 10 10:14:08 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.