[En-Nut-Discussion] nutos conf stdint.h missing

Harald Kipp harald.kipp at egnite.de
Thu Aug 1 13:45:33 CEST 2013


Hi Joerg,

On 01.08.2013 08:46, Lamprecht, Joerg wrote:
> still it doesn't work. I added all values given by avr-cpp -Wp,-v to my PATH Enviroment Variable. Still the compiler is missing stdint.h. For a test I copied the stdint.h from C:\WinAVR-20100110\avr\include to C:\ethernut-5.1\nut\include. I could compile now, but get warnings: 

Complete misunderstanding. The paths given by avr-cpp -Wp,-v are include
paths, not paths to find executables. I only wanted to know what the
output is.

Moving include files around may make things worse. Instead we need to
figure out, that the right compiler version is called and that it uses
the right include paths.

OK, do the following:

* open a command line window.
* cd to the nutbld directory that you created with the Configurator
* add the paths to your compiler, e.g.
 set PATH=C:\WinAVR\bin;C:\WinAVR\utils\bin;%PATH%
* run "avr-gcc --version" and "avr-cpp -Wp,-v"
* post the complete cmds and responses to this list (text via cut and
copy, no screenshot)
* run "make clean all install"
* if that ends with an error, post the error message to this list (not
the full dump, just the 2 or 3 lines containing the first error)

If that sequence fails in between, then post the output up to this point.

> I have an older Ethernut 1.3 Project from 2004, that is compiling without any hassle. But I have the Ethernut 2.1c Hardware, and need that project working with the changed NIC from 1.3 to 2.1. Maybe I should think about ordering a older hardware.

The old version used it's own integer types, while we later switched to
stdint.h, because it is standard and nowadays support by most libraries.
In that sense, the newer Nut/OS versions depend a bit more on the
library. But your case is so common, that it must work. It's just a
problem of your two avr-gcc versions installed on your hard disk. This
needs to be sorted out.

I usually have at least 10 different compiler versions installed. With
little care this provides no problems.

Regards,

Harald




More information about the En-Nut-Discussion mailing list