RE: [libsmi] Errors while accessing it in DLL

Hi,
I have cerated a lib from LibSmi say smiDump.lib. I'm making a call to smiDumpMain() inside this smiDump.lib from my code. Now I'm creating a DLL of my code.
Similalrly, when I used to create an EXE of my code, I never faced this problem. Here too I was making a call to smiDumpMain() inside this smiDump.lib
Thanks & regards, Amit Save
-----Original Message----- From: Salam, Abdul [mailto:Abdul.Salam@barconet.com] Sent: Tuesday, April 16, 2002 5:02 PM To: 'Save, Amit Prabhakar (Amit)' Subject: RE: [libsmi] Errors while accessing it in DLL
Of course You are linking the wrong dll.
-----Original Message----- From: Save, Amit Prabhakar (Amit) [mailto:save@agere.com] Sent: Tuesday, April 16, 2002 4:52 PM To: libsmi@ibr.cs.tu-bs.de Subject: [libsmi] Errors while accessing it in DLL
Hi,
I have created one lib instead of creating smidump.exe. The main fn. in smidump.c was renamed to smiDumpMain(). So that I could access it inside my code as a Library rather than to run it as a command.
I hope till this everything is fine?
When I try to use it in my code, at the time of linking I get errors as
Mibcompiler.obj : error LNK2001: unresolved external symbol __imp__smiDumpMain
When I was building an EXE of my code making a call to smiDumpMain(), everything used to work fine. I have ran the code also & it works fine. But if I build a DLL of my code making a call to smiDumpMain(), the above error comes up.
Regards, Amit Save
participants (1)
-
Save, Amit Prabhakar (Amit)