Original Post
Okay, so I have a dll thats an api i created...
i want to create another dll that wraps this api. So i do this, and the calls i make to the other dll i get linker errors:
Linking...
Creating library Debug/Abfa4NSFF.lib and object Debug/Abfa4NSFF.exp
ABFA4NSff.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) struct ABFAParameters * __cdecl GetDefaultABFAInfo(int,int)" (__imp_?GetDefaultABFAInfo@@YAPAUABFAParameters@@HH@Z)
ABFA4NSff.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl LoadABFADefaults(char *,char *)" (__imp_?LoadABFADefaults@@YAXPAD0@Z)
ABFA4NSff.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl ABFAInitialize(void)" (__imp_?ABFAInitialize@@YAXXZ)
ABFA4NSff.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl ABFATerminate(void)" (__imp_?ABFATerminate@@YAXXZ)
ABFA4NSff.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl ABFAEngine1(struct ABFAParameters *)" (__imp_?ABFAEngine1@@YAXPAUABFAParameters@@@Z)
Debug/Abfa4NSFF.dll : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.
Do i make another test project, that ISNT a dll, and that makes the same calls to the dll i want to wrap, and it compiles fine.
I assume im missing something small and stupid but its been so long since ive trudged in the trenchs of dll''s i cannot remember what it is.
My project settings is set to link with the .lib for the dll that im trying to wrap. and im including the .h file for the function prototypes of the dll im trying to wrap. So to me everything is as it is supposed ot but its not working.
What else do i need?
I am using the __declspec(dllexport) in both dll''s
any ideas would be great, thanks
-Shane