Guest User

Untitled

a guest
Nov 17th, 2019
109
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. g++ -c -o main.o main.cpp
  2. main.cpp:76:7: error: declaration of ‘XPDB <unnamed struct>::XPDB’ [-fpermissive]
  3. XPDB XPDB;
  4. ^~~~
  5. main.cpp:66:3: error: changes meaning of ‘XPDB’ from ‘typedef struct XPDB XPDB’ [-fpermissive]
  6. } XPDB;
  7. ^~~~
  8. main.cpp: In function ‘int CheckDiskValid(DataBlock*)’:
  9. main.cpp:349:103: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
  10. fprintf(stderr,"Disk image has %ld tracks. Only %ld will be used\n", pHeader->NumTracks, MaxTracks);
  11. ~~~~~~~~~~~~~~~~~~ ^
  12. main.cpp:349:103: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int’ [-Wformat=]
  13. main.cpp:354:70: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
  14. fprintf(stderr,"Disk image has %ld tracks.\n", pHeader->NumTracks);
  15. ~~~~~~~~~~~~~~~~~~^
  16. main.cpp:364:109: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
  17. fprintf(stderr,"Track %ld has size %ld. Not supported\n", t, (int)(pHeader->TrackSizeTable[t]&0x0ff)<<8);
  18. ^
  19. main.cpp:364:109: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int’ [-Wformat=]
  20. main.cpp:381:91: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
  21. fprintf(stderr,"Track %ld has %ld sectors. Not supported\n", t,(int)pTrackHeader->SPT);
  22. ^
  23. main.cpp:381:91: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int’ [-Wformat=]
  24. main.cpp:397:233: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
  25. tor %ld on Track %ld has unsupported ID or protection (ID: %02x %02x %02x %02x).\n", s,t,pTrackHeader->SectorIDs[s].C, pTrackHeader->SectorIDs[s].H, pTrackHeader->SectorIDs[s].R, pTrackHeader->SectorIDs[s].N);
  26. ^
  27. main.cpp:397:233: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int’ [-Wformat=]
  28. main.cpp:438:103: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
  29. fprintf(stderr,"Disk image has %ld tracks. Only %ld will be used\n", pHeader->NumTracks, MaxTracks);
  30. ~~~~~~~~~~~~~~~~~~ ^
  31. main.cpp:438:103: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int’ [-Wformat=]
  32. main.cpp:443:70: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
  33. fprintf(stderr,"Disk image has %ld tracks.\n", pHeader->NumTracks);
  34. ~~~~~~~~~~~~~~~~~~^
  35. main.cpp:463:86: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
  36. fprintf(stderr,"Track %ld has %ld sectors. Not supported\n", t,pTrackHeader->SPT);
  37. ^
  38. main.cpp:463:86: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int’ [-Wformat=]
  39. main.cpp:477:233: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
  40. tor %ld on Track %ld has unsupported ID or protection (ID: %02x %02x %02x %02x).\n", s,t,pTrackHeader->SectorIDs[s].C, pTrackHeader->SectorIDs[s].H, pTrackHeader->SectorIDs[s].R, pTrackHeader->SectorIDs[s].N);
  41. ^
  42. main.cpp:477:233: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int’ [-Wformat=]
  43. main.cpp: In function ‘int WriteROM(FILE*, const char*)’:
  44. main.cpp:578:117: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int’ [-Wformat=]
  45. fprintf(stderr, "File '%s' is larger than cart page size %ld. It will be cropped\n", sFilename, CART_CHUNK_LENGTH);
  46. ^
  47. main.cpp: In function ‘void OutputDetails()’:
  48. main.cpp:701:160: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
  49. printf("-b <filename> = add binary data. (cart block %ld-31/&%02x-&ff. Max size %ld)\n", BINARY_CART_PAGE, BINARY_CART_PAGE|0x080, (32-BINARY_CART_PAGE)*16384);
  50. ^
  51. main.cpp:701:160: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int’ [-Wformat=]
  52. main.cpp: In function ‘void WriteSectorDataToCartridgePage(FILE*, uint8_t*, DiskPosition*)’:
  53. main.cpp:785:114: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
  54. fprintf(stderr, "Sector data not found (%ld/%02x)\n",position->CurrentPhysicalTrack, position->CurrentSectorID);
  55. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
  56. main.cpp: In function ‘int main(int, const char**)’:
  57. main.cpp:1054:97: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
  58. fprintf(stdout, "Warning binary file is overwriting disc data in chunk %ld\n", Chunk);
  59. ^
  60. main.cpp:1098:166: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
  61. fprintf(stderr, "Disc image is too large to write to cartridge (finished at track %ld sector &%02x\n", position.CurrentPhysicalTrack, position.CurrentSectorID);
  62. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
  63. <integrado>: recipe for target 'main.o' failed
  64. make: *** [main.o] Error 1
RAW Paste Data