Hi David, It's missing getopt.c from the port directory.
When you ran CMake, it should have found that getopt was missing from the system, and configured libport to include it. I don't know what would trigger this change--does any other part of your build define HAVE_GETOPT? I would suggest deleting the CMakeCache.txt file and reconfiguring LibTIFF again, and see if this is configured correctly again. Kind regards, Roger > -----Original Message----- > From: Tiff <[email protected]> On Behalf Of David C. Partridge > Sent: 18 September 2022 12:47 > To: [email protected] > Subject: [Tiff] Problem linking on Windows (Visual Studio 2019) > > I'm in the middle of a lot of changes to my code and something I did has > resulted in the following errors when linking the code: > > 1>libtiff.lib(mkg3states.obj) : error LNK2001: unresolved external > 1>symbol > getopt > 1>libtiff.lib(mkg3states.obj) : error LNK2001: unresolved external > 1>symbol > optind > 1>libtiff.lib(mkg3states.obj) : error LNK2001: unresolved external > 1>symbol > optarg > > I haven't touched the build for libtiff.lib. > > I'm sure this is going to be something pretty simple ... > > Any help appreciated. > > Cheers, David > > > _______________________________________________ > Tiff mailing list > [email protected] > https://lists.osgeo.org/mailman/listinfo/tiff _______________________________________________ Tiff mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/tiff
