EmbDev.net

Forum: ARM programming with GCC/GNU tools Problem with stdint.h inclusion


Author: Olivier Desenfans (olivierd)
Posted on:

Rate this post
0 useful
not useful
Hello,

I am currently trying to put up in place an Eclipse-based tool chain on 
my Mac with this tutorial:

http://salvatoremenendez.blogspot.com/2011/08/mac-...

which seems quite nice. Everything went fine, I installed Eclipse 3.7.0, 
OpenOCD 0.4 and yagarto 4.6 but one thing doesn't work.

As the tutorial tells on page 3, i use a project coming from the yagarto 
website to test the toolchain. The thing is, the line #include 
<stdint.h> in the main file (and other files as well)  produces a 
"Undefined reference to <stdint.h>" warning. Of course this results in a 
lot of errors which is quite troubling.

I'm not really a professional in the use of makefiles but I gave it a 
try, I can't find the solution to this. So if anyone knows how to solve 
this, I thank you in advance!

Author: Helfer (Guest)
Posted on:

Rate this post
0 useful
not useful
> The thing is, the line #include
> <stdint.h> in the main file (and other files as well)  produces a
> "Undefined reference to <stdint.h>" warning.

Maybe the path to the include files in the toolchain is not set 
properly.

1) Check with file search whether the files are on your harddisk in one 
(or more) folders of the yagarto toolchain

If not you have another problem

2) Check the setting of the include paths and compiler options in 
Eclipse

http://help.eclipse.org/galileo/topic/org.eclipse....
http://www.alteraforum.com/forum/showthread.php?t=19940

If you are not sure, you can show us the commandline when invoking the 
compiler as well as the messages during the build (compile) action.

Author: Olivier Desenfans (olivierd)
Posted on:

Rate this post
0 useful
not useful
Thanks for the help, I think it worked! I used the general include 
repertory in yagarto, it removed all of the warnings and errors due to 
data types. I'll see if it worked when I get my evaluation board on 
monday, but it seems to compile fine!

Thanks!

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.