Eclipse trouble

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi freaks, when I use the following function:

#include "F:\atmel-software-package-master\drivers\network\ethd.h"

ethd_get_mac_addr(board_get_eth(0), 0, mac_addr);

inside main on Eclipse it wors, but when I use it outside of main it fails to resolve the call...  I'm guessing its a Eclipse setting that I have wrong.  Any ideas?

 

This topic has a solution.
Last Edited: Wed. Oct 24, 2018 - 03:04 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Does it work in other functions ( than main() ) in the same file as main()?n Wondering if there is something unique about the file that contains main vs the other files?

 

Jim

 

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA http://www.orelectronics.net

Last Edited: Thu. Oct 18, 2018 - 10:13 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

it was a makefile error on my part

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Don't but drive letters or (usually) even path names in the #include - do that external using -I's because, otherwise this code is too tied to the specific layout on your own PC. If you shared this with someone else it's likely they won't have the same layout as you. In fact they probably won't have an "F:" at all.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Fianawarrior wrote:
it was a makefile error on my part

As you are working with an ARM package, perhaps moderator will move the thread to an appropriate forum.  Then, since you are using Eclipse, your programming will be better.

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.