Let the light pierce through the darkness Close all old accounts, turn a new leaf Re-learn that old lesson of friendship Kill nor be killed, settle for lessening Amidst us of this fossilized hatred
connor naplója
programozással kapcsolatos okfejtések…
Perhaps that time has not come yet when our, Gods would listen to the beats in our hearts, peace and happiness spread their glow, perhaps we would have to force Mother Time?.
objc ubuntun
Az ember fia mivel múlassa szabad esti idejét mint olyan valami vad perverzióval, hogy objective c-ben ír ubuntu-n egy kis projectet? ![]()
Nosza nézzük mi kell hozzá!
Egyszerűség kedvéért most gcc-t fogunk használni llvm helyett. Mer’ az mindig kéznél van.
apt-get install libgnustep-base-dev
Csak ezt az egy csomagot kellett feltenni, egy könyvtárban létrehozni a main.m fájt és egy makefile-t.
main.m
#include
#include
@interface Hello
+ (const char *) Word;
@end
@implementation Hello
+ (const char *) Word;
{
return "Hello Word!";
}
@end
int main (void)
{
printf("%s\n", [Hello Word]);
return(0);
}
GNUmakefile
include $(GNUSTEP_MAKEFILES)/common.make
TOOL_NAME = hello
hello_OBJC_FILES = main.m
include $(GNUSTEP_MAKEFILES)/tool.make
Két parancs futtatása szükséges:
. /usr/share/GNUstep/Makefiles/GNUstep.sh
make
Ezek után ha mindent jól csináltunk akkor az obj/hello kiírja a stringet.
Leave a Reply
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
