Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Closed Thread
 
Thread Tools Display Modes
Old Sep 4th, 2005, 12:32 PM   #1
FuTuR£
Newbie
 
Join Date: Aug 2005
Posts: 13
Rep Power: 0 FuTuR£ is an unknown quantity at this point
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
FuTuR£ is offline  
Old Sep 4th, 2005, 12:35 PM   #2
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
What do you mean by packages?
Polyphemus_ is offline  
Old Sep 4th, 2005, 12:35 PM   #3
L7Sqr
Hobbyist Programmer
 
Join Date: Jun 2005
Location: here
Posts: 137
Rep Power: 0 L7Sqr is an unknown quantity at this point
you might look here
or, possibly here

You'll get more than just sys/socket.h BTW.
__________________
"...and though our kids are blessed their parents let them shoulder all the blame."
- The Quiet Things That No One Ever Knows [BrandNew]
L7Sqr is offline  
Old Sep 4th, 2005, 12:36 PM   #4
FuTuR£
Newbie
 
Join Date: Aug 2005
Posts: 13
Rep Power: 0 FuTuR£ is an unknown quantity at this point
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>
FuTuR£ is offline  
Old Sep 4th, 2005, 12:39 PM   #5
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
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.
Polyphemus_ is offline  
Old Sep 4th, 2005, 1:38 PM   #6
stevengs
Professional Programmer
 
stevengs's Avatar
 
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4 stevengs is on a distinguished road
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.
__________________
-Steven
"Is this a piece of your brain?" - Basil Fawlty
stevengs is offline  
Old Sep 4th, 2005, 3:49 PM   #7
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
Quote:
Originally Posted by stevengs
Hi Poly. I believe that is the other way around, the declarations and definitions that is.
i always forget what what is
Polyphemus_ is offline  
Old Sep 4th, 2005, 12:52 PM   #8
FuTuR£
Newbie
 
Join Date: Aug 2005
Posts: 13
Rep Power: 0 FuTuR£ is an unknown quantity at this point
so it cant be done? I know there for linux but i need to compile some linux stuff on my box.
FuTuR£ is offline  
Old Sep 4th, 2005, 12:53 PM   #9
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
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.
Polyphemus_ is offline  
Old Sep 4th, 2005, 1:42 PM   #10
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline  
Closed Thread

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:16 AM.

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