What's new

Weird error after using iniparser 2

Falcon4ever

Plugin coder / Betatester
Hi I'm currently working on a input plugin called plugin64.
I want to read the buttons from an ini file.
Therefore i use iniparser 2

but after compiling it, i get this error message.

Code:
--------------------Configuration: Basic Keyboard Plugin - Win32 Release--------------------
Compiling...
config.cpp
Linking...
   Creating library Release/input64.lib and object Release/input64.exp
config.obj : error LNK2001: unresolved external symbol "void __cdecl iniparser_freedict(struct _dictionary_ *)" (?iniparser_freedict@@YAXPAU_dictionary_@@@Z)
config.obj : error LNK2001: unresolved external symbol "struct _dictionary_ * __cdecl iniparser_load(char *)" (?iniparser_load@@YAPAU_dictionary_@@PAD@Z)
Release/input64.dll : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

input64.dll - 3 error(s), 0 warning(s)

i got iniparser from:
http://ndevilla.free.fr/iniparser/

I'm using MS VC++ 6.0 Standard edition.

piece of code (but that can't be wrong)
Code:
dictionary * ini ;
ini = iniparser_load("input64.ini");
button[1] = iniparser_getstr(ini, "controller1:r-dpad");
iniparser_freedict(ini);

>_< maybe someone could help me ^_^
 

Doomulation

?????????????????????????
Ok, first off, have you included the libraries needed?
When using dlls n' stuff, you need libraries (.lib) so that the linker can find the functions/variables that it's looking for.

You can set them under Project-->Settings-->Link and under "object/library modules".

Otherwise, you could have spelled names wrong, causing this error.
 
OP
Falcon4ever

Falcon4ever

Plugin coder / Betatester
Doomulation said:
Ok, first off, have you included the libraries needed?
When using dlls n' stuff, you need libraries (.lib) so that the linker can find the functions/variables that it's looking for.

You can set them under Project-->Settings-->Link and under "object/library modules".

Otherwise, you could have spelled names wrong, causing this error.
stfu :p
i'm now using Linker's ini (copyright protected ;) )
 

Doomulation

?????????????????????????
(NL)Falcon4ever said:
stfu :p
i'm now using Linker's ini (copyright protected ;) )
Well, lol, i was gonna ask you if you still needed help, but just at that, you quit irc lol :p
 

Top