lib file --> dll

  • Thread starter Thread starter RF
  • Start date Start date
R

RF

Hi All,

I have a project in vc with an output in *.lib. When I compile in lib
format, everything works fine, when I want to convert to dll, but it gives
me an error on "LNK2019" and "LNK2001".

Can anyone help?

Thanks,

RF
 
This means that there are some symbols (variable, function, ...) that your
code refers to, that you have not defined, hence the linker fails to find it
and reports an error. The line following the LNK2001 error should give you
the name of the variable/function that the elinker is not finding.

While creating the lib, only the sources are compiled and combined to create
a single lib and no linking that resolves external symbol names are done. So
creating a lib does not result in a error.

I assume that you had a lib that you linked with some other source and now
you want to convert the lib to a dll. If this is so then locate the
variables/functions in the source that the lib refered to. You would need to
move them to the dll code base and then try building the dll.
 
Back
Top