QDOS gcc made easy (docker stylee)

Anything QL Software or Programming Related.
User avatar
XorA
Gold Card
Posts: 411
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

QDOS gcc made easy (docker stylee)

Postby XorA » Fri Sep 15, 2017 6:24 pm

Create a file hello.c

Code: Select all

#include <stdio.h>

int main(int argc, char **argv)
{
    printf("Hello\n");
}


run docker like so

Code: Select all

docker pull xora/qdos-gcc
docker  run -v $PWD:/build -w /build -u $USER xora/qdos-gcc qdos-gcc -o hello hello.c


and you should have hello as a QDOS executable.

This is my first play with docker so please let me know any problems.


User avatar
XorA
Gold Card
Posts: 411
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: QDOS gcc made easy (docker stylee)

Postby XorA » Fri Sep 15, 2017 7:49 pm

Fixed image now so -w argument is no longer needed.



Return to “Software & Programming”

Who is online

Users browsing this forum: No registered users and 5 guests