ACE和MFC
刚开始学ace运行了一下c++np卷一下的程序,编译不过,我用的是2003.net,请大家帮帮我
#include "ace/INET_Addr.h"
#include "ace/SOCK_Connector.h"
#include "ace/SOCK_Stream.h"
int main (int argc,char *argv[])
{
const char *pathname =
argc > 1 ? argv : "index.html";
const char *server_hostname =
argc > 2 ? argv : "ace.ece.uci.edu";
ACE_SOCK_Connector connector;
ACE_SOCK_Stream peer;
ACE_INET_Addr peer_addr;
if (peer_addr.set (80,server_hostname) == -1)
return 1;
else if (connector.connect (peer,peer_addr) == -1)
return 1;
}
编译时报错
D:\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxver_.h(139): fatal error C1189: #error :Please use the /MD switch for _AFXDLL builds
请问是什么原因啊? config.h中怎么设置的 是不是加入了mfc?
我这一切正常,把属性设为多线程dll调试
页:
[1]