In your project's root path, create an empty file named main.c
.
Once you have downloaded the latest release of oop-gcc.tar.gz
,
Extract the archive, and place the oop
directory at your project's root path.
.
├── main.c
└── oop
├── AnonymousObject
│ ├── AnonymousObject.h
│ ├── AnonymousObject.r
│ └── BitDefines.r
├── Atomic
│ ├── Atomic.h
│ ├── AtomicDoubleRValue.h
│ ├── AtomicInteger.h
│ ├── AtomicIntegerRValue.h
│ ├── AtomicLValue.h
│ ├── Func.h
│ ├── LValueDefines.h
│ ├── RValueDefines.h
│ └── Random.r
├── Object
│ ├── AnonymousPointer.r
│ ├── AutoDestructable.r
│ ├── Bool.h
│ ├── Concat.h
│ ├── Destructable.r
│ ├── InvocationStatus.r
│ ├── Legacy_AllocationTable.r
│ ├── Legacy_AllocationTableList.r
│ ├── Legacy_AtomicFreer.r
│ ├── Legacy_List.r
│ ├── Legacy_MemberList.r
│ ├── Legacy_Node.r
│ ├── Legacy_Object.r
│ ├── Legacy_ObjectComponent.r
│ ├── Legacy_StringObjectContainerEntry.r
│ ├── Object.h
│ ├── Object.r
│ ├── ObjectDefines.r
│ └── Quote.h
├── oop.h
├── oop.a
└── oop32.a
-
Build your program with
gcc
:gcc main.c Circle.c -L. oop/oop.a
-
Run the program:
./a.out