[SERVER-38201] IDL does not work well with enterprise module Created: 19/Nov/18 Updated: 29/Oct/23 Resolved: 16/Jan/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | IDL |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.7 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Xiangyu Yao (Inactive) | Assignee: | Mark Benvenuto |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Sprint: | Security 2018-12-03, Security 2018-12-17, Security 2018-12-31, Security 2019-01-14, Security 2019-01-28 |
| Participants: |
| Description |
|
The x_gen.h and x_gen.cpp will be generated in the build directory of the enterprise module and it is probably not listed as an include path so I have to specify the full .h path '#include "mongo/db/modules/enterprise/src/hot_backup/x_gen.h"'. |
| Comments |
| Comment by Githook User [ 16/Jan/19 ] | |
|
Author: {'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto'}Message: | |
| Comment by Mark Benvenuto [ 20/Nov/18 ] | |
|
The reason why you need the full path is because the only include path specified to the compiler that includes the build directory is "-IIbuild\<VARIANT_DIR>". In order to make a shorter path work, you need to add a line like this:
In something like the Enterprise module's SConscript. If you added something like this to the include path, you could then include the IDL files just like "#include "hot_backups/x_gen.h"" |