LNK2019 ERROR

asked 2018-08-24 09:52:59 +0000

Dhanu Sh Alz gravatar image

updated 2018-08-24 10:05:40 +0000

grahamb gravatar image

---plugin-abc.h

extern pabc();

---plugin-abc.c

pabc()
{
............
}

---plugin-xyz.c

include "plugin-abc.h"
pzyx()
{
............
pabc();
............
}

I'm getting a LINK error:

Error 8 error LNK2019: unresolved external symbol pabc referenced in function pxyz--------packet-xyz.obj    
Error 9 error LNK1120: 1 unresolved externals-------------------------------------------------------xyz.dll

how can I resolve this issue?

edit retag flag offensive close merge delete

Comments

So by "plugin-abc.c" and "plugin-xyz.c" I assume you have two independent plugins, compiled into two separate loadable modules (DLLs on Windows). Is that assumption correct?

Guy Harris gravatar imageGuy Harris ( 2018-08-24 17:21:55 +0000 )edit

@Guy Harris Yes, your assumption is correct!

Dhanu Sh Alz gravatar imageDhanu Sh Alz ( 2018-08-24 17:25:07 +0000 )edit