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
Compiling and Running C Program on Solaris selva_ss SUN Solaris 2 02-23-2008 12:02 PM
help on compiling a C program on Tiger cleansing_flame High Level Programming 4 01-29-2008 03:59 PM
Compiling a C program ooploo High Level Programming 3 10-06-2006 06:35 AM
Problem compiling program rochitsharma High Level Programming 28 07-23-2006 08:56 PM
Compiling a program Minnesota Red High Level Programming 7 06-16-2003 04:35 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 Rate Thread Display Modes
  #1 (permalink)  
Old 10-23-2001
Vivek Vivek is offline
Registered User
  
 

Join Date: Oct 2001
Posts: 2
Error Compiling C program

Hi All,

I tried to compile a C program but i am getting error while Linking . it says Undefined reference to ' ' (here it gives a method name which is defined Globally ).

Can any body tell the resaon and remedy for the same . Iam stuck up here .

Thanks
  #2 (permalink)  
Old 10-23-2001
jyotipg jyotipg is offline
Registered User
  
 

Join Date: Oct 2001
Location: Bangalore
Posts: 95
Vivek,
are u using shared libraries?? Make sure that u r linking them with the right libaries. what r the switches u r using while compiling?
  #3 (permalink)  
Old 10-23-2001
Vivek Vivek is offline
Registered User
  
 

Join Date: Oct 2001
Posts: 2
Iam compiling using the Following command

cc -o hello hello.c -lpthread

Iam using some of the datastructrues of pthread.h file.

and its givin me Undefined Reference the Global function defined in my Program .

Aby Idea.....
  #4 (permalink)  
Old 10-25-2001
vthasan vthasan is offline
Registered User
  
 

Join Date: Oct 2001
Location: Toronto, Canada
Posts: 3
Can you tell the error mesg

Vivek,

Can you type exactly what the error message is?
It will help me to reply exacly what you want..

Vijay
Sponsored Links
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 06:07 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