MySQL++

Hex Artifact Content
Login

Hex Artifact Content

Artifact dba32f77e38cd133df67d0c60df3006f5ed8970131215124f5fcd4cf18eee875:

Ticket change [dba32f77e3] - New ticket [d90247c72808a8e7|d90247c728] <i>Warnings compiling in Windows with MingW</i>. by anonymous 2023-07-24 10:16:09.
0000: 44 20 32 30 32 33 2d 30 37 2d 32 34 54 31 30 3a  D 2023-07-24T10:
0010: 31 36 3a 30 39 2e 32 39 31 0a 4a 20 66 6f 75 6e  16:09.291.J foun
0020: 64 69 6e 20 33 2e 33 2e 30 0a 4a 20 69 63 6f 6d  din 3.3.0.J icom
0030: 6d 65 6e 74 20 57 68 65 6e 5c 73 63 6f 6d 70 69  ment When\scompi
0040: 6c 69 6e 67 5c 73 61 70 70 6c 69 63 61 74 69 6f  ling\sapplicatio
0050: 6e 73 5c 73 74 68 61 74 5c 73 75 73 65 5c 73 4d  ns\sthat\suse\sM
0060: 79 53 51 4c 2b 2b 5c 73 77 69 74 68 5c 73 4d 69  ySQL++\swith\sMi
0070: 6e 67 57 5c 73 28 47 4e 55 2d 43 5c 73 66 6f 72  ngW\s(GNU-C\sfor
0080: 5c 73 57 69 6e 64 6f 77 73 29 2c 5c 73 74 77 6f  \sWindows),\stwo
0090: 5c 73 77 61 72 6e 69 6e 67 73 5c 73 61 70 70 65  \swarnings\sappe
00a0: 61 72 5c 73 74 68 61 74 5c 73 63 61 6e 5c 73 62  ar\sthat\scan\sb
00b0: 65 5c 73 61 76 6f 69 64 65 64 3a 5c 72 5c 6e 5c  e\savoided:\r\n\
00c0: 72 5c 6e 57 61 72 6e 69 6e 67 5c 73 31 3a 5c 72  r\nWarning\s1:\r
00d0: 5c 6e 5c 74 43 3a 5c 5c 4d 79 53 51 4c 2b 2b 5c  \n\tC:\\MySQL++\
00e0: 5c 33 2e 33 2e 30 5c 5c 69 6e 63 6c 75 64 65 2f  \3.3.0\\include/
00f0: 63 6f 6d 6d 6f 6e 2e 68 3a 35 36 3a 5c 73 77 61  common.h:56:\swa
0100: 72 6e 69 6e 67 3a 5c 73 22 4e 4f 4d 49 4e 4d 41  rning:\s"NOMINMA
0110: 58 22 5c 73 72 65 64 65 66 69 6e 65 64 5c 72 5c  X"\sredefined\r\
0120: 6e 5c 74 5c 74 35 36 5c 73 7c 5c 73 5c 73 23 64  n\t\t56\s|\s\s#d
0130: 65 66 69 6e 65 5c 73 4e 4f 4d 49 4e 4d 41 58 5c  efine\sNOMINMAX\
0140: 72 5c 6e 53 6f 6c 75 74 69 6f 6e 3a 5c 73 57 65  r\nSolution:\sWe
0150: 5c 73 63 61 6e 5c 73 70 72 65 76 65 6e 74 5c 73  \scan\sprevent\s
0160: 74 68 69 73 5c 73 62 79 5c 73 63 68 61 6e 67 69  this\sby\schangi
0170: 6e 67 5c 73 22 63 6f 6d 6d 6f 6e 2e 68 22 5c 73  ng\s"common.h"\s
0180: 77 69 74 68 5c 73 77 68 65 6e 5c 73 23 64 65 66  with\swhen\s#def
0190: 69 6e 69 6e 67 5c 73 4e 4f 4d 49 4e 4d 41 58 3a  ining\sNOMINMAX:
01a0: 5c 72 5c 6e 5c 72 5c 6e 5c 74 2f 2f 44 6f 6e 27  \r\n\r\n\t//Don'
01b0: 74 5c 73 64 65 66 69 6e 65 5c 73 4e 4f 4d 49 4e  t\sdefine\sNOMIN
01c0: 4d 41 58 5c 73 77 68 65 6e 5c 73 63 6f 6d 70 69  MAX\swhen\scompi
01d0: 6c 69 6e 67 5c 73 77 69 74 68 5c 73 47 4e 55 5c  ling\swith\sGNU\
01e0: 73 43 5c 73 28 4d 69 6e 67 57 29 5c 72 5c 6e 5c  sC\s(MingW)\r\n\
01f0: 74 23 69 66 5c 73 21 64 65 66 69 6e 65 64 5c 73  t#if\s!defined\s
0200: 28 5f 5f 47 4e 55 43 5f 5f 29 5c 72 5c 6e 5c 74  (__GNUC__)\r\n\t
0210: 5c 74 2f 2f 5c 73 44 6f 6e 27 74 5c 73 6c 65 74  \t//\sDon't\slet
0220: 5c 73 77 69 6e 64 6f 77 73 2e 68 5c 73 28 76 69  \swindows.h\s(vi
0230: 61 5c 73 43 6f 6e 6e 65 63 74 6f 72 2f 43 29 5c  a\sConnector/C)\
0240: 73 23 64 65 66 69 6e 65 5c 73 6d 69 6e 2f 6d 61  s#define\smin/ma
0250: 78 5c 72 5c 6e 5c 74 5c 74 23 64 65 66 69 6e 65  x\r\n\t\t#define
0260: 5c 73 4e 4f 4d 49 4e 4d 41 58 5c 72 5c 6e 5c 74  \sNOMINMAX\r\n\t
0270: 23 65 6e 64 69 66 5c 72 5c 6e 5c 72 5c 6e 57 61  #endif\r\n\r\nWa
0280: 72 6e 69 6e 67 5c 73 32 3a 5c 73 22 77 61 72 6e  rning\s2:\s"warn
0290: 69 6e 67 3a 5c 73 74 79 70 65 5c 73 61 74 74 72  ing:\stype\sattr
02a0: 69 62 75 74 65 73 5c 73 69 67 6e 6f 72 65 64 5c  ibutes\signored\
02b0: 73 61 66 74 65 72 5c 73 74 79 70 65 5c 73 69 73  safter\stype\sis
02c0: 5c 73 61 6c 72 65 61 64 79 5c 73 64 65 66 69 6e  \salready\sdefin
02d0: 65 64 5c 73 5b 2d 57 61 74 74 72 69 62 75 74 65  ed\s[-Wattribute
02e0: 73 5d 22 5c 72 5c 6e 5c 74 54 68 69 73 5c 73 77  s]"\r\n\tThis\sw
02f0: 61 72 6e 69 6e 67 5c 73 61 70 70 65 61 72 73 5c  arning\sappears\
0300: 73 69 6e 5c 73 73 65 76 65 72 61 6c 5c 73 66 69  sin\sseveral\sfi
0310: 6c 65 73 2c 5c 73 66 6f 72 5c 73 65 78 61 6d 70  les,\sfor\sexamp
0320: 6c 65 3a 5c 72 5c 6e 5c 74 5c 74 43 3a 5c 5c 4d  le:\r\n\t\tC:\\M
0330: 79 53 51 4c 2b 2b 5c 5c 33 2e 33 2e 30 5c 5c 69  ySQL++\\3.3.0\\i
0340: 6e 63 6c 75 64 65 2f 63 70 6f 6f 6c 2e 68 3a 34  nclude/cpool.h:4
0350: 32 3a 32 32 3a 5c 73 77 61 72 6e 69 6e 67 3a 5c  2:22:\swarning:\
0360: 73 74 79 70 65 5c 73 61 74 74 72 69 62 75 74 65  stype\sattribute
0370: 73 5c 73 69 67 6e 6f 72 65 64 5c 73 61 66 74 65  s\signored\safte
0380: 72 5c 73 74 79 70 65 5c 73 69 73 5c 73 61 6c 72  r\stype\sis\salr
0390: 65 61 64 79 5c 73 64 65 66 69 6e 65 64 5c 73 5b  eady\sdefined\s[
03a0: 2d 57 61 74 74 72 69 62 75 74 65 73 5d 5c 72 5c  -Wattributes]\r\
03b0: 6e 5c 74 5c 74 5c 74 34 32 5c 73 7c 5c 73 63 6c  n\t\t\t42\s|\scl
03c0: 61 73 73 5c 73 4d 59 53 51 4c 50 50 5f 45 58 50  ass\sMYSQLPP_EXP
03d0: 4f 52 54 5c 73 43 6f 6e 6e 65 63 74 69 6f 6e 3b  ORT\sConnection;
03e0: 5c 72 5c 6e 53 6f 6c 75 74 69 6f 6e 3a 5c 73 43  \r\nSolution:\sC
03f0: 68 61 6e 67 69 6e 67 5c 73 74 68 65 5c 73 64 65  hanging\sthe\sde
0400: 66 69 6e 69 74 69 6f 6e 5c 73 6f 66 5c 73 4d 59  finition\sof\sMY
0410: 53 51 4c 50 50 5f 45 58 50 4f 52 54 5c 73 69 6e  SQLPP_EXPORT\sin
0420: 5c 73 63 6f 6d 6d 6f 6e 2e 68 3a 5c 72 5c 6e 5c  \scommon.h:\r\n\
0430: 72 5c 6e 5c 74 2f 2f 5c 73 44 65 66 69 6e 65 5c  r\n\t//\sDefine\
0440: 73 44 4c 4c 5c 73 69 6d 70 6f 72 74 2f 65 78 70  sDLL\simport/exp
0450: 6f 72 74 5c 73 74 61 67 73 5c 73 66 6f 72 5c 73  ort\stags\sfor\s
0460: 57 69 6e 64 6f 77 73 5c 73 63 6f 6d 70 69 6c 65  Windows\scompile
0470: 72 73 2c 5c 73 77 68 65 72 65 5c 73 77 65 5c 73  rs,\swhere\swe\s
0480: 62 75 69 6c 64 5c 72 5c 6e 5c 74 2f 2f 5c 73 74  build\r\n\t//\st
0490: 68 65 5c 73 6c 69 62 72 61 72 79 5c 73 69 6e 74  he\slibrary\sint
04a0: 6f 5c 73 61 5c 73 44 4c 4c 2c 5c 73 66 6f 72 5c  o\sa\sDLL,\sfor\
04b0: 73 4c 47 50 4c 5c 73 6c 69 63 65 6e 73 65 5c 73  sLGPL\slicense\s
04c0: 63 6f 6d 70 61 74 69 62 69 6c 69 74 79 5c 73 72  compatibility\sr
04d0: 65 61 73 6f 6e 73 2e 5c 72 5c 6e 5c 74 2f 2f 5c  easons.\r\n\t//\
04e0: 73 28 54 68 69 73 5c 73 69 73 5c 73 62 61 73 65  s(This\sis\sbase
04f0: 64 5c 73 6f 6e 5c 73 61 5c 73 73 69 6d 69 6c 61  d\son\sa\ssimila
0500: 72 5c 73 6d 65 63 68 61 6e 69 73 6d 5c 73 69 6e  r\smechanism\sin
0510: 5c 73 77 78 57 69 6e 64 6f 77 73 2e 29 5c 72 5c  \swxWindows.)\r\
0520: 6e 5c 74 23 69 66 5c 73 64 65 66 69 6e 65 64 5c  n\t#if\sdefined\
0530: 73 28 5f 5f 47 4e 55 43 5f 5f 29 5c 72 5c 6e 5c  s(__GNUC__)\r\n\
0540: 74 5c 74 2f 2f 44 6f 6e 27 74 5c 73 73 65 74 5c  t\t//Don't\sset\
0550: 73 44 4c 4c 5c 73 69 6d 70 6f 72 74 2f 65 78 70  sDLL\simport/exp
0560: 6f 72 74 5c 73 74 61 67 73 5c 73 66 6f 72 5c 73  ort\stags\sfor\s
0570: 47 4e 55 5c 73 43 5c 73 28 4d 69 6e 67 57 29 5c  GNU\sC\s(MingW)\
0580: 72 5c 6e 5c 74 5c 74 23 64 65 66 69 6e 65 5c 73  r\n\t\t#define\s
0590: 4d 59 53 51 4c 50 50 5f 45 58 50 4f 52 54 5c 72  MYSQLPP_EXPORT\r
05a0: 5c 6e 5c 74 23 65 6c 73 65 5c 73 5c 72 5c 6e 5c  \n\t#else\s\r\n\
05b0: 74 5c 74 23 69 66 64 65 66 5c 73 4d 59 53 51 4c  t\t#ifdef\sMYSQL
05c0: 50 50 5f 4d 41 4b 49 4e 47 5f 44 4c 4c 5c 72 5c  PP_MAKING_DLL\r\
05d0: 6e 5c 74 5c 74 5c 74 2f 2f 5c 73 57 68 65 6e 5c  n\t\t\t//\sWhen\
05e0: 73 6d 61 6b 69 6e 67 5c 73 74 68 65 5c 73 44 4c  smaking\sthe\sDL
05f0: 4c 2c 5c 73 65 78 70 6f 72 74 5c 73 74 61 67 67  L,\sexport\stagg
0600: 65 64 5c 73 73 79 6d 62 6f 6c 73 2c 5c 73 73 6f  ed\ssymbols,\sso
0610: 5c 73 74 68 65 79 5c 73 61 70 70 65 61 72 5c 72  \sthey\sappear\r
0620: 5c 6e 5c 74 5c 74 5c 74 2f 2f 5c 73 69 6e 5c 73  \n\t\t\t//\sin\s
0630: 74 68 65 5c 73 69 6d 70 6f 72 74 5c 73 6c 69 62  the\simport\slib
0640: 72 61 72 79 2e 5c 72 5c 6e 5c 74 5c 74 5c 74 23  rary.\r\n\t\t\t#
0650: 64 65 66 69 6e 65 5c 73 4d 59 53 51 4c 50 50 5f  define\sMYSQLPP_
0660: 45 58 50 4f 52 54 5c 73 5f 5f 64 65 63 6c 73 70  EXPORT\s__declsp
0670: 65 63 28 64 6c 6c 65 78 70 6f 72 74 29 5c 72 5c  ec(dllexport)\r\
0680: 6e 5c 74 5c 74 23 65 6c 69 66 5c 73 21 64 65 66  n\t\t#elif\s!def
0690: 69 6e 65 64 28 4d 59 53 51 4c 50 50 5f 4e 4f 5f  ined(MYSQLPP_NO_
06a0: 44 4c 4c 29 5c 72 5c 6e 5c 74 5c 74 5c 74 2f 2f  DLL)\r\n\t\t\t//
06b0: 5c 73 57 65 5c 73 6d 75 73 74 5c 73 62 65 5c 73  \sWe\smust\sbe\s
06c0: 5f 75 73 69 6e 67 5f 5c 73 74 68 65 5c 73 44 4c  _using_\sthe\sDL
06d0: 4c 2c 5c 73 73 6f 5c 73 69 6d 70 6f 72 74 5c 73  L,\sso\simport\s
06e0: 73 79 6d 62 6f 6c 73 5c 73 69 6e 73 74 65 61 64  symbols\sinstead
06f0: 2e 5c 72 5c 6e 5c 74 5c 74 5c 74 23 64 65 66 69  .\r\n\t\t\t#defi
0700: 6e 65 5c 73 4d 59 53 51 4c 50 50 5f 45 58 50 4f  ne\sMYSQLPP_EXPO
0710: 52 54 5c 73 5f 5f 64 65 63 6c 73 70 65 63 28 64  RT\s__declspec(d
0720: 6c 6c 69 6d 70 6f 72 74 29 5c 72 5c 6e 5c 74 5c  llimport)\r\n\t\
0730: 74 23 65 6c 73 65 5c 72 5c 6e 5c 74 5c 74 5c 74  t#else\r\n\t\t\t
0740: 2f 2f 5c 73 4e 6f 74 5c 73 6d 61 6b 69 6e 67 5c  //\sNot\smaking\
0750: 73 61 5c 73 44 4c 4c 5c 73 61 74 5c 73 61 6c 6c  sa\sDLL\sat\sall
0760: 2c 5c 73 73 6f 5c 73 6e 6f 2d 6f 70 5c 73 74 68  ,\sso\sno-op\sth
0770: 65 73 65 5c 73 64 65 63 6c 73 70 65 63 73 5c 72  ese\sdeclspecs\r
0780: 5c 6e 5c 74 5c 74 5c 74 23 64 65 66 69 6e 65 5c  \n\t\t\t#define\
0790: 73 4d 59 53 51 4c 50 50 5f 45 58 50 4f 52 54 5c  sMYSQLPP_EXPORT\
07a0: 72 5c 6e 5c 74 5c 74 23 65 6e 64 69 66 5c 72 5c  r\n\t\t#endif\r\
07b0: 6e 5c 74 23 65 6e 64 69 66 5c 72 5c 6e 5c 72 5c  n\t#endif\r\n\r\
07c0: 6e 48 6f 70 65 5c 73 74 68 69 73 5c 73 68 65 6c  nHope\sthis\shel
07d0: 70 73 21 5c 72 5c 6e 4d 0a 4a 20 6c 6f 67 69 6e  ps!\r\nM.J login
07e0: 20 61 6e 6f 6e 79 6d 6f 75 73 0a 4a 20 6d 69 6d   anonymous.J mim
07f0: 65 74 79 70 65 20 74 65 78 74 2f 70 6c 61 69 6e  etype text/plain
0800: 0a 4a 20 70 72 69 76 61 74 65 5f 63 6f 6e 74 61  .J private_conta
0810: 63 74 20 36 62 36 65 38 31 66 65 34 37 38 34 34  ct 6b6e81fe47844
0820: 62 38 61 30 63 34 34 63 37 33 63 37 30 66 35 37  b8a0c44c73c70f57
0830: 37 66 37 34 35 34 63 62 62 33 66 0a 4a 20 73 65  7f7454cbb3f.J se
0840: 76 65 72 69 74 79 20 4d 69 6e 6f 72 0a 4a 20 73  verity Minor.J s
0850: 74 61 74 75 73 20 4f 70 65 6e 0a 4a 20 74 69 74  tatus Open.J tit
0860: 6c 65 20 57 61 72 6e 69 6e 67 73 5c 73 63 6f 6d  le Warnings\scom
0870: 70 69 6c 69 6e 67 5c 73 69 6e 5c 73 57 69 6e 64  piling\sin\sWind
0880: 6f 77 73 5c 73 77 69 74 68 5c 73 4d 69 6e 67 57  ows\swith\sMingW
0890: 0a 4a 20 74 79 70 65 20 43 6f 64 65 5c 73 44 65  .J type Code\sDe
08a0: 66 65 63 74 0a 4b 20 64 39 30 32 34 37 63 37 32  fect.K d90247c72
08b0: 38 30 38 61 38 65 37 63 62 35 63 33 62 39 31 30  808a8e7cb5c3b910
08c0: 65 36 62 37 61 39 36 65 34 36 64 38 64 31 32 0a  e6b7a96e46d8d12.
08d0: 55 20 61 6e 6f 6e 79 6d 6f 75 73 0a 5a 20 38 37  U anonymous.Z 87
08e0: 31 62 39 63 38 36 34 30 31 64 64 39 65 65 39 37  1b9c86401dd9ee97
08f0: 38 65 38 33 63 66 37 30 37 36 31 32 33 66 0a     8e83cf7076123f.