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

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now