EmbDev.net

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


von Olivier D. (olivierd)


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!

von Helfer (Guest)


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.

von Olivier D. (olivierd)


Rate this post
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!

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.