473,396 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1183
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.programmer.

Second, you posted a following without any context from the previous
message. If you want to post a followup via groups.google.com, 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_Keith) 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.programmer.

Second, you posted a following without any context from the previous
message. If you want to post a followup via groups.google.com, 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_Keith) 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.com, 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.programmer.

Second, you posted a following without any context from the previous
message. If you want to post a followup via groups.google.com, 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_Keith) 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.com, 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

jacob navia wrote:
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


Thanks for your help.

Nov 14 '05 #11

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

Similar topics

5
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...
11
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
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...
6
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. ...
7
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,...
3
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....
2
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...
8
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...
81
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...
10
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.