Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   Help please (http://www.programmingforums.org/showthread.php?t=5741)

FuTuR£ Sep 4th, 2005 12:32 PM

Help please
 
Sorry i was a prick in the delphi bit i dont dont like to take shit, we all know how it is... anyway..

Does anyone know where i can download packages for C++ like sys/socket.h

This is pretty important.


Thanks

Polyphemus_ Sep 4th, 2005 12:35 PM

What do you mean by packages?

L7Sqr Sep 4th, 2005 12:35 PM

you might look here
or, possibly here

You'll get more than just sys/socket.h BTW.

FuTuR£ Sep 4th, 2005 12:36 PM

arn't you able to download packages with lots of these extentions in?

Like:
<sys/socket.h>
<unistd.h>
<arpa/inet.h>
<openssl/md5.h>

Polyphemus_ Sep 4th, 2005 12:39 PM

Quote:

Originally Posted by FuTuR£
arn't you able to download packages with lots of these extentions in?

Like:
<sys/socket.h>
<unistd.h>
<arpa/inet.h>
<openssl/md5.h>

That are only the definitions of the functions, the header files. The declarations are in other files. If you are using windows, you can IIRC just include winsock.h, which will enable you to use sockets. Just google a bit around for more info about a specific header file.

FuTuR£ Sep 4th, 2005 12:52 PM

so it cant be done? I know there for linux but i need to compile some linux stuff on my box.

Polyphemus_ Sep 4th, 2005 12:53 PM

Quote:

Originally Posted by FuTuR£
so it cant be done? I know there for linux but i need to compile some linux stuff on my box.

Of course it can be done. I believe sockets are default on a linux box, so just try it.

stevengs Sep 4th, 2005 1:38 PM

Quote:

Originally Posted by Polyphemus_
That are only the definitions of the functions, the header files. The declarations are in other files.

Hi Poly. I believe that is the other way around, the declarations and definitions that is.

DaWei Sep 4th, 2005 1:42 PM

The declarations (prototypes) serve as a description so that the compiler may check for correct usage. They are normally found in the header files. The code you need (the definitions) are rarely there. They are normally in library files. Your compilation may succeed if the headers are found, but the link step will fail the the actual code, as carried in library files, is not found. The locations of both of these types of files can be specified on the compiler/linker's command line or, if you are using an IDE, in the IDE's options/preferences areas.

FuTuR£ Sep 4th, 2005 2:00 PM

so is there not like a link to download some of these things?


All times are GMT -5. The time now is 4:25 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC