Opened 19 years ago
Last modified 19 years ago
#862 closed defect (fixed)
CC: ERROR File = gdal_translate.cpp The function "main" cannot be called or have its address taken
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
Hello, when using the latest MIPS CC 7.4.3 compiler on IRIX 6.5.27 i get one error during compilation of gdal-1.2.6. cc-1364 CC: ERROR File = gdal_translate.cpp, Line = 492 The function "main" cannot be called or have its address taken. if( main( argc, argv ) != 0 ) ^ 1 error detected in the compilation of "gdal_translate.cpp". gmake[1]: *** [gdal_translate.o] Fehler 1 gmake[1]: Leaving directory `/usr2/MIPS/gdal-1.2.6/apps' 488 for( i = 0; papszSubdatasets[i] != NULL; i += 2 ) 489 { 490 argv[iSrcFileArg] = strstr(papszSubdatasets[i],"=")+1; 491 sprintf( pszSubDest, "%s%d", pszDest, i/2 + 1 ); 492 if( main( argc, argv ) != 0 ) 493 break; 494 } Make it sence to call main() again when already within main()? System: uname -Ra IRIX64 octane 6.5 6.5.27m 01062343 IP30 [octane]:/usr2/MIPS/gdal-1.2.6 $ cc -version MIPSpro Compilers: Version 7.4.3m
Note:
See TracTickets
for help on using tickets.