Opened 5 years ago
Closed 5 years ago
#6403 closed defect (fixed)
[CG] Bad use of ModelicaMessage
| Reported by: | Adrian Pop | Owned by: | Adrian Pop |
|---|---|---|---|
| Priority: | high | Milestone: | 1.17.0 |
| Component: | Code Generation | Version: | 1.18.0-dev |
| Keywords: | Cc: |
Description
We use ModelicaMessage when we should use our own internal messaging:
Compiler/Template/CodegenCppOld.tpl: 'ModelicaMessage("Using default Clock(1.0)!");'
Compiler/Template/CodegenCpp.tpl: 'ModelicaMessage("Using default Clock(1.0)!");'
Compiler/Template/CodegenC.tpl: 'ModelicaMessage("Using default Clock(1.0)!");'
Change History (4)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → accepted |
comment:3 by , 5 years ago
PR https://github.com/OpenModelica/OpenModelica/pull/7262 should fix this.
comment:4 by , 5 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.

This has issues on Mac with clang
Model_15syn.c:59:7: error: implicit declaration of function 'ModelicaMessage' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ModelicaMessage("Using default Clock(1.0)!");