[Ace-users] [ace-users] compiling ACE on linux with wchar
Douglas C. Schmidt
schmidt at dre.vanderbilt.edu
Mon Nov 5 19:41:50 CST 2007
Hi Martin,
>I've digged deep inside the dirent configurations and found the
>problem:
>
>There's a test code for directory parsing functionality in
>%ACE_wrappers%/test/Dirent_Test.cpp. In this test the member "d_name"
>of the structure "dirent" (#define ACE_DIRENT dirent) is used for
>several times. This structure comes from unix systems and is mapped
>directly on those systems. On windows systems it is defined in
>%ACE_wrappers%/ace/os_include/os_dirent.h because windows doesn't have
>a structure like this. The difference is that unix systems always use
>char arrays for d_name, windows systems use ACE_TCHAR now (because of
>self defined structure). This means that unicode builds on windows
>(ACE_USES_WCHAR) have wchar_t arrays for the d_name. At each place in
>our productive code (Linux/Windows) we have to differenciate d_name
>type now.
>
>In the ACE unit tests there is no problem because d_name is always
>used in overloaded functions for char and wchar_t. Except the lines
>207-213: There you have to use an #ifdef as workaround.
Thanks for the analysis - that's very helpful.
>I know about the problem but don't feel capable to solve it in ACE.
>
>Can you please help me?
Unfortunately, we (i.e., the DOC group at ISIS) don't have time to
look into this. I recommend that you file this issue in bugzilla
<deuce.doc.wustl.edu/bugzilla> so it doesn't get lost. If you need
more "predictable" help or need help for earlier versions of
ACE+TAO+CIAO please see
http://www.cs.wustl.edu/~schmidt/commercial-support.html
for a list of companies that will provide you with ACE+TAO+CIAO
commercial support.
Thanks very much,
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