Linker Errors
-
I'm trying to interoperate with an external library (the C interface for K -- mentioned in the lounge a short while ago -- www.kx.com[^]) I've added the include statements, and added the .lib to the list of files to link with, however, I still get: KdbTest1 error LNK2001: unresolved external symbol "int __cdecl cd(struct k0 *)" (?cd@@$$FYAHPAUk0@@@Z) KdbTest1 error LNK2001: unresolved external symbol "struct k0 * __cdecl gi(int)" (?gi@@$$FYAPAUk0@@H@Z) KdbTest1 error LNK2001: unresolved external symbol "struct k0 * __cdecl gnk(int,...)" (?gnk@@$$FYAPAUk0@@HZZ) KdbTest1 error LNK2001: unresolved external symbol "struct k0 * __cdecl ksk(char *,struct k0 *)" (?ksk@@$$FYAPAUk0@@PADPAU1@@Z) KdbTest1 fatal error LNK1120: 4 unresolved externals I'm trying to build a small Managed C++ console application to try interoperability with Managed C++. All the files can be obtained from http://www.kx.com/a/k/connect/c/[^] Any suggestions would be very much welcomed. -- Paul "If you can keep your head when all around you have lost theirs, then you probably haven't understood the seriousness of the situation." - David Brent, from "The Office" MS Messenger: paul@oobaloo.co.uk Sonork: 100.22446
-
I'm trying to interoperate with an external library (the C interface for K -- mentioned in the lounge a short while ago -- www.kx.com[^]) I've added the include statements, and added the .lib to the list of files to link with, however, I still get: KdbTest1 error LNK2001: unresolved external symbol "int __cdecl cd(struct k0 *)" (?cd@@$$FYAHPAUk0@@@Z) KdbTest1 error LNK2001: unresolved external symbol "struct k0 * __cdecl gi(int)" (?gi@@$$FYAPAUk0@@H@Z) KdbTest1 error LNK2001: unresolved external symbol "struct k0 * __cdecl gnk(int,...)" (?gnk@@$$FYAPAUk0@@HZZ) KdbTest1 error LNK2001: unresolved external symbol "struct k0 * __cdecl ksk(char *,struct k0 *)" (?ksk@@$$FYAPAUk0@@PADPAU1@@Z) KdbTest1 fatal error LNK1120: 4 unresolved externals I'm trying to build a small Managed C++ console application to try interoperability with Managed C++. All the files can be obtained from http://www.kx.com/a/k/connect/c/[^] Any suggestions would be very much welcomed. -- Paul "If you can keep your head when all around you have lost theirs, then you probably haven't understood the seriousness of the situation." - David Brent, from "The Office" MS Messenger: paul@oobaloo.co.uk Sonork: 100.22446
Paul Ingles wrote: Any suggestions would be very much welcomed. Ok, after a little looking I came across this[^] knowledge base article, however you may look into this[^] KB article as well, hope this points you in the right direction. :)
Nick Parker
Not everything that can be counted counts, and not everything that counts can be counted. - Albert Einstein