Skip to content

FreeImage linking error OF 12.1 on Windows #8443

@prisonerjohn

Description

@prisonerjohn

Hey! I'm getting the following linking error both using the GH version and 0.12.1 version. This is using VS 2022 on Windows 11. Same issue in both Debug and Release.

Try any example, like imageSubsectionExample.

2>------ Build started: Project: imageSubsectionExample, Configuration: Debug x64 ------
2>main.cpp
2>ofApp.cpp
2>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification
2>   Creating library bin\imageSubsectionExample_debug.lib and object bin\imageSubsectionExample_debug.exp
2>FreeImageD.lib(IPTC.obj) : error LNK2019: unresolved external symbol __std_search_1 referenced in function "char const * __cdecl std::_Search_vectorized<char const ,char const >(char const * const,char const * const,char const * const,unsigned __int64)" (??$_Search_vectorized@$$CBD$$CBD@std@@YAPEBDQEBD00_K@Z)
2>bin\imageSubsectionExample_debug.exe : fatal error LNK1120: 1 unresolved externals
2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(1127,5): error MSB6006: "link.exe" exited with code 1120.
2>Done building project "imageSubsectionExample.vcxproj" -- FAILED.

FWIW If I swap in the FreeImage dir from 0.11 it works fine. That library only has a FreeImage.lib, no FreeImageD.lib.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions