473,657 Members | 2,474 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compiling a program for windows

Hello folks,

I need to compile a program for windows which I have not done
quite often. The program includes some header files like following:

#include <winsock2.h>
#include <windows.h>
#include <process.h>
#include <string.h>
#include <winbase.h>

All the include header files are there in the /include directory
except for winsock2.h and winbase.h.
Any idea where can I find these header files.

Thanks in advance.

Nov 14 '05 #1
10 1198
anonymous wrote:
Hello folks,

I need to compile a program for windows which I have not done
quite often. The program includes some header files like following:

#include <winsock2.h>
#include <windows.h>
#include <process.h>
#include <string.h>
#include <winbase.h>

All the include header files are there in the /include directory
except for winsock2.h and winbase.h.
Any idea where can I find these header files.

Thanks in advance.

winsock2.h and winbase.h are parts of the Microsoft SDK
(Software Development Kit) for windows.

If your compiler doesn't provide this files, you can
download the SDK from Microsoft sites at no charge.
Go to www.msdn.microsoft.com

Normally, all windows compilers come with those files
installed. Which compiler are you using?

jacob
Nov 14 '05 #2
Thanks for your reply and information.

The compiler I am using is Borland ver 3.1

Nov 14 '05 #3
By the way, can you please suggest me a particular sdk as there are
sdks available
for many things on the web site you specified. Especially, if you can
specify the version
as well, it will be easier for me. The environment I am using is
Windows 2000.

Thanks,

Nov 14 '05 #4
"anonymous" <ca******@yahoo .com> writes:
Thanks for your reply and information.

The compiler I am using is Borland ver 3.1


Two pieces of advice.

First, your question is system-specific; this newsgroup generally
limits itself to discussion of the standard C programming language.
You'll have better luck in a system-specific newsgroup, most likely
comp.os.ms-windows.program mer.

Second, you posted a following without any context from the previous
message. If you want to post a followup via groups.google.c om, don't
use the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the "Reply" at
the bottom of the article headers.

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 14 '05 #5

Keith Thompson wrote:
"anonymous" <ca******@yahoo .com> writes:
Thanks for your reply and information.

The compiler I am using is Borland ver 3.1
Two pieces of advice.

First, your question is system-specific; this newsgroup generally
limits itself to discussion of the standard C programming language.
You'll have better luck in a system-specific newsgroup, most likely
comp.os.ms-windows.program mer.

Second, you posted a following without any context from the previous
message. If you want to post a followup via groups.google.c om, don't
use the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the "Reply"

at the bottom of the article headers.

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst> San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst> We must do something. This is something. Therefore, we must do

this.

"We must do something. This is something. Therefore, we must do
this."

:)

Sorry, I just forgot to use the appropriate reply only this time.

Thanks for the advice.

Nov 14 '05 #6
anonymous wrote:

Thanks for your reply and information.
Who is 'you', and what information?

The compiler I am using is Borland ver 3.1


If that matters you are off-topic on c.l.c.

If you must use the broken google interface to usenet, at least
follow the instructions in my sig. below. Every article should
stand by itself, and thus should have sufficient material quoted so
that the thing makes sense in isolation. At the same time it is
essential to snip material that is not relevant to your reply.

--
"If you want to post a followup via groups.google.c om, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
Nov 14 '05 #7

Keith Thompson wrote:
"anonymous" <ca******@yahoo .com> writes:
Thanks for your reply and information.

The compiler I am using is Borland ver 3.1
Two pieces of advice.

First, your question is system-specific; this newsgroup generally
limits itself to discussion of the standard C programming language.
You'll have better luck in a system-specific newsgroup, most likely
comp.os.ms-windows.program mer.

Second, you posted a following without any context from the previous
message. If you want to post a followup via groups.google.c om, don't
use the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the "Reply"

at the bottom of the article headers.

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst> San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst> We must do something. This is something. Therefore, we must do

this.

"We must do something. This is something. Therefore, we must do
this."

:)

Sorry, I just forgot to use the appropriate reply only this time.

Thanks for the advice.

Nov 14 '05 #8
anonymous wrote:

Thanks for your reply and information.
Who is 'you', and what information?

The compiler I am using is Borland ver 3.1


If that matters you are off-topic on c.l.c.

If you must use the broken google interface to usenet, at least
follow the instructions in my sig. below. Every article should
stand by itself, and thus should have sufficient material quoted so
that the thing makes sense in isolation. At the same time it is
essential to snip material that is not relevant to your reply.

--
"If you want to post a followup via groups.google.c om, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
Nov 14 '05 #9
anonymous wrote:
Thanks for your reply and information.

The compiler I am using is Borland ver 3.1

That's a 16 Bit compiler ????
If true, you are stuck. Windows 16 bit doesn't exist any more.
Get a new 32 bit compiler.

<<OFF TOPIC>>

A good compiler for free can be downloaded from:
http://www.cs.virginia.edu/~lcc-win32
Nov 14 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4675
by: smjmitchell | last post by:
Hi All, I have written a program in VB 6.0 that I would like to distribute to many users (most likely via freeware / shareware). The program is a relatively simple and does not call any external DLL's etc - it compiles to a single EXE. The program runs fine on my computer under Windows 2000 Professional and a few other machines that I have tried including two running Windows XP. Should the same code work on all versions of windows...
11
1507
by: Carramba | last post by:
hi! thanx for taking time to read my post. code #include <stdio.h> int main() { printf("Hello word!"); return 0; }//END when Iam compiling code with gcc I can't start program in winXP by
2
2117
by: Erik | last post by:
Hi Everyone, I'm having real problems compiling some source for eVC4++. The errors I am getting are below: It all seems to be centred around winsock. If I move the afsock.h reference to before my other includes then I get lots of errors like C2011: 'fd_set' : 'struct' type redefinition warning C4005: 'FD_CLR' : macro redefinition which I understand are due to the fact that windows.h is being included in another header file as well as...
6
1546
by: Joe Piscapo | last post by:
Hello, When I compile my program in Visual Studio it does not work for every input, some numbers make it crash. But compiling in gcc works for those numbers that made it crash in Visual Studio. Someone told me to check if Visual Studio is using the gcc libraries. How do I do that? I found an option for Runtime Library that has options like Single-threaded, etc.
7
2001
by: Sverker Nilsson | last post by:
I have been informed that Guppy-PE (http://guppy-pe.sourceforge.net) has failed to compile its extension modules with a Microsoft .NET 2003 compiler under Windows 2000. One of the problems, seems to be string constants in the C source that contain newlines. I am using GCC on Linux so, I missed this with the standard warning options. Compiling with -pedantic reveals 'a lot' of places where this is a problem.
3
2061
by: RS | last post by:
Hi all, My code compiles well with gcc on linux and OS X, but now I have to run it at work, and my only choice is Visual Studio .Net 2003 environment on windows, which I had never used before. I've noticed several obstacles with the compilation. For example this environment insists that we put all headers under a stdafx header, which I managed to find a way to get around. But there are other issues. For example, Visual Studio claims...
2
1781
by: sterten | last post by:
I often see scientific programs for Linux written in C which come with several files, are "zipped" with gzip and packked as .tar , they contain a "makefile" and several instructions (and incompatibilities for several compilers). In theory, you can create a Windows-executable but in practice this rarely works or requires too much time and energy.
8
2292
by: rays | last post by:
Hi, I am trying to port a C++ program which is supposed to be standards compliant. It works fine on Linux with GCC (4.x). But as I try to compile it on Windows, all hell breaks loose. I have been struggling with several free (as beer) compilers on windows, but none of them does the job. I am not sure how much of the blame goes to our code and how much to the compilers. By the way the platform is Windows XP and all the softwares mentioned...
81
11728
by: =?utf-8?B?4piG4piG4piG4piG4piGIFPDvCBLZWl0aCBDaGFr | last post by:
Installed this compiler on Vista; a simple "hello world" after compiled and run would pop-up a window "source file not compiled" I've seen this question asked a few times on Internet groups and noone seems to have figure it out. What is going on?
10
2202
by: Tomás Ó hÉilidhe | last post by:
I'd post this on a gcc newsgroup but I'd be more productive talking to the wall. Anyway, let's say someone throws some source code at you for a particular program and says, "Just compile it, it works fine". Now admittedly, I tend to have a phobia of this situation because I recall from my Windows days the numerous times I was given code that was supposedly "good to go", but which failed to compile for some stupid reason. Of course I...
0
8413
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8617
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7352
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2742
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.