Problem with stdint.h inclusion

OP #2348253
Rate this post
• ▲ 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-os-eclipse-openocd-stm32-arm-cortex.html

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!
Guest #2348871
Rate this post
• ▲ 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.cdt.doc.user/tasks/cdt_t_proj_paths.htm
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.

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.