Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8298419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:45:53+00:00 2026-06-08T15:45:53+00:00

Well my problem is pretty simple, i got the following includes: #include stdafx.h #include

  • 0

Well my problem is pretty simple, i got the following includes:

#include "stdafx.h"
#include "my_global.h"
#include "mysql.h"
#include "ServerManager.h"
#include "GamePlay.h"

#pragma comment(lib, "libmysql.lib")

And i get the WARNING (which is pretty annoying):

1>c:\program files\mysql\connector c 6.0.2\include\config-win.h(24): warning C4005: '_WIN32_WINNT' : macro redefinition
1>          c:\program files\windows kits\8.0\include\shared\sdkddkver.h(195) : see previous definition of '_WIN32_WINNT'

So i check stdafx includes targetver.h where _WIN32_WINNT is defined, and my_global.h includes also _WIN32_WINNT, what can i do about this?

This is exactly the conflicting part of my_global.h file wich is part of the MySQL C library:

/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; version 2 of the License.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */

/* Defines for Win32 to make it compatible for MySQL */

#define BIG_TABLES

/* 
  Minimal version of Windows we should be able to run on.
  Currently Windows 2000
*/
#define _WIN32_WINNT     0x0500

I am kind of new regarding those including problems, thanks !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T15:45:55+00:00Added an answer on June 8, 2026 at 3:45 pm

    I would suggest the following modification of my_global.h, replace

    /* 
      Minimal version of Windows we should be able to run on.
      Currently Windows 2000
    */
    #define _WIN32_WINNT     0x0500
    

    with

    /* 
      Minimal version of Windows we should be able to run on.
      Currently Windows 2000
    */
    #if defined(_WIN32_WINNT) && _WIN32_WINNT < 0x0500
    #error "MySQL requires Windows 2000 or later"
    #elif !defined(_WIN32_WINNT)
    #define _WIN32_WINNT     0x0500
    #endif
    

    Maybe I’m missing something but really quite poor on the part of MySQL I think.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Tomcat has got that well-known memory leak problem that causes PermGen space errors after
I've got a question that probably has a pretty simple answer, but I didn't
I have a mysql table with over 4 million of data; well the problem
I got a pretty simple parent/child relationship here, which looks like this: Email servers
My problem is pretty simple, but I just can't solve it by myself. Does
been searching everywhere, but couldn't the correct answer. the problem is pretty simple: i
So I just got back for the ACM Programing competition and did pretty well
Well guys, to ask the question is pretty simple, but myself, I'm having a
In got the following problem: I made a server which is able to handle
It's a well known problem that executing make test doesn't build the tests as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.