Skip to content

在mac上,make失败,如何解决? #6

@luckypoem

Description

@luckypoem

hi.
我之前已用brew install libev安装了libev.

yudeMacBook-Air:mptunnel brite$ ls
LICENSE client.sample.conf rbtree.c
Makefile linklist.h rbtree.d
README.md mptunnel.c rbtree.h
README.zh_CN.md mptunnel.d server.c
buffer.h mptunnel.h server.d
client.c net.c server.h
client.d net.d
client.h net.h
yudeMacBook-Air:mptunnel brite$ make
gcc -g -Wall -I/usr/include/libev -c -o client.o client.c
In file included from client.c:17:
./mptunnel.h:114:6: error: conflicting types for 'encrypt'
void encrypt(char* buf, int size, uint32_t);
^
/usr/include/unistd.h:544:7: note: previous declaration is here
void encrypt(char *, int) __DARWIN_ALIAS(encrypt);
^
1 error generated.
make: *
* [client.o] Error 1
yudeMacBook-Air:mptunnel brite$

tks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions