Ecere SDK/eC Forums http://www.ecere.com/forums/ Print view |
|
[Solved]Bug in the example? http://www.ecere.com/forums/viewtopic.php?f=1&t=147 |
Page 1 of 2 |
Author: | samsam598 [ Wed Aug 17, 2011 7:55 pm ] |
Post subject: | [Solved]Bug in the example? |
Greetings! Below example is from wiki http://www.ecere.com/wiki/index.php?title=Utilities Linked List Example Code: Select all
Compiling... bug01.ec bug01.ec:14:13: warning: incompatible expression MyItem { value = 5 } (MyItem); expected LLT bug01.ec:15:12: warning: incompatible expression list.first (ecere::com::Link); expected MyItem bug01.c bug01.ec:17: error: too many arguments to function '(void (*)(struct __ecereNameSpace__ecere__com__Instance *))*(list->_vTbl + (unsigned int)((unsigned int)__ecereVMethodID___ecereNameSpace__ecere__com__Container_Free * 4u))' bug01.exe (Debug) - 1 error, 2 warnings What's wrong here?Is the example wrong or there is some bug in the ec language?If the example is wrong,how to fix it then? If this is a ec issue,I think maybe the most important is to fix the bugs in the language before any new features supposed to add in in the furture. Thanks and best regards, Sam |
Author: | jerome [ Wed Aug 17, 2011 8:44 pm ] |
Post subject: | Re: Bug in the example? |
Hi Sam! The wiki is not in the best shape right now, there's not much valuable info there. You are better off looking in the sdk/samples/ folder, and grabbing the latest from a git snapshot (http://github.com/ecere/sdk) What is happening with this sample is that it is still using the 'old' containers. That old 'List' container has been renamed to 'OldList' (It will work if you just change List to OldList) and is deprecated (it will be taken out in the future). We have a whole new set of containers which work with eC templates and are much nicer. Here is how we would write this sample now: Code: Select all
I hope this helps! And don't hesitate to ask for help over here, we'll be happy to guide you! All the best, Jerome |
Author: | samsam598 [ Wed Aug 17, 2011 9:03 pm ] |
Post subject: | Re: Bug in the example? |
Hi Joreme, Thanks for your prompt response,appreciated. Another issue that I encountered is the ide will crash when I try to assign hot key to a button using the designer.Drag and place a button on a form,rename the button text to "OK",select 'hotkey',then pull down the arrow of the 'code' and select 'O',crash~.The IDE version is windows binary from http://www.ecere.com/forums/viewtopic.php?f=1&t=107. For the lastest snapshot from (http://github.com/ecere/sdk),I will try.Before that,would like to know also is there an windows binary package available as well?If not,could you please help to figure out how to compile this SDK by myself under Windows 7,without system administrator authorization,that's,I can't add compiler and sdk path to the system environment under windows.Can I make use of the existing IDE?And by the way,which version of mingw suits best?A link would be perfect. Thanks for your help in advance. Regards, Sam |
Author: | jerome [ Wed Aug 17, 2011 10:00 pm ] |
Post subject: | Re: Bug in the example? |
Hi Sam. Thanks for reporting that bug. I don't think we were aware of that. I'll work on a fix right now, I should have it ready in a couple of hours. Then I'll package new binaries for you. At the moment I'm using a blend of MinGW packages, GCC is 4.4.0. I'll post you links later. To build the SDK on Windows 7, it's just a matter of running mingw32-make.exe (MinGW make package) from the root of the Ecere SDK folder from git (Where 'Makefile' is) 'mingw32-make -j 4' if you have a quad-core system will greatly speed up the process (The 2nd stage compilation takes a while) Then if you do not have access to an elevated command prompt (One that says 'Administrator' at the top) you just manually copy the contents of [Ecere SDK folder]/obj/win32 (bin and lib folders) onto wherever it is you installed your Ecere SDK. I'll follow up shortly. Thanks, Jerome |
Author: | samsam598 [ Wed Aug 17, 2011 11:12 pm ] |
Post subject: | Re: Bug in the example? |
Hi Jerome, Thanks... What will I get if I open successfully and build the git snapshot/ide/ide.epj by the current ecere IDE?Unfortunately the IDE crashed if I tried to open any of the *.epj inside the git snapshot package by the current IDE .This information is just for your reference. Thanks and regards, Sam |
Author: | jerome [ Wed Aug 17, 2011 11:23 pm ] |
Post subject: | Re: Bug in the example? |
Hi Sam, To build the latest IDE, you should have the latest ecere.dll in place. (You can build it from the ecere.epj ) But really for the first build you should build everything from a 'make' at the top level of the SDK, to make sure everything is compatible, and then put these binaries in place. Then you can open the EPJ files from the IDE and build each project individually. All the output files will go into obj/win32/ You said you were using the binaries from http://ecere.com/forums/viewtopic.php?f=1&t=107&start=0 Those should be able to open the JSON project files (The new format of EPJ for the upcoming 0.44 release...) The previous IDE (The binaries from the Windows logo on the home page) however should crash trying to open these new EPJ files. |
Author: | samsam598 [ Thu Aug 18, 2011 2:39 am ] |
Post subject: | Re: Bug in the example? |
Hi Jerome, Thanks. Same as last time I mentioned in gmail,when I built ecere sdk from the snapshot,I encountered the same issue regarding opengl issue. Code: Select all
|
Author: | jerome [ Thu Aug 18, 2011 3:21 am ] |
Post subject: | Re: Bug in the example? |
Hi Sam, I've attached to this post my version of glext.h , this might help for the build? It goes into C:\Program Files (x86)\ECERE SDK\mingw\include\GL That is the one I had included in the old full installer which includes MinGW with GCC 4.3 alpha. Please find here my current binaries. You should be able to just drop them in place to replace your current binaries. You'll notice a new dark color scheme and native window decorations (You can always revert that to the previous look with a few tweaks in the IDE's source code, at the top of CodeEditor.ec. Let me know if you're having trouble doing so) I have worked a fix for that hotKey crash, it turned out to be a pretty deep problem which is now solved. Thanks again! I haven't done extensive testing yet so it might break something else, please let me know if you see anything wrong. Please let me know how these new binaries work for you, and if you have any problem with them. About MinGW, here are the versions I have installed right now: gcc (GCC) 4.4.0 GNU ld (GNU Binutils) 2.21 GNU Make 3.81 GNU gdb 6.8 mingwrt-3.18 w32api-3.17-2 You can find most of these from within: http://sourceforge.net/projects/mingw/f ... aseSystem/ For a few packages you'll have to go up to http://sourceforge.net/projects/mingw/files/MinGW/ (e.g. make, and I think with GCC 4.4 you might need those extra libraries like gmp, intl, iconv, mpfr... not sure if I'm missing any) Once we have an IDE a bit more stable, we plan to a new installer with an updated MinGW again. (I realize our current installer can't even open the new project files, it's quite obsolete! ) That's what the 0.44 release and the upcoming 0.44pre2 is all about. All the best, Jerome |
Author: | samsam598 [ Thu Aug 18, 2011 4:24 am ] |
Post subject: | Re: Bug in the example? |
Hi Jerome, Thanks for your great help! Pity I still can not build SDK with your gl header,same error;nor can I revert the IDE to previous color scheme. Seeking your help on the second issue since I have updated IDE so I think we can get back the first issue some time later. Thanks and regards, Sam |
Author: | jerome [ Thu Aug 18, 2011 4:36 am ] |
Post subject: | Re: Bug in the example? |
About your ecere build errors, You are really not picking up the glext.h header I posted. In your path the only potential path towards GCC is this CodeLite. Did you put glext.h inside that include\GL\ folder ? By the second issue, I assume you mean you want to revert the color scheme? Where are you building the IDE from? If you open up sdk/ide/ide.epj in the IDE, under src/designer you will find CodeEditor.ec. At the top of that file you will see a block of commented code. Simply uncomment that code, and comment the following block. It should then look like this: Code: Select all
Jerome |
All times are UTC-05:00 | Page 1 of 2 |
Powered by phpBB® Forum Software © phpBB Limited |