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

make it compatible with TCC #4

Closed
CardealRusso opened this issue Mar 17, 2023 · 5 comments
Closed

make it compatible with TCC #4

CardealRusso opened this issue Mar 17, 2023 · 5 comments

Comments

@CardealRusso
Copy link

CardealRusso commented Mar 17, 2023

tcc: error: library 'ws2_32' not found

@CardealRusso CardealRusso closed this as not planned Won't fix, can't repro, duplicate, stale Mar 18, 2023
@CardealRusso CardealRusso reopened this Mar 18, 2023
@CardealRusso
Copy link
Author

i dont get it. i can compile the c example with tcc but on nim i get ws2 not found

@neroist
Copy link
Contributor

neroist commented Mar 18, 2023

Do you have libws2_32.a on your system? That seems to be the issue.

@AlbertShown
Copy link

The TCC Make file in WebUI use -lws2_32 to link the Windows Socket library. And it seems bindings.nim also use -lws2_32.

You should download the latest mob development branch of TCC, as the official one was abandoned a while ago. And build it using build-tcc.bat.

On the other hand, if you can build WebUI using TCC, there is probably something wrong with bindings.nim.

@CardealRusso
Copy link
Author

The TCC Make file in WebUI use -lws2_32 to link the Windows Socket library. And it seems bindings.nim also use -lws2_32.

You should download the latest mob development branch of TCC, as the official one was abandoned a while ago. And build it using build-tcc.bat.

On the other hand, if you can build WebUI using TCC, there is probably something wrong with bindings.nim.

yes indeed i can compile the c99 example with tcc without any problem
im already using the mob version of tcc

@AlbertShown
Copy link

AlbertShown commented Mar 23, 2023

Thank you

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

3 participants