|
-
June 8th, 2004, 09:30 AM
#1
Problem in Linking!
Hi all,
Iam using IcmpParseReplies() Api, but iam getting
error LNK2001: unresolved external symbol _IcmpParseReplies
But i had already included the IcmpAPI.h header file and icmp.lib, Iphlpapi.lib files linked in SETTINGS-> LINK.
Iam also using IcmpSendEcho2() Api in the same code.
Iam not getting unresolved error while using IcmpSendEcho2().
How to solve this problem?
With Regards,
A.Ilamparithi.
Last edited by ilamparithi; June 8th, 2004 at 09:34 AM.
-
June 8th, 2004, 10:15 AM
#2
This function is only available in Windows 2000 or higher...thus, it might be covered with an '#ifdef...#endif' guard...
Thus, you need to set the WINVER macro accordingly...
Code:
#define WINVER 0x0500
-
June 8th, 2004, 11:54 PM
#3
re:
Originally posted by Andreas Masur
This function is only available in Windows 2000 or higher...thus, it might be covered with an '#ifdef...#endif' guard...
Thus, you need to set the WINVER macro accordingly...
Code:
#define WINVER 0x0500
Hi Andreas,
Iam working in a Windows 2000 Professional machine only.
Anyway i tried to set WINVER macro, still the error remains the same.
With Thanks,
A.Ilamparithi.
-
June 9th, 2004, 03:51 AM
#4
Well...I did not check it, thus, it might be the other macro instead...
Code:
#define _WIN32_WINNT 0x0500
-
June 9th, 2004, 04:00 AM
#5
re:
Originally posted by Andreas Masur
Well...I did not check it, thus, it might be the other macro instead...
Code:
#define _WIN32_WINNT 0x0500
Hi Andreas,
Still the same linking error occurs.
With Thanks,
A.Ilamparithi.
-
June 9th, 2004, 04:11 AM
#6
Well...then I am running out of ideas at the moment...I do not have the header available, thus, cannot look for the function...sorry about that....
-
June 9th, 2004, 04:14 AM
#7
RE:
Originally posted by Andreas Masur
Well...then I am running out of ideas at the moment...I do not have the header available, thus, cannot look for the function...sorry about that....
No probs!
Thanks Andreas!
Anyone know the solution??????
A.Ilamparithi.
-
June 9th, 2004, 04:23 AM
#8
Originally posted by Andreas Masur
Well...I did not check it, thus, it might be the other macro instead...
Code:
#define _WIN32_WINNT 0x0500
Well thats a linker error, and #ifdef are resolved at compile time. So defining WIN_VER wont matter. May be u need to upgrade your SDK. Its a failrly recent API supported on Win2K and above.
Regards,
Usman.
-
June 9th, 2004, 04:23 AM
#9
Ohhh....one more thing that comes to my mind...make sure that you have the latest files...in other words...does the function exists in your header file?
-
June 9th, 2004, 04:30 AM
#10
re:
Originally posted by usman999_1
Well thats a linker error, and #ifdef are resolved at compile time. So defining WIN_VER wont matter. May be u need to upgrade your SDK. Its a failrly recent API supported on Win2K and above.
Regards,
Usman.
Hi Usman,
Iam using Microsoft Platform Software Development Kit (SDK) April 2000 Edition and my system is Windows 2000 Professional 5.00.2195 with service pack 4.
Should i upgrade SDK??
With Thanks,
A.Ilamparithi.
-
June 9th, 2004, 04:42 AM
#11
re:
Originally posted by Andreas Masur
Ohhh....one more thing that comes to my mind...make sure that you have the latest files...in other words...does the function exists in your header file?
Hi Andreas,
I had already checked that.
That function is in the header file.
With Thanks,
A.Ilamparithi.
-
June 9th, 2004, 05:14 AM
#12
Re: re:
Originally posted by ilamparithi
Hi Usman,
Iam using Microsoft Platform Software Development Kit (SDK) April 2000 Edition and my system is Windows 2000 Professional 5.00.2195 with service pack 4.
Should i upgrade SDK??
With Thanks,
A.Ilamparithi.
I am not sure about the SDK version problem, But still April 2000 ver is more then 4 yrs old. I would say if possible try upgrading to a newer version first.
Regards,
Usman.
-
June 9th, 2004, 05:37 AM
#13
Re: Re: re:
Originally posted by usman999_1
I am not sure about the SDK version problem, But still April 2000 ver is more then 4 yrs old. I would say if possible try upgrading to a newer version first.
Regards,
Usman.
Hi Usman,
If that is the case, then the header file itself should not have the function definition know??
But, that is not the case here. In the header file, the function definition is there.
With Thanks,
A.Ilamparithi.
-
June 9th, 2004, 05:41 AM
#14
Originally posted by usman999_1
Well thats a linker error, and #ifdef are resolved at compile time. So defining WIN_VER wont matter.
Well...you are right about the technical aspect....however, many functions (usually functions not available for all Windows operating systems) are covered by such a guard to prevent using these functions on systems which do not support these...and in this case 'WINVER' etc. does matter pretty much...
-
June 9th, 2004, 05:42 AM
#15
Re: Re: Re: re:
Originally posted by ilamparithi
In the header file, the function definition is there.
Then check whether the function is exported through the lib file...using the dependency walker for example...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|