libigl / libigl/libigl

Link error on Visual Studio 2022: can't open ilg::opengl_glfw_imgui.obj

Open
#2,370 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

compilation
Dominant language
C++
Stars
5.1k
Forks
1.2k
Avg merge
7h 33m
Merged PRs (30d)
8

Description

Describe your issue

I'm using MSVC on Visual Studio 2022 to compile a libigl program that uses the imgui plugin. I'm geting LINK : fatal error LNK1104: can't oper file 'igl::opengl_glfw_imgui.obj'.

I already set igl::opengl_glfw_imgui among the additional dependencies of the linker. I also set LIBIGL_WITH_OPENGL_GLFW_IMGUI among the preprocessor flags. I'm using VS only to compile: CMake is not involved.

Checklist
  • I have read the bug report page
  • CMake issue: I have tried with a fresh clone/empty build directory
Platform
  • Windows
  • macOS Intel
  • macOS Arm (e.g., M1, M2)
  • Linux

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Windows Visual Studio 2022 build using the libigl imgui plugin and the reported linker and preprocessor settings. Inspect how the plugin target and object file are expected to be provided when CMake is not used. The issue is done when the program links without LNK1104.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.