discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: undefined reference to `_WinMain@16' error!


From: Truls Becken
Subject: Re: undefined reference to `_WinMain@16' error!
Date: Sat, 18 Apr 2009 18:09:23 +0200

<jchiarelli@mac.com> wrote:
>
> Hi ,
> I am on windows trying to compile some object-c code usign GNUstep.
>
> I am getting the following eror:
>
> $ make
> This is gnustep-make 2.0.7. Type 'make print-gnustep-make-help' for help.
> Making all for tool test...
>  Linking tool test ...
> C:/GNUstep/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libmingw32.a(main.o):
> main
> .c:(.text+0xbd): undefined reference to `_WinMain@16'
> collect2: ld returned 1 exit status
> make[1]: *** [obj/test.exe] Error 1
> make: *** [test.all.tool.variables] Error 2
>
>
>
> My make file is basic:
>
>
> include $(GNUSTEP_MAKEFILES)/common.make
>
> TOOL_NAME = test
> LogTest_OBJC_FILES = test.m
>
> include $(GNUSTEP_MAKEFILES)/tool.make

You need to change the name of variable LogTest_OBJC_FILES to
test_OBJC_FILES so that it matches the tool name.

Cheers,
Truls




reply via email to

[Prev in Thread] Current Thread [Next in Thread]