Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.


I have little experience with LINUX . I am using Debian.
It has a library glibc which has several useful programs.
iconv is the program that i want to use to do several charset conversions...
However i want to create my charset to use it at a really old from 1978 dot matrix heavy duty printer which has a custom charset for my language... Capital latin /greek only 7 bit
So i should write my own module for iconv...
I found how to configure it and make it but i dont know how to do the compilation.. from source .c file to .so file.... If there is no solution i will try to build from source the libc libray and copy the .so file that it should generate (think so)...

share|improve this question
    
It's not so clear here. You want to know how to use gcc to compile C program? –  Tshepang Jan 23 '11 at 13:28
    
yes.. i want to compile it into a .so so that it can be used/executed. –  Parhs Jan 23 '11 at 13:31

1 Answer 1

up vote 1 down vote accepted

A quick search led me to this HOWTO. I have no experience with this, but your command will look similar like this:

gcc -shared -Wl,-soname,your_soname -o library_name file_list library_list
share|improve this answer
1  
Where you_soname should be the name of your charset, and library_name should be that name followed by .so. –  Gilles Jan 23 '11 at 18:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.