« Return to Thread: __vfscanf with Visual Studio in Fox 1.6.36

Re: __vfscanf with Visual Studio in Fox 1.6.36

by Jeroen van der Zijp :: Rate this Message:

Reply to Author | View in Thread

On Monday 29 June 2009, Emmett McQuinn wrote:
> I have errors linking an application that uses the Fox 1.6.36 library with Visual Studio 9.0. Visual Studio provides the following errors:
>
> LIBCMTD.lib(fscanf.obj) : error LNK2005: _vfscanf already defined in foxd-1.6.lib(vsscanf.obj)
> ..\bin\win\DeskVOX.exe : fatal error LNK1169: one or more multiply defined symbols found
>
> I tried changing the HAVE_VFSCANF flag but this fails in compilation, and I've also selectively disabled the vfscanf in the fox library and this does not seem to work either. I have double checked that VC++9 was using the correct library directorys for FOX and LIBCMTD.
>
> It looked like this was fixed with 1.6.21, any idea what might be going on, or if I can somehow disable linking vsscanf.obj?

Passing -DHAVE_VSSCANF is supposed to work; I believe it *does* work for Borland C++ on
Windows so I don't know why it didn't for VC++9.

Did you recompile *all* files with this flag?  The vsscanf() is declared in several
places...


        - Jeroen




--
+----------------------------------------------------------------------------+
| Copyright (C) 00:30 06/30/2009 Jeroen van der Zijp.   All Rights Reserved. |
+----------------------------------------------------------------------------+

------------------------------------------------------------------------------
_______________________________________________
Foxgui-users mailing list
Foxgui-users@...
https://lists.sourceforge.net/lists/listinfo/foxgui-users

 « Return to Thread: __vfscanf with Visual Studio in Fox 1.6.36