Link Error with SNN.lib

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Sun May 6 02:23:52 PDT 2007


Frank Benoit wrote:
> While compiling with DMD on windows, i got this:
> 
> OPTLINK (R) for Win32  Release 7.50B1
> Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved
> 
> C:\Programme\dmd\dm\bin\..\lib\SNN.lib(fputwc)  Offset 09AF4H Record
> Type 00C3
>  Error 1: Previous Definition Different : _putwc
> C:\Programme\dmd\dm\bin\..\lib\SNN.lib(fgetwc)  Offset 093A3H Record
> Type 00C3
>  Error 1: Previous Definition Different : _getwc
> --- errorlevel 2
> Command C:\Programme\dsss\bin\rebuild.exe returned with code -1, aborting.
> 
> What does it mean?

It means some functions in the standard C library are defined multiple 
times.

> What is SNN.lib?

The standard C library used by the Digital Mars compilers.

> How can I get it linking?

See if you define extern(C) functions "putwc" and "getwc" anywhere in 
your program, and rename them if so.


That's my guess, anyway.


More information about the Digitalmars-d-learn mailing list