This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

problem with linking




Hi 
This is a bit basic. 
I am trying to use a Math.h function

So I compile my program  as gcc fname.c -lm -time 

Is the -ltime part right ? 
If not , How do I do it? 
It says undefined reference to function

Thanks a lot


- Preeti
 
    @@@    
   @^ ^@
  @ O O @
  @\ V /@  
  @@   @@ 

------------------------------------------------------------------------

Luck favours the prepared mind.
     
                        - Louis Pasteur


------------- End Forwarded Message -------------


- Preeti
 
    @@@    
   @^ ^@
  @ O O @
  @\ V /@  
  @@   @@ 

------------------------------------------------------------------------

Luck favours the prepared mind.
     
                        - Louis Pasteur


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]