public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: jon <jon.murphy@ipfire.org>
To: development@lists.ipfire.org
Subject: Mini build while experimenting with C programming?
Date: Sat, 21 Dec 2024 19:25:29 -0600	[thread overview]
Message-ID: <57FC3509-B2F7-4F9A-B83D-131180796AA7@ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 655 bytes --]

All,

Is there a way to compile a C program and not run the entire ipfire `make.sh build`.  And include the various ipfire `#include` items?

I am attempting to compile an `rpzctrl.c` file for the `rpz.cgi` webgui.  I am in the early stages of C programming and I am making lots of errors.  And so each iteration of C code takes 2-3 hours for a `make.sh build`.

I'd like to do something like:

```
gcc -I ./build_x86_64/usr/include rpzctrl2.c -o rpzctrl
```

I don't know which `include` files directory to reference so I just picked one.  But running gcc throws lots of errors.

Can you get me started?

Merry Christmas all,  
Jon



             reply	other threads:[~2024-12-22  1:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-22  1:25 jon [this message]
2024-12-22 10:17 ` Matthias Fischer
2024-12-23 11:23 ` Michael Tremer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57FC3509-B2F7-4F9A-B83D-131180796AA7@ipfire.org \
    --to=jon.murphy@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox