You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Farid Zaripov (JIRA)" <ji...@apache.org> on 2008/01/28 17:23:34 UTC

[jira] Created: (STDCXX-710) C code fails to compile with stdcxx

C code fails to compile with stdcxx
-----------------------------------

                 Key: STDCXX-710
                 URL: https://issues.apache.org/jira/browse/STDCXX-710
             Project: C++ Standard Library
          Issue Type: Improvement
    Affects Versions: 4.2.0, 4.1.3, 4.1.2
         Environment: All
            Reporter: Farid Zaripov
            Assignee: Farid Zaripov
            Priority: Trivial
             Fix For: 4.2.1


The boost regression tests contains some .c files, which are failed to compile with stdcxx.

The example:

----------------------------------
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <float.h>
#include <limits.h>
#include <locale.h>
#include <math.h>
#include <setjmp.h>
#include <signal.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <wchar.h>
#include <wctype.h>

int main ()
{
    return 0;
}
----------------------------------

  The build log on MSVC:

----------------------------------
test.cpp
D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2061: syntax error : identifier '__rw'
D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2059: syntax error : ';'
D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2449: found '{' at file scope (missing function header?)
D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1163) : error C2059: syntax error : '}'
----------------------------------


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (STDCXX-710) C code fails to compile with stdcxx

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563540#action_12563540 ] 

farid edited comment on STDCXX-710 at 3/12/08 5:11 AM:
---------------------------------------------------------------

As another option we can just redirect from our include/ansi/xxx.h files to compiler default header files.

I.e. for the include/ansi/assert.h:

#ifndef __cplusplus
#include <config.h>
#include _RWSTD_ANSI_C_ASSERT_H
#else    // #ifdef __cplusplus
#include <rw/_defs.h>
...
#endif   // __cplusplus

      was (Author: farid):
    As another option we can just redirect from our include/ansi/xxx.h files to compiler default header files.

I.e. for the include/ansi/assert.h:

#ifndef __cplusplus
#include _RWSTD_ANSI_C_ASSERT_H
#else    // #ifdef __cplusplus
#include <rw/_defs.h>
...
#endif   // __cplusplus
  
> C code fails to compile with stdcxx
> -----------------------------------
>
>                 Key: STDCXX-710
>                 URL: https://issues.apache.org/jira/browse/STDCXX-710
>             Project: C++ Standard Library
>          Issue Type: Improvement
>    Affects Versions: 4.1.2, 4.1.3, 4.2.0
>         Environment: All
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>            Priority: Trivial
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-710.patch
>
>   Original Estimate: 1h
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The boost regression tests contains some .c files, which are failed to compile with stdcxx.
> The example:
> ----------------------------------
> #include <assert.h>
> #include <ctype.h>
> #include <errno.h>
> #include <float.h>
> #include <limits.h>
> #include <locale.h>
> #include <math.h>
> #include <setjmp.h>
> #include <signal.h>
> #include <stdarg.h>
> #include <stddef.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <time.h>
> #include <wchar.h>
> #include <wctype.h>
> int main ()
> {
>     return 0;
> }
> ----------------------------------
>   The build log on MSVC:
> ----------------------------------
> test.cpp
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2061: syntax error : identifier '__rw'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2059: syntax error : ';'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2449: found '{' at file scope (missing function header?)
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1163) : error C2059: syntax error : '}'
> ----------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STDCXX-710) C code fails to compile with stdcxx

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563384#action_12563384 ] 

Martin Sebor commented on STDCXX-710:
-------------------------------------

In principle, I suppose a patch along these lines might be okay, even though it assumes a C99 compiler (otherwise, to compile in C89 mode, we would also need to change the C++ comments to C style). I do wonder if the attached patch deals with all such cases in our C compatibility headers, including the overloads C++ adds to some functions (such as {{bsearch()}} and {{qsort()}} in {{<stdlib.h>}}).

That said, I'm not at all sure it makes sense to be compiling C code with the C++ Standard Library headers in the search path. If Boost wants to compile C code they should be using a C compiler, including the C compiler's options, not a mishmash of C and C++ code and options.

Incidentally, we normally try to avoid preprocessor directives in code by hiding them behind macros defined in [rw/_defs.h|http://svn.apache.org/repos/asf/stdcxx/trunk/include/rw/_defs.h] so if we should decide to accept a patch for this I would suggest replacing the #ifdefs in it with something like below. But first I'd like to know how pervasive the Boost failures are and if there might be a way to patch Boost to eliminate the errors.

{noformat}
#ifdef __cplusplus
#  define _RWSTD_EXTERN_C_BEGIN   extern "C" {
#  define _RWSTD_EXTERN_C_END     }
#else
#  define _RWSTD_EXTERN_C_BEGIN   /* empty */
#  define _RWSTD_EXTERN_C_END     /* empty */
#endif
{noformat}


> C code fails to compile with stdcxx
> -----------------------------------
>
>                 Key: STDCXX-710
>                 URL: https://issues.apache.org/jira/browse/STDCXX-710
>             Project: C++ Standard Library
>          Issue Type: Improvement
>    Affects Versions: 4.1.2, 4.1.3, 4.2.0
>         Environment: All
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>            Priority: Trivial
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-710.patch
>
>   Original Estimate: 1h
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The boost regression tests contains some .c files, which are failed to compile with stdcxx.
> The example:
> ----------------------------------
> #include <assert.h>
> #include <ctype.h>
> #include <errno.h>
> #include <float.h>
> #include <limits.h>
> #include <locale.h>
> #include <math.h>
> #include <setjmp.h>
> #include <signal.h>
> #include <stdarg.h>
> #include <stddef.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <time.h>
> #include <wchar.h>
> #include <wctype.h>
> int main ()
> {
>     return 0;
> }
> ----------------------------------
>   The build log on MSVC:
> ----------------------------------
> test.cpp
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2061: syntax error : identifier '__rw'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2059: syntax error : ';'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2449: found '{' at file scope (missing function header?)
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1163) : error C2059: syntax error : '}'
> ----------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (STDCXX-710) C code fails to compile with stdcxx

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Farid Zaripov updated STDCXX-710:
---------------------------------

    Attachment: stdcxx-710.patch

> C code fails to compile with stdcxx
> -----------------------------------
>
>                 Key: STDCXX-710
>                 URL: https://issues.apache.org/jira/browse/STDCXX-710
>             Project: C++ Standard Library
>          Issue Type: Improvement
>    Affects Versions: 4.1.2, 4.1.3, 4.2.0
>         Environment: All
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>            Priority: Trivial
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-710.patch
>
>   Original Estimate: 1h
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The boost regression tests contains some .c files, which are failed to compile with stdcxx.
> The example:
> ----------------------------------
> #include <assert.h>
> #include <ctype.h>
> #include <errno.h>
> #include <float.h>
> #include <limits.h>
> #include <locale.h>
> #include <math.h>
> #include <setjmp.h>
> #include <signal.h>
> #include <stdarg.h>
> #include <stddef.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <time.h>
> #include <wchar.h>
> #include <wctype.h>
> int main ()
> {
>     return 0;
> }
> ----------------------------------
>   The build log on MSVC:
> ----------------------------------
> test.cpp
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2061: syntax error : identifier '__rw'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2059: syntax error : ';'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2449: found '{' at file scope (missing function header?)
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1163) : error C2059: syntax error : '}'
> ----------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (STDCXX-710) C code fails to compile with stdcxx

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Farid Zaripov updated STDCXX-710:
---------------------------------

      Description: 
The boost regression tests contains some .c files, which are failed to compile with stdcxx.

The example:

{noformat}
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <float.h>
#include <limits.h>
#include <locale.h>
#include <math.h>
#include <setjmp.h>
#include <signal.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <wchar.h>
#include <wctype.h>

int main ()
{
    return 0;
}
{noformat}
  The build log on MSVC:

{noformat}
test.cpp
D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2061: syntax error : identifier '__rw'
D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2059: syntax error : ';'
D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2449: found '{' at file scope (missing function header?)
D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1163) : error C2059: syntax error : '}'
{noformat}

  was:
The boost regression tests contains some .c files, which are failed to compile with stdcxx.

The example:

----------------------------------
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <float.h>
#include <limits.h>
#include <locale.h>
#include <math.h>
#include <setjmp.h>
#include <signal.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <wchar.h>
#include <wctype.h>

int main ()
{
    return 0;
}
----------------------------------

  The build log on MSVC:

----------------------------------
test.cpp
D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2061: syntax error : identifier '__rw'
D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2059: syntax error : ';'
D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2449: found '{' at file scope (missing function header?)
D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1163) : error C2059: syntax error : '}'
----------------------------------


    Fix Version/s:     (was: 4.2.1)
                   4.3

Deferring issue to later release (first we should try to fix the issue on boost side).

