vurtun / nuklear

A single-header ANSI C gui library
13.68k stars 1.11k forks source link

Constant external errors #892

Open Kontrol-69 opened 5 years ago

Kontrol-69 commented 5 years ago

1>Drawing.obj : error LNK2019: unresolved external symbol "struct nk_context __cdecl nk_d3d9_init(struct IDirect3DDevice9 ,int,int)" (?nk_d3d9_init@@YAPAUnk_context@@PAUIDirect3DDevice9@@HH@Z) referenced in function "void __cdecl Draw::setupNuklear(struct IDirect3DDevice9 *)" (?setupNuklear@Draw@@YAXPAUIDirect3DDevice9@@@Z)

I keep getting this error. Any solutions?

dumblob commented 5 years ago

Please post your source code (snippet) to see what are you doing. Interesting will be: your makefile (or gcc/clang/... options), then all your includes in all your header files (except includes in nuklear.h) and finally the lines in your app source code producing these warnings. On my first guess I would say, that there is some issue with includes :wink: (see Readme carefully to see what works and what is forbidden).