<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.14.1">
</HEAD>
<BODY>
Hi all,<BR>
<BR>
thanks for your help, specially Tom. I've finally built and installed ACE/TAO for vxworks.<BR>
<BR>
Kind Regards.<BR>
<BR>
On Mon, 2007-06-18 at 08:29 -0700, Thomas Lockhart wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">&gt; I've downloaded the correct sources and stated building ACE and TAO but </FONT>
<FONT COLOR="#000000">&gt; now it fails when compiling with this error:</FONT>
<FONT COLOR="#000000">...</FONT>
<FONT COLOR="#000000">&gt; g++    -I/home/jr-simoes/Applications/ACE_wrappers -DACE_NDEBUG </FONT>
<FONT COLOR="#000000">&gt; -DACE_USE_RCSID=0 -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I.. </FONT>
<FONT COLOR="#000000">&gt; -DACE_BUILD_DLL  -c  -o .shobj/Dirent.o Dirent.cpp</FONT>
<FONT COLOR="#000000">&gt; /usr/include/dirent.h: In function &#8216;int ACE_OS::readdir_r(ACE_DIR*, </FONT>
<FONT COLOR="#000000">&gt; dirent*, dirent**)&#8217;:</FONT>
<FONT COLOR="#000000">&gt; /usr/include/dirent.h:187: error: too few arguments to function &#8216;int </FONT>
<FONT COLOR="#000000">&gt; readdir_r(DIR*, dirent*, dirent**)&#8217;</FONT>

<FONT COLOR="#000000">You (probably) have the wrong compiler. And definitely have the wrong </FONT>
<FONT COLOR="#000000">include files. You might note the complaint about /usr/include/dirent.h, </FONT>
<FONT COLOR="#000000">but /usr/include should not show up in your build since everything </FONT>
<FONT COLOR="#000000">should be coming from your VxWorks installation.</FONT>

<FONT COLOR="#000000">I'm not sure what your cross-compiler is called, but plain &quot;g++&quot; is </FONT>
<FONT COLOR="#000000">probably not the right thing. For my PPC targets, the compiler is called </FONT>
<FONT COLOR="#000000">&quot;c++ppc&quot;. The implicit use of /usr/include in your search path is </FONT>
<FONT COLOR="#000000">probably coming from /usr/bin/g++.</FONT>

<FONT COLOR="#000000">hth</FONT>

<FONT COLOR="#000000">                      - Tom</FONT>

</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<H1>
<B><S><FONT SIZE="5"><FONT COLOR="#969696">_________________________</FONT></FONT></S></B>
</H1>
<B><FONT SIZE="4">Jos&#233; Rui Sim&#245;es</FONT></B> 
<H4>
<B><I><TT><FONT COLOR="#808080">Junior Engineer</FONT></TT></I></B>
</H4>
<BR>
<B><FONT SIZE="4"><FONT COLOR="#dc0000">Critical Software, SA</FONT></FONT></B><BR>
<FONT COLOR="#808080">Parque Industrial de Taveiro, Lote 48</FONT><BR>
<FONT COLOR="#808080">3045-504 Coimbra, Portugal</FONT><BR>
<FONT COLOR="#808080">Tel:+351.239 989 100 Fax:+351.239 989 119</FONT><BR>
<A HREF="http://www.criticalsoftware.com/">http://www.criticalsoftware.com</A><BR>
<A HREF="mailto:jose-r-simoes%40criticalsoftware.com">jose-r-simoes@criticalsoftware.com</A><BR>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>