Hello all. I created a C program that used MySQL in Linux and now I'm transferring the program to Windows. I would like to ask what software do I need to download/install in Windows to be able to compile and run the program there? Also, when the program is already in Windows, do I need to change the way it accesses the MySQL database? Or is it the same in Linux and Windows in accessing the MySQL database through C programming? Thanks! The Windows I have is Windows XP

Recommended Answers

I don't know about your C libraries, but the MySQL server works the same on Windows and Linux.

Jump to Post

All 2 Replies

I don't know about your C libraries, but the MySQL server works the same on Windows and Linux.

I don't know about your C libraries, but the MySQL server works the same on Windows and Linux.

Thanks for the reply. Here are the header files that I used:
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <errno.h>
#include <mysql.h>
#include <stdlib.h>
Do I need to add windows.h? Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.