new to linux
hello!
i am new to linux and i am from electronics and instrumentation branch.can any one suggest me what to learn and how to learn this field.i am working with linux since 30 days.And please post if any openings in companies. |
Hello and welcome to the forum.
You can start by learning basics of Linux theoritically and then apply the same in practicle environment. Download some VM (VMware, Virtual Box etc.) and install it in your PC and then install your favourite Linux version in the VM and start practicing. You can find some good guides/tutorials here: http://tldp.org/guides.html http://wiki.linuxquestions.org/wiki/Main_Page http://www.linuxquestions.org/questi...x-linux-35305/ |
Welcome!
|
thank you all!and can i know how to post more questions in this LQ?
|
|
Quote:
However, login into your account, select appropriate forum and then on the top left side, select New Thread option to post a new question. Further, you can check My LQ section (you can see this option available on top right side) to check your subscribed threads, posts and updates. Before posting, have a look into this. |
linking dynamic libraries
i did a program which shd return the results of division and remainder.i created two dynamic libraries in which one is dependent on other.
i hav created dynamic library with name libari.so and it contains the following prog which is converted into relocatable file and stored int div(int a,int b,int *p) { *p=rem(a,b); return a/b; } and then i created a dynamic library with name librem.so & it contains the following prog which is converted into relocatable file and stored int rem(int a,int b) { return a%b; } then i created a test case which is following #include<stdio.h> int main() { int a=40,b=20; int *p; p= &rem; ret=rem(a,b); printf("%d\n",ret); return 0; } i hav linked the two dynamic libs and executed the test case to get the results of quotient and remainder but i am getting the error like "rem is undeclared".and following are all the commands i hav used vim div.c gcc -c fpic div.c vim rem.c gcc -c fpic rem.c gcc -shared rem.c librem.so gcc -shared (path of librem.so)/librem.so libari.so(as the div.o is dependent on rem.o) gcc test.c libari.so so can please some one where i did a mistake and what commands i should use if any wrong |
how to use LQ
i am not finding any option like post new thread so please can any one tell where is the option to create a new thread?and how to see questions of others?
|
1 Attachment(s)
Here:
|
Hi, at the top of this page is Home next Is Forums clicking that takes you to categories for your above post should go in Programming or :Pengy: Linux - Software also look at Tutorials in the same bar as Home and Forums. Good luck and have fun, you can find many Linuces (or linuxes if you prefer) to try in the first link of my signature as well... :)
|
Also, please use code tags https://www.linuxquestions.org/quest...do=bbcode#code to post code or data.
|
Quote:
|
this should probably go in a new thread
Quote:
i think you need the -l option to tell gcc to link with another object. |
All times are GMT -5. The time now is 07:35 AM. |