<p dir="ltr">Ah, -I and CFLAGS it is then. That'll teach me to read posts properly and not just skim them! :-)</p>
<p dir="ltr">I started using Eclipse for Java, but I moved to using Netbeans as I prefer it, but Eclipse with CDT is a grest C/C++ IDE and the RTEMS plug in makes RTEMS development more productive than vi. I don't really know of an alternative iif you want an IDE for RTEMS, but that may be just because I've not looked. </p>
<p dir="ltr">Regards</p>
<p dir="ltr">Simon</p>
<div class="gmail_quote">On 29 Jan 2014 23:36, "Nick Withers" <<a href="mailto:nick.withers@anu.edu.au">nick.withers@anu.edu.au</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, 2014-01-29 at 23:31 +0000, Simon Williams wrote:<br>
> Wouldn't thst be -L for the lbrary path? The -l option is usef to<br>
> specify a library.<br>
><br>
> Also, linker flags are usually in LDFLAGS, CFLAGS is for compiler<br>
> flags. It does of course depend on your Makefile.<br>
<br>
It's include paths he's after, which are for the compiler.<br>
<br>
> I would recommend Eclipse. It won't do everything for you, but it can<br>
> help by pointing the way!<br>
<br>
I've heard a lot of good things about Eclipse. I've got a personal peeve<br>
against Java and that's really all that's kept me from trying it!<br>
<br>
> Regards<br>
><br>
> Simon<br>
><br>
> On 29 Jan 2014 22:18, "Nick Withers" <<a href="mailto:nick.withers@anu.edu.au">nick.withers@anu.edu.au</a>> wrote:<br>
> On Wed, 2014-01-29 at 22:29 +1300, James Fitzsimons wrote:<br>
> > Thanks Andrei,<br>
> ><br>
> ><br>
> > I'm using a very plain vanilla environment at the moment.<br>
> Ubuntu 13.10<br>
> > with tool chain built using rtems source builder.<br>
> ><br>
> ><br>
> > I'm using the template makefile for my test application, and<br>
> am just<br>
> > running make directly from bash.<br>
> ><br>
> ><br>
> > No IDE or fancy build environment yet!<br>
><br>
> I'd've said the RTEMS'provided Makefiles (there are a number<br>
> of them,<br>
> chained together) are pretty fancy... But then, I have trouble<br>
> with just<br>
> one Makefile :-P<br>
><br>
> Anyway, try:<br>
> CFLAGS+=-I/bam/headers<br>
><br>
> > Cheers,<br>
> > James<br>
> ><br>
> ><br>
> > On 29 January 2014 17:01, Andrei Chichak <<a href="mailto:groups@chichak.ca">groups@chichak.ca</a>><br>
> wrote:<br>
> > I believe what Sebastian is referring to is the<br>
> environment<br>
> > that you are using for your compiles. In my case, I<br>
> am using a<br>
> > Mac and Eclipse, I set <C/C++ Build><Settings><Tool<br>
> > Settings><RTEMS C Compiler><Preprocessor><Include<br>
> Paths (-I)>.<br>
> ><br>
> > Your milage will vary, but if you tell us what you<br>
> are<br>
> > driving, there may be someone here that can help.<br>
> ><br>
> > Andrei<br>
> ><br>
> ><br>
> > On 2014-January-28, at 2:11 PM, James Fitzsimons<br>
> > <<a href="mailto:james.fitzsimons@gmail.com">james.fitzsimons@gmail.com</a>> wrote:<br>
> ><br>
> > > Hi Sebastian,<br>
> > ><br>
> > > Thanks for your reply.<br>
> > ><br>
> > > Ideally I was hoping to us the -I option to<br>
> specify the<br>
> > header file location, I just can't quite figure out<br>
> where to<br>
> > add that into the RTEMS makefile structure. Looking<br>
> at the<br>
> > make/README I can see a good example of how to link<br>
> in other<br>
> > libraries using LD_LIBS, but there's nothing about<br>
> including<br>
> > other header files.<br>
> > ><br>
> > > Apologies if I am missing something obvious!<br>
<br>
--<br>
Nick Withers<br>
<br>
Embedded Systems Programmer<br>
Department of Nuclear Physics, Research School of Physics and Engineering<br>
The Australian National University (CRICOS: 00120C)<br>
<br>
</blockquote></div>