Try to remove the ';' in the end of "+ (const char *) classStringValue; "
Yen-Ju
On 12/11/05, Carlos Adriano Portes <[EMAIL PROTECTED]> wrote:
> Hi again
>
> I hope I am not disturbing you, what are bundles, I am already using
> WindowMaker That's ok!,
> and could you help me with the problem below please, for you I think it is
> easy!
>
> ________________________________
>
>
> Hi
>
> Now I think that I am able to help the project, do you belong to the
> project (etoile)?, I am a Delphi programmer and I am trying to learn
> Objective-C but with no success until now, the examples of the site
> www.gnustep.org do not work, when I try to compile I always have the same
> message:
>
> Making all for tool LogTest...
> Compiling file teste01.m ...
> teste01.m:6: error: syntax error before '{' token
> make[1]: ** [shared_obj/teste01.o] Erro 1
> make: ** [LogTest.all.tool.variables] Erro 2
>
> the example is the following:
>
> #include <stdio.h>
> #include <Foundation/Foundation.h>
>
> @interface Test
> + (const char *) classStringValue;
> {
> return "This is the string value os the Test class";
> }
> @end
>
> int main(void)
> {
> printf("%s\n", [Test classStringValue]);
> return 0;
> }
>
> and the make file is the following:
>
> include $(GNUSTEP_MAKEFILES)/common.make
> TOOL_NAME = LogTest
> LogTest_OBJC_FILES = teste01.m
> include $(GNUSTEP_MAKEFILES)/tool.make
>
>
> exactly like the tutorial :-)
>
> If you could help me I would be very pleased...
>
>
> _______________________________________________
> Etoile-dev mailing list
> [email protected]
> https://mail.gna.org/listinfo/etoile-dev
>
>
>