flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
kerr
hello friends.
how do you know use tinycc call WSAStartup? _________________ I hope we will be good friends. |
|||
![]() |
|
kerr
I use tcc test.c wsock.def command.
But I ran it to show errors. Code: #include <stdio.h> int main() { WSADATA wsa={0}; WSAStartup(MAKEWORD(2,2),&wsa); return 0; } |
|||
![]() |
|
kerr
Hi friends .
can you help me ? i use compiler is tcc . but i call windows winsock function is show error. Oh this is that's too bad. |
|||
![]() |
|
revolution
It would help if you describe the error you get? Is it from the compiler, or at runtime? What is the message?
|
|||
![]() |
|
kerr
test.c:4: error: 'WSADATA' undeclared.
|
|||
![]() |
|
revolution
I'd expect you need to include the winsock library:
Code: #include <winsock.h> ;// <--- I don't know the actual filename, but you'll need something like this |
|||
![]() |
|
kerr
this compiler is tinycc .
I don't know how to use it. |
|||
![]() |
|
kerr
tinycc is no winsock library.
is using tcc winsock.def test.c command compile. |
|||
![]() |
|
kerr
|
|||
![]() |
|
alkap
kerr wrote: this is tinycc website url https://bellard.org/tcc/. You want to make sure you've set up your tcc environment on Windows as described in this doc: http://repo.or.cz/tinycc.git/blob_plain/HEAD:/win32/tcc-win32.txt Here are also examples of C programs for Windows: http://repo.or.cz/tinycc.git/blob_plain/HEAD:/win32/examples |
|||
![]() |
|
kerr
alkap wrote:
yeah.. This does not tell you how to use it _________________ I hope we will be good friends. |
|||
![]() |
|
alkap
kerr wrote:
Can you try the method posted here: https://stackoverflow.com/questions/4069770/tiny-c-compiler-tcc-and-winsock/9351171#9351171 and see if that helps? |
|||
![]() |
|
kerr
here is Use to export definitions from the DLL file using the command line.
Sorry, I've already seen it. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.