Skip to content
/ let-c Public

light simple build environment for straigh-in C/C++ results. mirror of git://repoz.nekodune.net/let-c.git

Notifications You must be signed in to change notification settings

jd-code/let-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Let-C

Let-C is a set of headers, templates and utilities for programming tutorials.

By combining libSDL, simple graphical primitives, and some open-source utilities tuning, Let-C permits writing a few lines of codes and have them compiled and launched in one key-press.

Let-C brings back the ease of simple programming that old pre-windows, pre-linux, pre-mac machines used to provide ...

Example

Typing "let-c" invokes a crafted instance of the "nano" text-editor.

The following source is typed in :

int main (void) {
    initscreen (640, 400);

    int i;
    for (i=0 ; i<400 ; i+=20) {
        setcolor (255-i,255-i/2,0);
        line (i,0, 0,400-i);
        line (399,i, 400-i,399);
    }

    while (mousek() == 0) {}    // wait for a mouse-click
    return 0;
}

at F12 key-press, all is compiled, linked, and the result window pops up :

result

Dependencies

Let-C depends on several state-of-the-art open-source softwares :

  • gcc - the GNU Compiler Collection, mostly the C/C++ compiler and the linker (for it's ability to wrap functions).
  • libSDL - the Simple DirectMedia Layer, the version 1.2 is used, and the choice of 2.0 is underway.
  • OpenGL - The 3D graphic library is used internally, it is not planned to switch to another rendering method.
  • nano - The GNU nano text editor is used, a patched version can be used for a better handling of compiler's error messages.
  • matcalc - A small set of 3d math templates.

Packaged Versions

Debian

packages for wheezy and squeeze are available via those repositories, gpg-signed with that key

  • wheezy

    deb http://archive.disjunkt.com/debian/ wheezy main

  • squeeze

    deb http://archive.disjunkt.com/debian/ squeeze main

ubuntu

packages for ubuntu releases trusty, precise and lucid are available via launchpad/Let-C.

adding the Let-C ubuntu repository to you system :

sudo add-apt-repository ppa:nekodune/let-c

Installation from sources

Using packages is probably the best way for installing let-C (see above), however the sources can be compiled and installed after some usual autotool invocations :

> cd dist
> (g)libtoolize --copy && aclocal && autoheader && automake --add-missing && autoconf
> ./configure -prefix=/usr/local
> make
# make install

some release archives, ready to configure without autotools, are also avalaible in the debian-src directory

License

GPL-V2

About

light simple build environment for straigh-in C/C++ results. mirror of git://repoz.nekodune.net/let-c.git

Resources

Stars

Watchers

Forks

Packages

No packages published