Page 1 of 1
Link .lib together with dll
Posted: Mon Jun 20, 2011 8:08 pm
by mrniceguy1971
Would it be possible to link a .lib or .obj file in a Purebasic DLL which call functions from the .lib or .obj?
Re: Link .lib together with dll
Posted: Mon Jun 20, 2011 8:13 pm
by ts-soft
Re: Link .lib together with dll
Posted: Mon Jun 20, 2011 8:19 pm
by mrniceguy1971
Thanks. Will take a look at this.
Re: Link .lib together with dll
Posted: Mon Jun 20, 2011 9:48 pm
by mrniceguy1971
Already imported a lib but now I get the following error.
POLink: error: Unresolved external symbol '_imp_ConvertSidToStringSidW'.
POLink: fatal error: 1 unresolved external(s).
Any hints/tip how to solve this are appreciated

Re: Link .lib together with dll
Posted: Tue Jun 21, 2011 7:33 am
by ts-soft
You have to import advapi32.lib, but not the one from PureBasic, is to old.
Re: Link .lib together with dll
Posted: Tue Jun 21, 2011 2:03 pm
by mrniceguy1971
Thanks again. This solved the problem.