- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
I am using NIOS II EDS 9.1 to generate a sample project from template. I am able to build sample project. Then i added below include file. # include <stdint.h> int main () { uint32_t test; } I am getting below error and warnings: error : `uint32_t' undeclared (first use in this function) warning: stdint.h: No such file or directory I have verified that stdint.h is present in system generated includes folder in "C:\altera\91\quartus\bin\cygwin\usr\include " How to resolve this problem- Etiquetas:
- Nios® II Embedded Design Suite (EDS)
Enlace copiado
2 Respuestas
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
The problem is that some compiler often automatically export names defined in various headers or provided types before such standards were in place.
Now, I said "may not always work." That's because the cstdint header is part of the C++11 standard and is not always available on current C++ compilers (but often is). The stdint.h header is the C equivalent and is part of C99.- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
You can try using <alt_types.h>, which provides equivalent types to those in <stdint.h>, but prefixed with 'alt_' so 'int8_t' becomes 'alt_8' and 'uint32_t' becomes 'alt_u32'.

Responder
Opciones de temas
- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla