The UNIX and Linux Forums  

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-15-2006 09:25 PM
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 08:27 PM
About $include sarwan High Level Programming 5 04-06-2006 06:33 AM
how to include external files in tcsh umen Shell Programming and Scripting 0 12-07-2005 02:54 AM
#include? yongho UNIX for Dummies Questions & Answers 1 08-01-2005 11:55 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-26-2001
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

Reply With Quote
Forum Sponsor
  #2  
Old 06-26-2001
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,441
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
Reply With Quote
  #3  
Old 06-27-2001
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.
Reply With Quote
  #4  
Old 06-27-2001
Registered User
 

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

I managed to compile it with options -lsocket -lnsl

Regards
Bhupal
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:40 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0