NO

Author Topic: polink failing to resolve symbol in library of my creation  (Read 1819 times)

PabloMack

  • Guest
polink failing to resolve symbol in library of my creation
« on: March 22, 2020, 02:31:32 AM »
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.

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: polink failing to resolve symbol in library of my creation
« Reply #1 on: March 26, 2020, 07:58:02 AM »
As Pelle told before, add library to linker options or use in souce file
Code: [Select]
#pragma comment(lib, "xxx.lib")
May the source be with you