Hello all,
I'm currently trying to compile a library from my own, with actually only one function which call a system call (the rest of the files are not shown here):
DLLIMPORT void DumpNetConnection (void)
{
LPHANDLE net;
WnetOpenEnum(RESOURCE_CONNECTED,
RESOURCETYPE_ANY,
0,
NULL,
net);
return;
}
However, i have the follwing error at compile time :
dllwrap.exe --output-def libMyLib.def --implib libMyLib.a dllmain.o -L"C:/Dev-Cpp/lib" --no-export-all-symbols --add-stdcall-alias C:/Dev-Cpp/lib/libmpr.a -g3 -o MyLib.dll
dllmain.o(.text+0x2d): In function `DumpNetConnection':
D:/sources/MyLib/dllmain.c:13: undefined reference to `WnetOpenEnum'
What goes wrong ? I linked to the correct library in project parameter.
Thank's for any help.
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
|