Pelles C > General discussions
polink failing to resolve symbol in library of my creation
(1/1)
PabloMack:
I have a library that I created and the IDE is linking to it fine. But the command line
polink is not finding it. I placed the /LIBPATH:"E:\Pelles\lib" in a batch file but it is
still not finding it:
POLINK: error: Unresolved external symbol 'blk_LrgR' - referenced from 'RawDisk.obj'.
POLINK: fatal error: 1 unresolved external(s).
I don't think I have successfully linked one of my libraries from the command line yet.
Does POLINK scan all the libraries in the Path or do I need to link the particular
library explicitly? If it just scans all libraries in the path, how would it know what order
to search them?
Thanks.
TimoVJL:
As Pelle told before, add library to linker options or use in souce file
--- Code: ---#pragma comment(lib, "xxx.lib")
--- End code ---
Navigation
[0] Message Index
Go to full version