This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ethernet Driver hooking problem


Cusson, Pascal wrote:
Hi everyone,
   I am having a hard time compiling my Ethernet driver. For those of you who have done before, I could surely use a few good pointers.
[snip]
[pcusson@pcusson-linux src]$ make
gcc -c -I/home/pcusson/simall/install/include ETH_Driver.c -L/home/pcusson/simall/install/lib -Ttarget.ld -nostdlib
Um, this is your native GCC, not powerpc-eabi-gcc ! And in any case you aren't defining __ECOS on the compile line (-D__ECOS) as described in the docs. It's better to copy an existing eth driver and then problems like that are prevented before they happen :-).

Jifl
--
eCosCentric http://www.eCosCentric.com/ <info@eCosCentric.com>
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine


--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]