Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » Insert iml include typo
Insert iml include typo [message #39796] |
Tue, 30 April 2013 01:20  |
busiek
Messages: 70 Registered: February 2011 Location: Poland
|
Member |
|
|
Assist->Insert->*.iml include generates line #include <Draw/iml_header.h> instead of
|
|
|
Re: Insert iml include typo [message #39799 is a reply to message #39796] |
Tue, 30 April 2013 14:43   |
|
busiek wrote on Tue, 30 April 2013 01:20 | Assist->Insert->*.iml include generates line #include <Draw/iml_header.h> instead of
|
Hi busiek,
I believe that this is not a bug, it is a feature If you look at iml.h, you'll see that it just includes iml_header.h and iml_source.h. The first one includes only declarations, the second one actual definitions. So iml_header.h can be included multiple times on various places of your code as needed, while iml_source.h must be only present in one .cpp file (for each iml file), otherwise multiple definition error occurs when compiling. So it kind of make sense that the insert helper only gives you the header part, the source part should be inserted with a bit more thinking
Best regards,
Honza
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:05:43 CEST 2025
Total time taken to generate the page: 0.00936 seconds
|