C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old August 10th, 2002, 09:41 PM
thenerdyguy thenerdyguy is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 0 thenerdyguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
need help on c++

hello people,
i need to do some c++ programming on a linux machine.. is there any difference from doing it on a windows machine? where can I find online documentation of the libraries used, i need to read up on how to use the socket.h

thanks in advance

Reply With Quote
  #2  
Old August 10th, 2002, 10:25 PM
OB_redemption's Avatar
OB_redemption OB_redemption is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 32 OB_redemption User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
on Windows you've to use WinSock and a socket is NOT a file as it is on Unix... you've to have extra code to cater for Winsock (something like WSAstartup() i think...)

as for online docs, i've been looking too cos i'm also learning socket programming... do a search at google for 'beej's guide to network programming'... that's a good one but in C (not C++)... if you find any good ones let me know too ok?

<edit> i found the link to the guide i mentioned above -> www.ecst.csuchico.edu/~beej/guide/net/ </edit>

Reply With Quote
  #3  
Old August 22nd, 2002, 12:44 PM
rayz rayz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: europe
Posts: 255 rayz User rank is Lance Corporal (50 - 100 Reputation Level)rayz User rank is Lance Corporal (50 - 100 Reputation Level)rayz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 17 h 19 m 48 sec
Reputation Power: 6
i don't know if that helps but i'd take a look at gcc online documentation
http://gcc.gnu.org/onlinedocs/
sure u'll find the header files in there.
if u prefer using an ide try qt. there's a free version at www.trolltech.com.
cheers, jens

Reply With Quote
  #4  
Old August 27th, 2002, 01:04 AM
Rdesign Rdesign is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Redding
Posts: 49 Rdesign User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Different compiler.

I would use g++ for that, gcc is for C code...

Reply With Quote
  #5  
Old August 27th, 2002, 05:36 AM
rayz rayz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: europe
Posts: 255 rayz User rank is Lance Corporal (50 - 100 Reputation Level)rayz User rank is Lance Corporal (50 - 100 Reputation Level)rayz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 17 h 19 m 48 sec
Reputation Power: 6
g++ is part of gcc

Reply With Quote
  #6  
Old August 27th, 2002, 07:42 AM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,834 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 23 h 30 m 30 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
Re: Different compiler.

Quote:
Originally posted by Rdesign
I would use g++ for that, gcc is for C code...

All gcc is, is a front end that calls the proper compiler for the job, whether that be cc, g++, java, etc.

Reply With Quote
  #7  
Old September 16th, 2002, 10:24 PM
wayp wayp is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: South Carolina
Posts: 0 wayp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Clarification

GCC is now GNU Compiler Collection...or something of that sort. It used to be GNU C Compiler, but now it comes with a whole list of compilers.

Anywho, if you use cygwin and the gcc for windows then you will have portability and not even have to worry about WinSock and the like. With cygwin you can use socket.h. Wonderful heh?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > need help on c++


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway