[
https://issues.apache.org/jira/browse/THRIFT-1859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jingxu Chen updated THRIFT-1859:
--------------------------------
Attachment:
thrift-1859-fix-cpp-include-path-when-include-prefix-is-on-and-out-option-is-specified.patch
Fix the bug by eliminating "gen-cpp" directory if -out is specified.
> Generated error c++ code with -out and include_prefix param
> -----------------------------------------------------------
>
> Key: THRIFT-1859
> URL: https://issues.apache.org/jira/browse/THRIFT-1859
> Project: Thrift
> Issue Type: Bug
> Components: C++ - Compiler
> Affects Versions: 0.9
> Environment: Linux, x86-64
> Reporter: CHEN Feng
> Priority: Critical
> Attachments:
> thrift-1859-fix-cpp-include-path-when-include-prefix-is-on-and-out-option-is-specified.patch
>
>
> thrift -gen cpp:include_prefix -out test_thrift test_thrift/tutorial.thrift
> the files are generated in test_thrift, without the gen-cpp dir
> but the content of generated files are error:
> #include "test_thrift/gen-cpp/Calculator.h"
> the --help said:
> -out dir Set the ouput location for generated files.
> (no gen-* folder will be created)
> So, the 'gen-cpp' should be removed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira