2025-07-19 07:53 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002806Spring engineAIpublic2011-12-03 17:53
Reporterabma 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0002806: CppWrapper should use a prefix for includes
Descriptionits 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 Informationwhy 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 :-/
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0007804

abma (administrator)

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
+Notes

-Issue History
Date Modified Username Field Change
2011-12-03 17:10 abma New Issue
2011-12-03 17:53 abma Note Added: 0007804
+Issue History