> C code fails to compile with stdcxx
> -----------------------------------
>
>                 Key: STDCXX-710
>                 URL: https://issues.apache.org/jira/browse/STDCXX-710
>             Project: C++ Standard Library
>          Issue Type: Improvement
>    Affects Versions: 4.1.2, 4.1.3, 4.2.0
>         Environment: All
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>            Priority: Trivial
>             Fix For: 4.3
>
>         Attachments: stdcxx-710.patch
>
>   Original Estimate: 1h
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The boost regression tests contains some .c files, which are failed to compile with stdcxx.
> The example:
> {noformat}
> #include <assert.h>
> #include <ctype.h>
> #include <errno.h>
> #include <float.h>
> #include <limits.h>
> #include <locale.h>
> #include <math.h>
> #include <setjmp.h>
> #include <signal.h>
> #include <stdarg.h>
> #include <stddef.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <time.h>
> #include <wchar.h>
> #include <wctype.h>
> int main ()
> {
>     return 0;
> }
> {noformat}
>   The build log on MSVC:
> {noformat}
> test.cpp
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2061: syntax error : identifier '__rw'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2059: syntax error : ';'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2449: found '{' at file scope (missing function header?)
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1163) : error C2059: syntax error : '}'
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STDCXX-710) C code fails to compile with stdcxx

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563540#action_12563540 ] 

Farid Zaripov commented on STDCXX-710:
--------------------------------------

As another option we can just redirect from our include/ansi/xxx.h files to compiler default header files.

I.e. for the include/ansi/assert.h:

#ifndef __cplusplus
#include _RWSTD_ANSI_C_ASSERT_H
#else    // #ifdef __cplusplus
#include <rw/_defs.h>
...
#endif   // __cplusplus

> C code fails to compile with stdcxx
> -----------------------------------
>
>                 Key: STDCXX-710
>                 URL: https://issues.apache.org/jira/browse/STDCXX-710
>             Project: C++ Standard Library
>          Issue Type: Improvement
>    Affects Versions: 4.1.2, 4.1.3, 4.2.0
>         Environment: All
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>            Priority: Trivial
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-710.patch
>
>   Original Estimate: 1h
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The boost regression tests contains some .c files, which are failed to compile with stdcxx.
> The example:
> ----------------------------------
> #include <assert.h>
> #include <ctype.h>
> #include <errno.h>
> #include <float.h>
> #include <limits.h>
> #include <locale.h>
> #include <math.h>
> #include <setjmp.h>
> #include <signal.h>
> #include <stdarg.h>
> #include <stddef.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <time.h>
> #include <wchar.h>
> #include <wctype.h>
> int main ()
> {
>     return 0;
> }
> ----------------------------------
>   The build log on MSVC:
> ----------------------------------
> test.cpp
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2061: syntax error : identifier '__rw'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2059: syntax error : ';'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2449: found '{' at file scope (missing function header?)
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1163) : error C2059: syntax error : '}'
> ----------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STDCXX-710) C code fails to compile with stdcxx

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563568#action_12563568 ] 

Martin Sebor commented on STDCXX-710:
-------------------------------------

This seems like a cleaner approach. I still think you should open a bug with Boost and have them do the right thing, even if you apply this patch to our headers.

> C code fails to compile with stdcxx
> -----------------------------------
>
>                 Key: STDCXX-710
>                 URL: https://issues.apache.org/jira/browse/STDCXX-710
>             Project: C++ Standard Library
>          Issue Type: Improvement
>    Affects Versions: 4.1.2, 4.1.3, 4.2.0
>         Environment: All
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>            Priority: Trivial
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-710.patch
>
>   Original Estimate: 1h
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The boost regression tests contains some .c files, which are failed to compile with stdcxx.
> The example:
> ----------------------------------
> #include <assert.h>
> #include <ctype.h>
> #include <errno.h>
> #include <float.h>
> #include <limits.h>
> #include <locale.h>
> #include <math.h>
> #include <setjmp.h>
> #include <signal.h>
> #include <stdarg.h>
> #include <stddef.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <time.h>
> #include <wchar.h>
> #include <wctype.h>
> int main ()
> {
>     return 0;
> }
> ----------------------------------
>   The build log on MSVC:
> ----------------------------------
> test.cpp
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2061: syntax error : identifier '__rw'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2059: syntax error : ';'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2449: found '{' at file scope (missing function header?)
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1163) : error C2059: syntax error : '}'
> ----------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (STDCXX-710) C code fails to compile with stdcxx

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Farid Zaripov updated STDCXX-710:
---------------------------------

    Attachment: stdcxx-710.patch

> C code fails to compile with stdcxx
> -----------------------------------
>
>                 Key: STDCXX-710
>                 URL: https://issues.apache.org/jira/browse/STDCXX-710
>             Project: C++ Standard Library
>          Issue Type: Improvement
>    Affects Versions: 4.1.2, 4.1.3, 4.2.0
>         Environment: All
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>            Priority: Trivial
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-710.patch
>
>
> The boost regression tests contains some .c files, which are failed to compile with stdcxx.
> The example:
> ----------------------------------
> #include <assert.h>
> #include <ctype.h>
> #include <errno.h>
> #include <float.h>
> #include <limits.h>
> #include <locale.h>
> #include <math.h>
> #include <setjmp.h>
> #include <signal.h>
> #include <stdarg.h>
> #include <stddef.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <time.h>
> #include <wchar.h>
> #include <wctype.h>
> int main ()
> {
>     return 0;
> }
> ----------------------------------
>   The build log on MSVC:
> ----------------------------------
> test.cpp
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2061: syntax error : identifier '__rw'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2059: syntax error : ';'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2449: found '{' at file scope (missing function header?)
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1163) : error C2059: syntax error : '}'
> ----------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (STDCXX-710) C code fails to compile with stdcxx

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Farid Zaripov updated STDCXX-710:
---------------------------------

    Attachment:     (was: stdcxx-710.patch)

