Ecere SDK/eC Forums • View topic - The first program - the first error - solved




Ecere SDK/eC Forums

Ecere Developers Community

The first program - the first error - solved

Help understanding and fixing compiling errors.

The first program - the first error - solved

Postby SJD » Mon Oct 28, 2013 6:07 pm

Hello guys,

I am pretty new here :)

Today when I was trying to build my very first eC-program:
Code: Select all
class HelloApp : Application
{
   void Main()
   {
      printf("hello, world");
   }
}


I've received this series of message (I colored the substantial only):
Code: Select all
Default Compiler
Rebuilding project hello using the Debug configuration...
Target and object files deleted
Generating symbols...
hello.ec
Compiling...
hello.ec
hello.c
Writing symbol loader...
hello.main.ec
hello.main.ec
hello.main.c
%%I was unexpected at this time.
C:/Users/Svatopluk/AppData/Roaming/Ecere SDK/Samples/hello/hello-Debug.Makefile:100: recipe for target 'obj/debug.win32/hello.exe' failed
Fatal Error: child process terminated unexpectedly
 


So, I don't know what am I omitted :roll: - can you help me, please ? Thanks !

Svat
Last edited by SJD on Tue Oct 29, 2013 9:41 am, edited 1 time in total.
SJD
 
Posts: 9
Joined: Mon Oct 28, 2013 4:25 pm

Re: The first program - the first error

Postby jerome » Mon Oct 28, 2013 6:26 pm

Hi Svat,

First let me say you're not the first to run into this error, and you've done nothing wrong.

The truth is the Windows installer is in a pretty sad state right now, and this is why we're rushing to get the next release (0.44.10) ready.

I'm guessing you've already installed from the 0.44.08 Windows installer.
Here's what you need to do to work around the problem:

1. Replace mingw32-make.exe in C:\Program Files\Ecere SDK\tdm\bin by the one found in

http://sourceforge.net/projects/mingw-w ... d%29/make/

under the bin_ix86/ folder

This fixes issues with the mingw32-make version that was packaged in the 0.44.08 installer .

2. Build the SDK from source:

a) Either

Use msysgit ( https://code.google.com/p/msysgit/downl ... 130601.exe ) to clone the sdk with: git clone git://github.com/ecere/ecere-sdk.git

or

Download and extract the tarball from https://github.com/ecere/ecere-sdk/tarball/master

b) From a command prompt (cmd), run mingw32-make inside the ecere-sdk folder (Where you have folders like 'compiler', 'deps', ecere' and the Makefile, LICENSE, INSTALL README, etc.)

c) From an elevated command prompt (cmd, Right Click/Run As Administrator), run mingw32-make install .

This should update the SDK to the very latest and greatest which no longer suffers from these issues.

For those who have not installed with an installer yet, you would need to first install a GCC.
I'd recommend MinGW-w64 packaged by TDM, GCC version 4.7 : http://sourceforge.net/projects/tdm-gcc ... e/download
(But note that you would still need to replace the mingw32-make by the version linked above)

I hope this helps, and sorry again for the broken installer...
Please let me know if you have any further problems.

Regards,

-Jerome
jerome
Site Admin
 
Posts: 622
Joined: Sat Jan 16, 2010 11:16 pm

Re: The first program - the first error

Postby SJD » Tue Oct 29, 2013 2:54 am

Hi Jerome,

Thank you very much for your advice - it's a complete tutorial :) I'll go step by step according to it !

Best Regards,
Svat
SJD
 
Posts: 9
Joined: Mon Oct 28, 2013 4:25 pm

Re: The first program - the first error - solved

Postby SJD » Tue Oct 29, 2013 9:57 am

Hi Jerome,

Wow ! Building this, building that, building other ... and in the end the SUCCESS ! Thank you again ! :D

Best Regards,
Svat
SJD
 
Posts: 9
Joined: Mon Oct 28, 2013 4:25 pm


Return to Compiler Errors

Who is online

Users browsing this forum: No registered users and 1 guest

cron