PDA

View Full Version : Weird error after using iniparser 2



Falcon4ever
January 2nd, 2003, 16:07
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.



--------------------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_ *)" ([email protected]@YAXPAU_dictionary_ @@@Z)
config.obj : error LNK2001: unresolved external symbol "struct _dictionary_ * __cdecl iniparser_load(char *)" ([email protected]@[email protected]@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)


dictionary * ini ;
ini = iniparser_load("input64.ini");
button[1] = iniparser_getstr(ini, "controller1:r-dpad");
iniparser_freedict(ini);


>_< maybe someone could help me ^_^

Doomulation
January 2nd, 2003, 20:22
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.

Falcon4ever
January 2nd, 2003, 20:33
Originally posted by 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.
stfu :P
i'm now using Linker's ini (copyright protected ;) )

linker
January 3rd, 2003, 14:08
Originally posted by (NL)Falcon4ever
stfu :P
i'm now using Linker's ini (copyright protected ;) )

lol ;p
its not mine, only the example file :)

Doomulation
January 3rd, 2003, 17:16
Originally posted by (NL)Falcon4ever
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