![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
thanks
I managed to compile it with options -lsocket -lnsl Regards Bhupal |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | |
| Display Modes | |
|
|