Skip to main content

A new file format that makes C easier.

Project description

Libheader

lh

A file type that encapsualtes a header (.h), and a static library (.lib/.a)

should be able to be #include by normal C, but requires a special linker that can recognize a .lh file

Example

main.c

#include "sample/test.lh"

int main() {
    testfunc();
    return 0;
}

test.h

#include <stdio.h>
void testfunc();

test.c

#include "test.h"
void testfunc() { printf("Hello, World!\n"); }
  • makelh test.h test.c creates a test.lh
  • gcclh main.c --lh=test.lh -o test.exe compiles using the test.lh file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libheader-1.1.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

libheader-1.1.0-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page