Configuration and commissioning of C ++ network development kits ACE environment

zhaozj2021-02-08  221

ACE is a very useful open source C network programming development package, which uses it more conducive to code to have a robustness, portability, relatively simple than direct use of API. It is estimated that when everyone just contacted the ACE, they had a certain difficulty. I might gave up in halfway. This is the summary of I learn ACE two days. It is basically unwritten, but I want to study Ace, you will definitely understand the meaning below.

My system environment is: Win2k Pro (SP4), VC6.0 (SP5)

After a while, I want to open the Forum on my homepage, and set up the VC area. I welcome everyone to exchange http://www.liufei.com

First, ACE official homepage: http://www.cs.wustl.edu/~schmidt/ace.html Download address: http://deuce.doc.wustl.edu/download.html I downloaded the Latest Beta Kit Ace.zip (the compressed package in Latest Release seems to have a problem, I have WinRAR3.30 to decompress the error)

Second, decompress after placing D-D: / ace_wrappers

Third, in the D: / ACE_WRAPPERS / ACE directory new file config.h Add to a line #include "ace / config-win32.h" four, compile: open D: /Ace_wrappers/ace/ace.dsw with VC6.0 Display ACE DLL CLASSES ACE LIB CLASSES or 1, select "Compile", "Place", "Place", Select "Compile", "Rebuild" (or any, such as Ace DLL - Win32 MFC Debug) This process may last for half an hour to not wait for an hour or 2. From the menu, select "Compile", "Batch Build", select the project you need this process may last for two to four hours. LIB file Located in D: / ACE_WRAPPERS / ACE / Under, the generated .dll file is in D: / ACE_WRAPPERS / BIN /, the ACE_STATIC.DSW compile ACES.LIB ACEsD.LIB ACE_RMCasts.lib ace_rmcastsd.lib TMCasts.lib Tmcastsd.lib

Naming of DLL and LIB files generated by ACE: (D = Debug, s = static) debug - aced.lib, debug static - accept.lib, release - ace.lib, release static - aces.lib 5, sample The compilation of the example program is opened with VC D: /Ace_wrappers/tests/tests.dsw "Compile", "Batch Build", self-written program engineering: ACE programmer tutorial. Sample program in PDF: URL: http://www.cs.wustl.edu/~schmidt/ace_wrappers/docs/tutorials/guide-tutorials.html Copy the original code on the page to a new file and name Server.cpp to open with VC, compile, Rebuild all, pop-up dialog, "This Build Command Require ...", click "Yes" The following error will appear If there is "Cannot Open include file: 'ace / suck_acceptor.h': no ​​such file or directory" project - setting -C / C : Preprocessor, attached to the path: D: / ace_wrappers If there is "You Must Link Against Multi-Threaded Libraries when Using Ace (Check Your Project Settings" project - Set -C / C : Code Generation - Use Run- Time Library: Debug Multithreaded DLL If there is "Error C2065: 'ace_error': undeclared Identifier" error C2065: 'ace_debug': undeclared identifier #include "ace / log_msg.h"

转载请注明原文地址:https://www.9cbs.com/read-3129.html

New Post(0)