[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Howto write GNUmakefile.preamble with using C API
From: |
Nicola Pero |
Subject: |
RE: Howto write GNUmakefile.preamble with using C API |
Date: |
Tue, 22 Jul 2008 12:01:53 +0200 (CEST) |
> If you want to migrate it to Objective-C, then rename your test.c file to
> test.m, and slightly modify your GNUmakefile:
> include $(GNUSTEP_MAKEFILES)/common.make
> TOOL_NAME = test
> test_OBJC_FILES = test.m
> ADDITIONAL_OBJCFLAGS += $(shell mysql_config --cflags)
> ADDITIONAL_TOOL_LIBS += $(shell mysql_config --libs)
> include $(GNUSTEP_MAKEFILES)/tool.make
>
> It doesn't work
> [...]
> test.c:1:19: warning: mysql.h: No such file or directory
> [...]
Something is going wrong here - it was supposed to be compiling test.m here,
not test.c ;-)
I suggest when you try to switch to Objective-C, create a new empty directory,
and put only test.m and your GNUmakefile in there. Make sure to do all changes
to the GNUmakefile, then try again.
Let me know if that works :-)
Thanks