> C code fails to compile with stdcxx
> -----------------------------------
>
>                 Key: STDCXX-710
>                 URL: https://issues.apache.org/jira/browse/STDCXX-710
>             Project: C++ Standard Library
>          Issue Type: Improvement
>    Affects Versions: 4.1.2, 4.1.3, 4.2.0
>         Environment: All
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>            Priority: Trivial
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-710.patch
>
>   Original Estimate: 1h
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The boost regression tests contains some .c files, which are failed to compile with stdcxx.
> The example:
> ----------------------------------
> #include <assert.h>
> #include <ctype.h>
> #include <errno.h>
> #include <float.h>
> #include <limits.h>
> #include <locale.h>
> #include <math.h>
> #include <setjmp.h>
> #include <signal.h>
> #include <stdarg.h>
> #include <stddef.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <time.h>
> #include <wchar.h>
> #include <wctype.h>
> int main ()
> {
>     return 0;
> }
> ----------------------------------
>   The build log on MSVC:
> ----------------------------------
> test.cpp
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2061: syntax error : identifier '__rw'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2059: syntax error : ';'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2449: found '{' at file scope (missing function header?)
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1163) : error C2059: syntax error : '}'
> ----------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (STDCXX-710) C code fails to compile with stdcxx

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Farid Zaripov updated STDCXX-710:
---------------------------------

            Patch Info: [Patch Available]
    Remaining Estimate: 1h
     Original Estimate: 1h

> C code fails to compile with stdcxx
> -----------------------------------
>
>                 Key: STDCXX-710
>                 URL: https://issues.apache.org/jira/browse/STDCXX-710
>             Project: C++ Standard Library
>          Issue Type: Improvement
>    Affects Versions: 4.1.2, 4.1.3, 4.2.0
>         Environment: All
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>            Priority: Trivial
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-710.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The boost regression tests contains some .c files, which are failed to compile with stdcxx.
> The example:
> ----------------------------------
> #include <assert.h>
> #include <ctype.h>
> #include <errno.h>
> #include <float.h>
> #include <limits.h>
> #include <locale.h>
> #include <math.h>
> #include <setjmp.h>
> #include <signal.h>
> #include <stdarg.h>
> #include <stddef.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <time.h>
> #include <wchar.h>
> #include <wctype.h>
> int main ()
> {
>     return 0;
> }
> ----------------------------------
>   The build log on MSVC:
> ----------------------------------
> test.cpp
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2061: syntax error : identifier '__rw'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2059: syntax error : ';'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2449: found '{' at file scope (missing function header?)
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1163) : error C2059: syntax error : '}'
> ----------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (STDCXX-710) C code fails to compile with stdcxx

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Farid Zaripov reassigned STDCXX-710:
------------------------------------

    Assignee:     (was: Farid Zaripov)

> C code fails to compile with stdcxx
> -----------------------------------
>
>                 Key: STDCXX-710
>                 URL: https://issues.apache.org/jira/browse/STDCXX-710
>             Project: C++ Standard Library
>          Issue Type: Improvement
>    Affects Versions: 4.1.2, 4.1.3, 4.2.0
>         Environment: All
>            Reporter: Farid Zaripov
>            Priority: Trivial
>             Fix For: 4.3
>
>         Attachments: stdcxx-710.patch
>
>   Original Estimate: 1h
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The boost regression tests contains some .c files, which are failed to compile with stdcxx.
> The example:
> {noformat}
> #include <assert.h>
> #include <ctype.h>
> #include <errno.h>
> #include <float.h>
> #include <limits.h>
> #include <locale.h>
> #include <math.h>
> #include <setjmp.h>
> #include <signal.h>
> #include <stdarg.h>
> #include <stddef.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <time.h>
> #include <wchar.h>
> #include <wctype.h>
> int main ()
> {
>     return 0;
> }
> {noformat}
>   The build log on MSVC:
> {noformat}
> test.cpp
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2061: syntax error : identifier '__rw'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2059: syntax error : ';'
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2449: found '{' at file scope (missing function header?)
> D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1163) : error C2059: syntax error : '}'
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.