[antlr-interest] Unresolved externals building C executable
Jim Idle
jimi at temporal-wave.com
Fri Jul 11 09:59:20 PDT 2008
On Fri, 2008-07-11 at 22:08 +1200, Gavin Lambert wrote:
> At 21:37 11/07/2008, Artemus Ward wrote:
> >If I don't use /NODEFAULTLIB:MSVCRT then I get these errors
> >instead:
> [...]
> >MSVCRT.lib(MSVCR90.dll) : error LNK2005: _free already defined
> in
> >LIBCMT.lib(free.obj)
> >MSVCRT.lib(MSVCR90.dll) : error LNK2005: _calloc already defined
>
> >in LIBCMT.lib(calloc.obj)
>
> Which means that you've probably set the ANTLR library to use the
> CRT DLL and the application to use the CRT statically. They must
> agree with each other exactly if you're going to statically link
> them.
>
There really is not any reason to use the static versions of the
libraries - you should abandon your current MS project and create a new
one. This time don't change the default settings until you know what
they all mean.
Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080711/443d008c/attachment.html
More information about the antlr-interest
mailing list