I tried to install ffmpeg manually using source code checked out from ffmpeg website but , after installation I tried to compile another code which uses this library, there is an error message “common.h:154: error: ‘UINT64_C’ was not declared in this scope”. So, I tried to re-install again by using
CXXFLAGS=-D__STDC_CONSTANT_MACROS ./configure
before make and make install. Unfortunately, I found the same error message when I compiled my code.
I search in google for a while and I found this link. I followed Eric’s suggestion by adding
#ifdef __cplusplus
#define __STDC_CONSTANT_MACROS
#ifdef _STDINT_H
#undef _STDINT_H
#endif
# include <stdint.h>
#endif
to my common.h file. Then I tried ./configure, make and make install. Once I compiled my code, there is no error message anymore.
Thanks you Eric : )
Thanks a million mate
Solved my problem when I was installing Gazebo
By: SKS on February 24, 2011
at 12:54 am
Hola tengo el mismo problema que tu….. en cual de las clases tengo que copiar los includes
Escribe texto o la dirección de un sitio web o traduce un documento.
Cancelar
Escuchar
Leer fonéticamente
traducción del español al inglés
Hello
I have the same problem as you …..
which of the classes I have to copy the includes
I would appreciate your help.
By: Luis Angel on March 29, 2011
at 10:05 am
Hello
I have the same problem as you …..
which of the classes I have to copy the includes
I would appreciate your help.
By: Luis Angel on March 29, 2011
at 10:05 am
Works for me too, gazebo’s make it’s done
By: Jozias on August 13, 2011
at 9:19 pm
[...] to fix this: “common.h:154: error: ‘UINT64_C’ was not declared in this scope” is described here. I chose to actually change the common.h and then rebuild. Share this:TwitterFacebookLike [...]
By: Fix UINT64_C error | Never ask again on January 16, 2012
at 6:22 pm