File tree Expand file tree Collapse file tree
demos/video/chapel-webcam Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ CPP_LDFLAGS = -Llib -lsmol -L$(CHPL_RUNTIME_LIB)/darwin/llvm/arm64/cpu-native/lo
5151
5252# $(CHPL_LINKER) $(CHPL_CFLAGS) -o main main.cpp $(CHPL_LDFLAGS)
5353
54- maincpp.o : main.cpp
54+ maincpp.o : main.cpp smol_wrapper.h
5555 $(CHPL_COMPILER ) $(CHPL_CFLAGS ) -fPIC main.cpp -o maincpp.o $(CHPL_LDFLAGS )
5656 $(CHPL_COMPILER ) $(CHPL_CFLAGS ) -fPIC main.cpp -o maincpp $(CHPL_LDFLAGS )
5757
Original file line number Diff line number Diff line change 22#include "wctype.h"
33#include "ctype.h"
44
5- #ifdef __cplusplus
6- extern "C" {
7- #endif
85
96void chpl__init_smol (int64_t _ln ,
107 int32_t _fn );
118int64_t square (int64_t x );
129int64_t sumArray (chpl_external_array * a );
1310void printArray (chpl_external_array * a );
14-
15- #ifdef __cplusplus
16- }
17- #endif
Original file line number Diff line number Diff line change 1- #include " lib/smol .h"
1+ #include " smol_wrapper .h"
22
33int main (int argc, char * argv[]) {
44 chpl_library_init (argc, argv);
Original file line number Diff line number Diff line change 1+ #pragma once
2+
3+ #include "stdchpl.h"
4+ #include "wctype.h"
5+ #include "ctype.h"
6+
7+ #ifdef __cplusplus
8+ extern "C" {
9+ #endif
10+
11+ #include "lib/smol.h"
12+
13+ #ifdef __cplusplus
14+ }
15+ #endif
You can’t perform that action at this time.
0 commit comments