Skip to content

libvips C++ API Linkage Failures (LNK2001 Unresolved External Symbols) #4611

Answered by jcupitt
yunxingluoyun asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @yunxingluoyun,

You can't mix C++ compilers (or sometimes even different versions of the same C++ compiler!) in a single project. We build the Windows libvips binaries with clang++.

You have some choices:

  1. Also use clang++ for your whole project.
  2. Copy this source code tree out of libvips and into your application: https://github.com/libvips/libvips/tree/master/cplusplus then build with MSVC.
  3. Use the C API.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yunxingluoyun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #4608 on July 16, 2025 04:55.