How to link ANSI C and Plan9 C code together ?
I'm trying to use an ANSI C library (picohttpparser) in a Plan 9 C project (i.e. main function is implemented in Plan9 C). The output of mk is below:
7c -FTVw main.c
pcc -c picohttpparser.c
7l -o 7.out main.7 picohttpparser.7
_callmain: redefinition: _callmain
(555) TEXT _callmain+0(SB),R1,$296
mk: 7l -o ... : exit status=7l 17932: error
How should I go about resolving this ?
Thanks!