|
刚开始学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[1] : "index.html";
const char *server_hostname =
argc > 2 ? argv[2] : "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
请问是什么原因啊? |
|