LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   new to linux (https://www.linuxquestions.org/questions/linux-newbie-8/new-to-linux-4175484066/)

korrapati yamini 11-09-2013 11:20 PM

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.

shivaa 11-10-2013 01:17 AM

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/

kooru 11-10-2013 02:07 AM

Welcome!

korrapati yamini 11-11-2013 12:30 AM

thank you all!and can i know how to post more questions in this LQ?

chrism01 11-11-2013 01:48 AM

Try this http://rute.2038bug.com/index.html.gz

shivaa 11-11-2013 02:55 AM

Quote:

Originally Posted by korrapati yamini (Post 5062267)
thank you all!and can i know how to post more questions in this LQ?

Like you posted your first question :-)

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.

korrapati yamini 11-11-2013 07:43 AM

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

korrapati yamini 11-11-2013 07:48 AM

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?

brianL 11-11-2013 07:57 AM

1 Attachment(s)
Here:

jamison20000e 11-11-2013 08:05 AM

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... :)

chrism01 11-12-2013 01:51 AM

Also, please use code tags https://www.linuxquestions.org/quest...do=bbcode#code to post code or data.

schneidz 11-12-2013 07:47 AM

Quote:

Originally Posted by korrapati yamini (Post 5061665)
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.

you mite want to take a look at fedora electronics lab spin (theres also one for robotics).

schneidz 11-12-2013 07:53 AM

this should probably go in a new thread
Quote:

Originally Posted by korrapati yamini (Post 5062513)
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

are you able to copy-paste the exact error... i think the compiler would print the line number and file it is complaining about. perhaps the rem function requires an include (like math.h).

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.