The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
include all files under a directory fredao Shell Programming and Scripting 4 12-16-2006 12:25 AM
How can I tranfer an OS/ Unix (from old HD to new HD / include all files saved ) Vietnam UNIX for Dummies Questions & Answers 0 08-04-2006 11:27 PM
About $include sarwan High Level Programming 5 04-06-2006 09:33 AM
how to include external files in tcsh umen Shell Programming and Scripting 0 12-07-2005 05:54 AM
#include? yongho UNIX for Dummies Questions & Answers 1 08-01-2005 02:55 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
  #1 (permalink)  
Old 06-26-2001
reddyb reddyb is offline
Registered User
  
 

Join Date: Jun 2001
Location: USA
Posts: 21
Include files

Hi,
I am new to the unix networking.
I have written one client and server for UDP sockets..
I got the following errors while conpilation
I have include all include files.
Could some one help ...is there any other file to be included.....?
will the include files change on different unix machines?
I use sequent.

error while compilation

undefined symbol first reference in file

_bsd_accept client.o
_bsd_bind client.o
....
..


I have included
#include ipc_config.h>
#include string.h>
#include stdlib.h>
#include sys/types.h>
#include sys/socket.h>
#include netinet/in.h>
#include arpa/inet.h>


TIA
reddyb

  #2 (permalink)  
Old 06-26-2001
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,664
The symbols in your post are not normally found in include files because they are object code. These are found in library files, not include files. Include files are normally text files that include macro definitions, data structure defs, variable defs, etc. (text based) that is included before compile time.<P>
Object code has been compiled for the specific architecture you are working in and those objects need to be linked using a linker, normally done after the main code base is compiled. To find the object code, you need to know the library archives that contains the object code. There are many ways to do the detective work to find these objects. One way is to simply run a command like 'strings' against the library files and grep for the objects you seek. There are many other ways to search for lost objects
  #3 (permalink)  
Old 06-27-2001
coredump coredump is offline
Registered User
  
 

Join Date: Jun 2001
Posts: 1
compiler options?

is it exactly the code u compiled and ran??
check out the angled braces
if u have not compiled with -lsocket option, there vud be a linking problem..
check that out...
if nothing works, get back.
  #4 (permalink)  
Old 06-27-2001
reddyb reddyb is offline
Registered User
  
 

Join Date: Jun 2001
Location: USA
Posts: 21
thanks

I managed to compile it with options -lsocket -lnsl

Regards
Bhupal
Closed Thread

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0