首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

请教一个windows下SDK函数用在msys下的有关问题

2012-02-16 
请问一个windows下SDK函数用在msys下的问题创建拨号连接的函数:RasCreatePhonebookEntry是windows下SDK函

请问一个windows下SDK函数用在msys下的问题
创建拨号连接的函数:RasCreatePhonebookEntry是windows下SDK函数,用来创建拨号连接(最下面有MSDN中此函数的介绍),此函数在ras.h中声明的,需要包含Rasapi32.lib库;
在vc环境下调用此函数只需要在visual   studio中的   project/setting/link中加上此库、同时在调用此函数的文件中include   “ras.h”就行了;
但是在msys中include   “ras.h”、然后把Rasapi32.lib拷到程序开发目录、在makefile中添加对此lib的支持,但是在编译(make)时,总是提示找不到函数:
main.c:195:   undefined   reference   to   `RasCreatePhonebookEntryA@
请高手给指点,谢谢了!!!!
(顺便说一声,RasCreatePhonebookEntryA和RasCreatePhonebookEntry是一样的,在ras.h中define了,二者等同。)


==============
MSDN中RasCreatePhonebookEntry的介绍:
Remarks:
Windows   95/98/Me:   RasCreatePhonebookEntryW   is   supported   by   the   Microsoft   Layer   for   Unicode.   To   use   this,   you   must   add   certain   files   to   your   application,   as   outlined   in   Microsoft   Layer   for   Unicode   on   Windows   95/98/Me   Systems.

Requirements   :
    Windows   NT/2000/XP:   Included   in   Windows   NT   3.1   and   later.
    Windows   95/98/Me:   Included   in   Windows   95   and   later.
    Header:   Declared   in   Ras.h.
    Library:   Use   Rasapi32.lib.
    Unicode:   Implemented   as   Unicode   and   ANSI   versions   on   Windows   NT/2000/XP.   Also   supported   by   Microsoft   Layer   for   Unicode.


[解决办法]
可能是 名字重整 的问题吧 ...

热点排行