[ace-users] where is "lseek" and "strcpy"?

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Sun Sep 9 11:20:55 CDT 2007


Hi,

>    I am a freshman in ACE,  when I compiled  the "spawn"  int the
>ch10  of  APG  with ACE + TAO 5.6 and VS2003. the compiler told me "
>'error C2039: "lseek/strcpy " :not a member of 'ACE_OS' ".
>     so i searched the source code in the file of '"ace".

You aren't including the right ACE header files.  You need to #include

ACE_ROOT/ace/OS_NS_unistd.h
ACE_ROOT/ace/OS_NS_string.h

BTW, all the examples from APG are available in

ACE_ROOT/examples/APG

so it should be straightforward to compile/run this example.

>Unfortunately I couldn.t find anything about
>the two functions's definition!

Check out

ACE_ROOT/ace/OS_NS_unistd.inl
ACE_ROOT/ace/OS_NS_string.inl

Take care,

     Doug
-- 
Dr. Douglas C. Schmidt                       Professor and Associate Chair
Electrical Engineering and Computer Science  TEL: (615) 343-8197
Vanderbilt University                        WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203                          NET: d.schmidt at vanderbilt.edu



More information about the Ace-users mailing list