Skip to content

Commit 41ef814

Browse files
spywoOliverWuADSK
andauthored
Fix an issue where C++ include header is in lowercase (#221)
The basename is used to generate the real files, including header files. When generating the include statement, the file name should be exactly the same as the physical file name, otherwise, it cannot be found on Linux, which is a case-sensitive OS. For example, if the file name is 'BaseName_interface.hpp', the include statement should be '#include "BaseName_interface.hpp"' rather than '#include "basename_interface.hpp"'. Co-authored-by: Oliver Wu <[email protected]>
1 parent 06f9086 commit 41ef814

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/buildimplementationcpp.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -770,11 +770,11 @@ func buildCPPGetSymbolAddressMethod(component ComponentDefinition, w LanguageWri
770770
}
771771

772772
func buildCPPInterfaceWrapper(component ComponentDefinition, w LanguageWriter, NameSpace string, NameSpaceImplementation string, ClassIdentifier string, BaseName string, doJournal bool) error {
773-
w.Writeln("#include \"%s_abi.hpp\"", strings.ToLower(BaseName))
774-
w.Writeln("#include \"%s_interfaces.hpp\"", strings.ToLower(BaseName))
775-
w.Writeln("#include \"%s_interfaceexception.hpp\"", strings.ToLower(BaseName))
773+
w.Writeln("#include \"%s_abi.hpp\"", BaseName)
774+
w.Writeln("#include \"%s_interfaces.hpp\"", BaseName)
775+
w.Writeln("#include \"%s_interfaceexception.hpp\"", BaseName)
776776
if (doJournal) {
777-
w.Writeln("#include \"%s_interfacejournal.hpp\"", strings.ToLower(BaseName))
777+
w.Writeln("#include \"%s_interfacejournal.hpp\"", BaseName)
778778
}
779779
w.Writeln("")
780780
w.Writeln("#include <map>")

0 commit comments

Comments
 (0)