Developers' Area
| |
Not signed in (Sign In)

Vanilla 1.1.2 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorxvc
    • CommentTimeNov 22nd 2007
     
    Hi.

    I installed ecere on a windows 2000 SP 4 machine tonight. It runs a form ok but when I try to run a console app I get the following message:

    ..\..\..\..\..\Program Files\ECERE SDK\mingw\lib\libmingw32.a(main.o):main.c:(.text+0x106): error: undefined reference to `WinMain@16'

    collect2: ld returned 1 exit status

    Any ideas?

    Thanks
    •  
      CommentAuthorjerome
    • CommentTimeNov 22nd 2007
     
    Hi there...

    I would need to know what you're doing exactly...

    Could you post your .eC and .epj files?

    To make a console application you would do like this:

    class MyApp : Application
    {
    void Main()
    {

    }
    }

    Say, in a test.ec
    And you you check "Console Application" in the projects settings.
    If you're using eC, you need to link with either the ecere or ecereCOM (minimal library for coding in eC, ~100k) library.

    Try to compile the HelloWorld application in the samples.

    HelloWorld.exe (Debug) - no error, no warning

    It works fine here...