You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jake Farrell (Commented) (JIRA)" <ji...@apache.org> on 2011/11/01 03:14:32 UTC

[jira] [Commented] (THRIFT-1326) on some platforms, #include is necessary to be included in Thrift.h

    [ https://issues.apache.org/jira/browse/THRIFT-1326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13140846#comment-13140846 ] 

Jake Farrell commented on THRIFT-1326:
--------------------------------------

Phillippe, i've only seen this error when the cpp lib is not installed and you are trying to reference it (example: using fb303 without cpp lib). I am running on 10.6.8 and 10.7.2 and when cpp lib is installed I have not seen this issue. are you still seeing this problem against trunk when the cpp lib is installed? can you provide some more information about your installed setup and possibly a test showing this issue. Thanks
                
> on some platforms, #include <stdint.h> is necessary to be included in Thrift.h
> ------------------------------------------------------------------------------
>
>                 Key: THRIFT-1326
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1326
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Library
>         Environment: Mac OSX 10.6.8 / x86_64 / GCC 4.6.1 for building thrift and server code generated by thrift
>            Reporter: Philippe STRAUSS
>             Fix For: 0.8
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> building server code generated by thrift, I needed to add #include <stdint.h> in main Thrift.h to prevent an "error: uint32_t does not define a type" error. Maybe it does not show on linux, or with earlier GCC.
> Maybe there is a better place than the main Thrift.h for thins #include <stdint.h>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira