Skip to content

How to compile #2

@fabriziotappero

Description

@fabriziotappero

hello,
I'd like to cross compile this web server for a riscv64 architecture but I have some problems. Current instructions are a bit unclear to me.

HOWEVER you must provide functions to access your sockets. A Posix/Berkeley sockets example is provided (as well as a WinSock example). Therefor you must be able to compile on a Posix system with Berkeley sockets.

what does that mean?

when you say:

So to compile a basic server:
gcc main.c SocketsCon.c FileServer.c WebServer.c -o example.exe

where should I place myself? in src/ there is a main.c but there is not FileServer.c so.. this command will not work. If I move to the hello world example this command is also incorrect. If I use the one on the bat file, I do manage to cross compile it but when I run it I get:

# sh hello_world_server 
hello_world_server: line 3: syntax error: unexpected word (expecting ")")

If would be great if you could clarify. Thanks a lot

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