Problem with stdint.h inclusion

OP #2348253
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
> 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.
OP #2350010
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

A question of your own? This thread is over 15 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

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.