View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0002806 | Spring engine | AI | public | 2011-12-03 17:10 | 2011-12-03 17:53 | ||||||||
Reporter | abma | ||||||||||||
Assigned To | |||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||||||
Status | new | Resolution | open | ||||||||||
Product Version | |||||||||||||
Target Version | Fixed in Version | ||||||||||||
Summary | 0002806: CppWrapper should use a prefix for includes | ||||||||||||
Description | its very difficult if there are conflicting includes filenames, like in shard: shard requires to include "lua.h" and the wrapper headers also contain a "Lua.h", in case insensitive environments (windows + macosx), its hard to get the right include. imo the cpp header files should be prefixed with for example: #include "cppwrapper/Lua.h" (which is in real in src-generated/cppwrapper/Lua.h) | ||||||||||||
Additional Information | why does this problem exist? a file in shard is autogenerated and needs to include "lua.h" without any prefixes. also as this file is autogenerated it can't be touched :-/ | ||||||||||||
Tags | No tags attached. | ||||||||||||
Checked infolog.txt for Errors | |||||||||||||
Attached Files |
|
![]() |
|
abma (administrator) 2011-12-03 17:53 |
found a solution for shard, but imo still ugly: shard uses full paths for include files + uses CMAKE_SOURCE_DIR CMAKE_BINARY_DIR as includes. see https://github.com/Tarendai/Shard/blob/master/CMakeLists.txt |