[Solved]error:create a lib from a dll.

Just starting out? Need help? Post your questions and find answers here.
dcr3
Enthusiast
Enthusiast
Posts: 165
Joined: Fri Aug 04, 2017 11:03 pm

[Solved]error:create a lib from a dll.

Post by dcr3 »

Hi. I am trying to create a lib from a dll.

But when I use the lib I get the following error.

Code: Select all

POLINK:error:Unsolved external symbol '_MyLib'.
POLINK:fatal error: 1 unresolved external(s).
Has anyone come across it and how did you solved it.
Last edited by dcr3 on Tue Sep 07, 2021 5:26 pm, edited 1 time in total.
dcr3
Enthusiast
Enthusiast
Posts: 165
Joined: Fri Aug 04, 2017 11:03 pm

Re: [Solved]error:create a lib from a dll.

Post by dcr3 »

Sorted. :mrgreen:

From PellesC:

Code: Select all

POLIB MyDll.dll /MACHINE:X86 /OUT:MyDll.lib

Code: Select all

POLIB MyDll.dll /MACHINE:X64 /OUT:MyDll.lib
Post Reply