It’s worth checking out these troubleshooting methods when you get a new har * strcasestrconst char * const char declaration error on your PC.

When compiled with libfaac GCC you get:

g++-DHAVE_CONFIG_H -I. -I../.. -I../../include -Wall -g -O2 -MT 3gp.o -MD -MP -MF .deps/3gp.Tpo -c -o 3gp.o 3gp.cppContained in the file mp4common.h:29:0, from 3gp.cpp:28:mpeg4ip.h:126:58: Error: interesting operator "char* strcasestr(const char*, char*)"./usr/include/string const.h:369:28: error: old char* declaration ambiguity 'const strcasestr(const char*, const char*)'make[3]: *** [3gp.o] Error 1

The solution is to remove the strcasestr() declaration in commom/mp4v2/mpeg4ip.h (recommended

here

FAAC is an MPEG-4 encoder and therefore MPEG-2 AAC. We may need this when installing ffmpeg

When the list is compiled and installed, we may get the following error:

mpeg4ip.h:126: error: new assertion "char* strcastr(const char*, char*)"
/usr/include/string const.h:369: error: ambiguous old declaration â €˜const char* char*, strcasestr(const const char*)"
make[3]: *** [3gp.Error o] 1
make[3]: exit directory `/usr/src/ faac-1.28/common/mp4v2'
make[2]: *** [recursive] error 1
make[2]: output directory `/usr/src/faac-1.28/common'
make [1]: *** [recursive] error exiting 1
make[1]: web directory `/usr/src/faac-1.28'
make: *** * [all] error 2< /code>

For a quick fix, we can comment out the neighborhoods containing strcastr mpeg4ip. They will be in the public folder. Open the mpeg4ip.h file in a text manager and go to line 126.

#vim common/mp4v2/mpeg4ip.h 

#ifdef __cplusplus
extern "C"
#endif
char *strcasestr(const char *haystack, const char __cplusplus

#endif

error new declaration har* strcasestrconst char* const char

/*#ifdef *needle);
#ifdef __cplusplus
extern "C"
#endif
char *strcastr(const char *haystack, const char *needle);
#ifdef __cplusplus

#endif*/

I'm writing another C++ application and it's been a while since I implemented C++. I have a problem with this function:

error new declaration har* strcasestrconst char* const char

unsigned character* BuildArray(string integerString)    numIndexs int equals integerString.length() + 1;    unsigned character charArray[numIndexs];    /*      Iterates and stores all associated characters in a string in an array of unsigned characters.     */    for(int i = 0; you < numIndexes; i++)             if (i == 0)                      Table[0] = 0;                  different                      charArray[i] = integerString.at(i-1) 48; like        Output array (charArray);    unsigned char* returnValue is &charArray[0];    collect the return value;

This gives me an error: Ambiguity in the last declaration of 'unsigned char* BuildArray(std::string). I looked around and the other mail I was able to get was this:Error "New ambiguous name"Phenomenon for a template method in a functional template class

But the answer wasn't clear enough for me. So I don't know how to deal with it.

䔎123行开始修改æ¤æ–‡ä”¶mpeg4ip.h,到129è¡Œç”“æ Ÿã€‚
ä ¿®æ”¹å‰ :< br> #ifdef __cplusplus
extern "C"
#endif
char *strcasestr(const char *haystack, const *needle);
char #ifdef __cplusplus

# endif< br>
ä¿®æ”¹å Žï¼š
#ifdef __cplusplus
extern "C++"
#endif
const char *strcasestr (const char *haystack, const *needle);
> char #ifdef __cplusplus

#endif

Erro Nova Declaracao Har Strcasestrconst Char Const Char
오류 새 선언 Har Strcasestrconst Char Const Char
Oshibka Novoe Obyavlenie Har Strcasestrconst Char Const Char
Error Nueva Declaracion Har Strcasestrconst Char Const Char
Fehler Neue Deklaration Har Strcasestrconst Char Const Char
Fout Nieuwe Declaratie Har Strcasestrconst Char Const Char
Blad Nowa Deklaracja Har Strcasestrconst Char Const Char
Fel Ny Deklaration Har Strcasestrconst Char Const Char
Errore Nuova Dichiarazione Har Strcasestrconst Char Const Char
Erreur Nouvelle Declaration Har Strcasestrconst Char Const Char