Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Re: One C question

Reply
Thread Tools

Re: One C question

 
 
Malcolm
Guest
Posts: n/a
 
      07-03-2003

"Helen" <> wrote in message
>
> I have already got one C file for matrix inversion,
> so I hope I can build this matrix inversion function into
> some library, so that I can call it from another C file.
> What should I do?
> Where can I find detailed information about that?
> Thanks a lot!
>

There's not really much advantage in having a formal library unless you have
a lot of code in there and want to use it for several projects.
The simplest solution is just to add the source file with the matrix
inversion code to the current build. Then you don't lose the source, it is
easy to inspect it and modify it in case of bugs.
However if you really want a library, you have to invoke the C compiler in
"build library" mode. It will then output a library file, which the linker
will be able to link.
Unfortuately the specifics of how to do this vary from compiler to compiler.
In MSVC++ you declare your project as a "static library", and it handles all
the rest for you.


 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can one declare more than one signal on one line? Merciadri Luca VHDL 4 11-01-2010 02:00 PM
Nike air force one, air force 1, air force one low cut, air force one salewholeta@163.com Digital Photography 3 12-31-2008 04:29 PM
Samsung SCD6040 - Anyone have one, used one, or have reviews on one? g wills Digital Photography 0 09-08-2004 08:06 PM
CSS aligning two things on one line with one left and one right news.frontiernet.net HTML 6 04-16-2004 02:44 AM
Using One XSLT and multiple XML Problem (One is XML and another one is XBRL) loveNUNO XML 2 11-20-2003 06:47 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57