mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-03-30 14:00:16 +02:00
12 lines
285 B
C
12 lines
285 B
C
//clang -dynamiclib lib1.c -o $PWD/lib1.dylib -L. -l2
|
|
#include <stdio.h>
|
|
#include "lib1.h"
|
|
#include "lib2.h"
|
|
|
|
void callLib1Function() {
|
|
printf("Now, wer are in lib1.dylib code.\n");
|
|
printf("Press enter to enter lib2.dylib function\n");
|
|
getchar();
|
|
callLib2Function();
|
|
}
|