Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/24/09 08:46
Read: times


 
#161709 - How to use Libraries, are prototypes reqd?
I want some of my functions to be included in a Lib file. I have checked "Create Lib file" in "Options for target" & the lib file is created. but How to use it in other progs?

What I am doing is to copy the generated Lib file into another project (where its source file is located) and then adding the Lib file to that project just like source file. The prog compiles with 0 warnings, but the problem is that I have to provide the prototypes in the source file for the functions already included in Lib file (I tried providing prototype in lib file too, but didnt help).

So my queries are:
1) Is this the right way to use libraries?
2) How to do away with always including the func. prototypes in the src file? We dont need prototypes for sine cos etc...

Kindly help !

List of 10 messages in thread
TopicAuthorDate
How to use Libraries, are prototypes reqd?            01/01/70 00:00      
   lib + header file(s) goes hand-in-hand            01/01/70 00:00      
      put prototypes in header?            01/01/70 00:00      
         Should already be in a header file            01/01/70 00:00      
      Not exactly            01/01/70 00:00      
   Oh yes you do!            01/01/70 00:00      
      Why do warnings come?            01/01/70 00:00      
         Normally many small source files            01/01/70 00:00      
         so the solution is...            01/01/70 00:00      
            most likely            01/01/70 00:00      

Back to Subject List