Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build from c #29

Closed
Spl01ter opened this issue Jan 28, 2021 · 2 comments
Closed

Build from c #29

Spl01ter opened this issue Jan 28, 2021 · 2 comments

Comments

@Spl01ter
Copy link

How do you build from C code on MacOS?

@Spl01ter
Copy link
Author

$ make
x86_64-w64-mingw32-gcc -s -Wall -I ./include -mwindows -DWIN_MAIN ./src/aes.c ./src/crypto.c ./src/decode.c ./src/encode.c ./src/main.c ./src/sha256.c ./posix_src/http.c -lws2_32 -o ./tc2_client.exe
make: x86_64-w64-mingw32-gcc: No such file or directory
make: *** [win] Error 1

@Spl01ter
Copy link
Author

$ make posix
gcc -s -Wall -I ./include ./src/aes.c ./src/crypto.c ./src/decode.c ./src/encode.c ./src/main.c ./src/sha256.c ./posix_src/http.c -o ./tc2_client.out
ld: warning: option -s is obsolete and being ignored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant