Harald JOHNSEN wrote: >mathlib.c >f:\dvlp\osgfg\SimGear\source\simgear\nasal\mathlib.c(29) : error C2065: >'__func__' : identificateur non déclaré >f:\dvlp\osgfg\SimGear\source\simgear\nasal\mathlib.c(29) : warning >C4047: 'fonction' : 'const char *' diffère de 'int' dans les niveaux >d'indirection >f:\dvlp\osgfg\SimGear\source\simgear\nasal\mathlib.c(38) : warning >C4047: 'fonction' : 'const char *' diffère de 'int' dans les niveaux >d'indirection >f:\dvlp\osgfg\SimGear\source\simgear\nasal\mathlib.c(47) : warning >C4047: 'fonction' : 'const char *' diffère de 'int' dans les niveaux >d'indirection >f:\dvlp\osgfg\SimGear\source\simgear\nasal\mathlib.c(56) : warning >C4047: 'fonction' : 'const char *' diffère de 'int' dans les niveaux >d'indirection >f:\dvlp\osgfg\SimGear\source\simgear\nasal\mathlib.c(65) : warning >C4047: 'fonction' : 'const char *' diffère de 'int' dans les niveaux >d'indirection >f:\dvlp\osgfg\SimGear\source\simgear\nasal\mathlib.c(75) : warning >C4047: 'fonction' : 'const char *' diffère de 'int' dans les niveaux >d'indirection >lib.c >f:\dvlp\osgfg\SimGear\source\simgear\nasal\lib.c(25) : error C2065: >'__func__' : identificateur non déclaré > >// Toss a runtime error for any NaN or Inf values produced. Note that >// this assumes an IEEE 754 format. >#define VALIDATE(r) (valid(r.num) ? (r) : die(c, __func__+2)) > >Harald. > > > I've added this to the two file where func is used (seen on the interweb) /* Try to get a reasonable __func__ substitute in place. */ #if defined(_MSC_VER) /* MSVC compilers before VC7 don't have __func__ at all; later ones call it * __FUNCTION__. */ #if _MSC_VER < 1300 #define __func__ "???" #else #define __func__ __FUNCTION__ #endif #endif
compiles ok, but link fails Some functions defined in thread-posix.c (and used) are not defined in thread-win32.c I've forced the use of thread-posix, compile and link is ok now. Harald. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel