The first program - the first error - solved

Help understanding and fixing compiling errors.
Post Reply
SJD
Posts: 9
Joined: Mon Oct 28, 2013 4:25 pm

The first program - the first error - solved

Post by SJD »

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
[color=#FF0000]%%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 [/color]  
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.
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: The first program - the first error

Post by jerome »

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
SJD
Posts: 9
Joined: Mon Oct 28, 2013 4:25 pm

Re: The first program - the first error

Post by SJD »

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

Post by SJD »

Hi Jerome,

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

Best Regards,
Svat
Post Reply