thejinchao / turbolink

TurboLink is an unreal engine plugin enables Google gRPC work with Unreal Engine using C++ and Blueprint
MIT License
129 stars 32 forks source link

hyphen in proto file name isn't supported. #18

Closed 6r0m closed 9 months ago

6r0m commented 10 months ago

1) generate-code.cmd 2) add generated files and rebuild solution 3) build full demo project, errors: test-statusMessage.generated.h(12): [C4067] unexpected tokens following preprocessor directive - expected a newline test-statusMessage.generated.h(15): [C2008] '-': unexpected in macro definition test-statusMessage.generated.h(12): [C4067] unexpected tokens following preprocessor directive - expected a newline test-statusMessage.generated.h(15): [C2008] '-': unexpected in macro definition

thejinchao commented 10 months ago

Very interesting, I think it should be because the source file name of the UE project should follow specific rules, such as camel case, cannot contain spaces and hyphen. I can do some conversions when generating these files, such as converting hyphen to underscores, but I still suggest that you should not include hyphen signs in your proto file name.

thejinchao commented 9 months ago

fixed in the latest version