Immediate-Mode-UI / Immediate-Mode-UI/Nuklear

Error C2440 'function': cannot convert from 'GLFWwindow *' to 'nk_glfw_init_state'

Open
#228 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
11.4k
Forks
686
Avg merge
4d 1h
Merged PRs (30d)
3

Description

I am trying to build the demo in visual studio 2019 and I am getting the following error in main.c at line 107:
ctx = nk_glfw3_init(&glfw, win, NK_GLFW3_INSTALL_CALLBACKS);

Contributor guide

Open the contributing guide

Research direction

Start at main.c line 107 and inspect the declaration and use of nk_glfw3_init, along with the types of glfw, win, and ctx in the Visual Studio 2019 build. Reproduce the C2440 error, then verify that the demo builds without the reported type-conversion diagnostic.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.