Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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. – GorillaApe Jan 23 '11 at 13:31
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
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


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.