Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

ZureTz/os-web-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

os-web-server

Requirements

1. Install glib

sudo pacman -S glib

2. Edit .clangd.template then rename it to .clangd

Replace Include path to yourselves (this differs by operating systems)

  • Run pkg-config --cflags glib-2.0 to see include paths to add.
  • Paste given path to .clangd file like below: (the specific inlude paths may differ from below).
  • Note that what you only need to do is to replace the path AFTER the -std=gnu17, and BEFORE [] ends.
If:
PathMatch: 
  - .*\.c
  - .*\.h

CompileFlags:
  Add: [
    -xc, 
    -std=gnu17, 
    -I/usr/local/include/glib-2.0, 
    -I/usr/local/lib/aarch64-linux-gnu/glib-2.0/include, 
    -I/usr/local/include
  ]
  Compiler: gcc
    

Then rename .clangd.template to .clangd.

Run the program

make
./webserver 8088 web/

About

Simple webserver for my course.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages