Ecere SDK/eC Forums https://ecere.org/community/ Print view |
|
How to write something like an interface ? https://ecere.org/community/viewtopic.php?f=1&t=383 |
Page 1 of 1 |
Author: | nicktick [ Tue Jan 14, 2014 4:01 am ] |
Post subject: | How to write something like an interface ? |
Code: Select all
Linking... Linker Error: obj/debug.win32/Itest.o: In function `__ecereMethod_M_Test': Itest.ec:31: error: undefined reference to `__ecereMethod_ITest_Read' collect2.exe: error: ld returned 1 exit status |
Author: | jerome [ Tue Jan 14, 2014 4:17 am ] |
Post subject: | Re: How to write something like an interface ? |
Hi nicktick! eC does not have proper interface support yet (see http://www.ecere.com/mantis/view.php?id=514 for the wishlist feature) To see what can be done in the current state of things, please take a look at this thread. To be able to implement multiple interfaces from a single class, interface classes should not contain any data member, and all methods should be virtual and not require a this object, e.g.: Code: Select all
|
All times are UTC-05:00 | Page 1 of 1 |
Powered by phpBB® Forum Software © phpBB Limited |