gcc 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) Se plaint
en spécifiant que c'est une redéfinition de main.
/*
$ gcc -mno-cygwin -o f.exe f.c
f.c: In function `main':
f.c:7: erreur: << __func__ >> not declared (first use)
f.c:7: erreur: (Each non declared identifier is reported only
once
f.c:7: erreur: for each function in wich it apears..)
*/
Trouvé sur les news.
"The printf("%s %s\n", ch, __FUNC__); bugs because of the
use of __func__"
J'ai essayé avec des define même problème
#if __STDC_VERSION__ < 199901L
# if __GNUC__ >= 2
# define __func__ __FUNCTION__
# else
# define __func__ "<unknown>"
# endif
#endif
===============
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
int main(int argc, char *argv[]){
printf(" %s\n", __func__);
system("PAUSE");
return 0;
}
--
Thanks for your attention.
Jean Pierre Daviau
--
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
Processor Radeon7000 0x5159 agp
--
Thanks for your attention.
Jean Pierre Daviau
--
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
Processor Radeon7000 0x5159 agp
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Jean Pierre Daviau
Le lendemain, tout à coup cela semble fonctionner. XP à été rebooté.
"Jean Pierre Daviau" a écrit dans le message de news: dWYti.6905$
Bonjour à tous,
gcc 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) Se plaint en spécifiant que c'est une redéfinition de main. /* $ gcc -mno-cygwin -o f.exe f.c f.c: In function `main': f.c:7: erreur: << __func__ >> not declared (first use) f.c:7: erreur: (Each non declared identifier is reported only once f.c:7: erreur: for each function in wich it apears..) */
Trouvé sur les news. "The printf("%s %sn", ch, __FUNC__); bugs because of the use of __func__" J'ai essayé avec des define même problème #if __STDC_VERSION__ < 199901L # if __GNUC__ >= 2 # define __func__ __FUNCTION__ # else # define __func__ "<unknown>" # endif #endif ============== > #include <stdio.h> #include <stdlib.h> #include <assert.h>
int main(int argc, char *argv[]){
printf(" %sn", __func__);
system("PAUSE");
return 0; } -- Thanks for your attention.
Jean Pierre Daviau -- windows Xp asus p4 s533/333/133 Intel(R) Celeron (R) CPU 2.00 GHz Processor Radeon7000 0x5159 agp
-- Thanks for your attention.
Jean Pierre Daviau -- windows Xp asus p4 s533/333/133 Intel(R) Celeron (R) CPU 2.00 GHz Processor Radeon7000 0x5159 agp
Le lendemain, tout à coup cela semble fonctionner. XP à été
rebooté.
"Jean Pierre Daviau" <Once@WasEno.ugh> a écrit dans le message de
news: dWYti.6905$VN1.90967@wagner.videotron.net...
Bonjour à tous,
gcc 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) Se
plaint en spécifiant que c'est une redéfinition de main.
/*
$ gcc -mno-cygwin -o f.exe f.c
f.c: In function `main':
f.c:7: erreur: << __func__ >> not declared (first use)
f.c:7: erreur: (Each non declared identifier is reported only
once
f.c:7: erreur: for each function in wich it apears..)
*/
Trouvé sur les news.
"The printf("%s %sn", ch, __FUNC__); bugs because of the
use of __func__"
J'ai essayé avec des define même problème
#if __STDC_VERSION__ < 199901L
# if __GNUC__ >= 2
# define __func__ __FUNCTION__
# else
# define __func__ "<unknown>"
# endif
#endif
============== > #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
int main(int argc, char *argv[]){
printf(" %sn", __func__);
system("PAUSE");
return 0;
}
--
Thanks for your attention.
Jean Pierre Daviau
--
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
Processor Radeon7000 0x5159 agp
--
Thanks for your attention.
Jean Pierre Daviau
--
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
Processor Radeon7000 0x5159 agp
Le lendemain, tout à coup cela semble fonctionner. XP à été rebooté.
"Jean Pierre Daviau" a écrit dans le message de news: dWYti.6905$
Bonjour à tous,
gcc 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) Se plaint en spécifiant que c'est une redéfinition de main. /* $ gcc -mno-cygwin -o f.exe f.c f.c: In function `main': f.c:7: erreur: << __func__ >> not declared (first use) f.c:7: erreur: (Each non declared identifier is reported only once f.c:7: erreur: for each function in wich it apears..) */
Trouvé sur les news. "The printf("%s %sn", ch, __FUNC__); bugs because of the use of __func__" J'ai essayé avec des define même problème #if __STDC_VERSION__ < 199901L # if __GNUC__ >= 2 # define __func__ __FUNCTION__ # else # define __func__ "<unknown>" # endif #endif ============== > #include <stdio.h> #include <stdlib.h> #include <assert.h>
int main(int argc, char *argv[]){
printf(" %sn", __func__);
system("PAUSE");
return 0; } -- Thanks for your attention.
Jean Pierre Daviau -- windows Xp asus p4 s533/333/133 Intel(R) Celeron (R) CPU 2.00 GHz Processor Radeon7000 0x5159 agp
-- Thanks for your attention.
Jean Pierre Daviau -- windows Xp asus p4 s533/333/133 Intel(R) Celeron (R) CPU 2.00 GHz Processor Radeon7000 0x5159 agp