TelluIoT / ThingML

The ThingML modelling language
https://github.com/TelluIoT/ThingML
Apache License 2.0
103 stars 32 forks source link

C compiler produces bad code if the configuration and a thing have the same name #57

Closed brice-morin closed 9 years ago

brice-morin commented 10 years ago

Basically because the .h and .c files of the configuration or replaced (and do not exist anymore) by the .h and .c files of the thing (or vice versa). So at the end, something is missing resulting in a looooong list of errors when trying to compile the resulting C code.

brice-morin commented 10 years ago

Either the ThingML editors should report that kind of unfortunate naming as an error, or the compiler (C might not be the only one failing, to be verified) should handle that, because this could be a common mistake.

nharrand commented 9 years ago

The configuration file corresponding to the configuration is now named configuration_name + "_cfg.c".