<div class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: 14.4pt"><SPAN style="FONT-SIZE: 10pt; COLOR: #333333; FONT-FAMILY: Arial">ACE VERSION: 5.6.1</SPAN></div>  <div class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: 14.4pt"><SPAN style="FONT-SIZE: 10pt; COLOR: #333333; FONT-FAMILY: Arial">HOST MACHINE and OPERATING SYSTEM:&nbsp; Intel PC,&nbsp;Linux enterprise 5.0</SPAN></div>  <div class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: 14.4pt"><SPAN style="FONT-SIZE: 10pt; COLOR: #333333; FONT-FAMILY: Arial"></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #333333; FONT-FAMILY: Arial">TARGET MACHINE and OPERATING SYSTEM: Same<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></div>  <div><SPAN style="FONT-SIZE: 10pt; COLOR: #333333; FONT-FAMILY: Arial; mso-fareast-font-family: SimSun; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">COMPILER NAME AND VERSION (AND PATCHLEVEL):<BR>G++<BR
 style="mso-special-character: line-break"></SPAN></div>  <div><SPAN style="FONT-SIZE: 10pt; COLOR: #333333; FONT-FAMILY: Arial; mso-fareast-font-family: SimSun; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">I am writing a application by using ACE lib.<BR style="mso-special-character: line-break"></SPAN>I wrote a log application by using runtime configuration with the ACE logging strategy,</div>  <div>the input configuration&nbsp;file is like the following.</div>  <div>&nbsp;</div>  <div>dynamic Logger Service_Object * ACE:_make_ACE_Logging_Strategy() "-s log.out -f STDERR|OSTREAM - INFO"</div>  <div>&nbsp;</div>  <div>in the application file , I use the code segment:</div>  <div>if (ACE_Service_Config::open(argc,</div> 
 <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0,</div>  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1) &lt; 0)</div>  <div>{</div>  <div>}</div>  <div>by this way, if I compile and link ACE to shared lib, it works well, I can create log.out and all message output to this log file.</div>  <div>&nbsp;</div>  <div>however, if I compile and link ACE to static lib, this way does not work, the log.out can not create. the error message is like the following:</div>  <div>1 ACE(28532|2142880) LN::open_dll_ failed to open ACE. error:
 check log for detail.</div>  <div>2. ACE(28532|2142880) unable to create service object for logger.</div>  <div>&nbsp;</div>  <div>I guess it is because no shared lib so I change the configuration file to the following.</div>  <div>&nbsp;</div>  <div>static Logger "-s log.out -f STDERR|OSTREAM -p INFO"</div>  <div>&nbsp;</div>  <div>then recompile and link my application which are using static ACE lib</div>  <div>the log.out still can not be created. </div>  <div>error mesasge is :</div>  <div>SG::initialize-service Logger was not located.</div>  <div>even I change the fourth parameter of open to 0.</div>  <div>&nbsp;</div>  <div>could someboby tell me some solutions of how to solve this problem. that is by using static ACE lib to create log application.</div>  <div>thanks in advance.</div>  <div>&nbsp;</div>  <div>Richard</div>  <div>&nbsp;</div><p>&#32;

      <hr size=1>Never miss a thing.  <a href="http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs"> Make Yahoo your homepage.</a>