[Dev-C++] IP helper API linker error
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Scott B. <doo...@ya...> - 2005-04-04 02:09:03
|
Hello, I'm trying to compile an IP Helper API example program from the MSDN website http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iphlp/iphlp/notifyaddrchange.asp. However, although I have included libiphlpapi.a in the project options, I get a linker error : 'undefined reference to 'NotifyAddrChange@8'' I am using Dev C++ version 4.9.9.2. The compile log message is : Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\MyFiles\NetstatLog\NetstatEventDetected\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\MyFiles\NetstatLog\NetstatEventDetected\Makefile.win" all g++.exe -D__DEBUG__ main.o -o "NetworkEventDetected.exe" -L"lib" ../../../lib/libwsock32.a ../../../lib/libws2_32.a ../../../lib/libiphlpapi.a -g3 main.o(.text+0x148): In function `main': C:/Dev-Cpp/MyFiles/NetstatLog/NetstatEventDetected/main.cpp:17: undefined reference to `NotifyAddrChange@8' collect2: ld returned 1 exit status make.exe: *** [NetworkEventDetected.exe] Error 1 Execution terminated Does anybody know how I could fix this, please ? Scott Brown --------------------------------- Find local movie times and trailers on Yahoo! Movies. |