LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-09-2013, 11:20 PM   #1
korrapati yamini
LQ Newbie
 
Registered: Nov 2013
Posts: 5

Rep: Reputation: Disabled
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.
 
Old 11-10-2013, 01:17 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
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/
 
2 members found this post helpful.
Old 11-10-2013, 02:07 AM   #3
kooru
Senior Member
 
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 273Reputation: 273Reputation: 273
Welcome!
 
Old 11-11-2013, 12:30 AM   #4
korrapati yamini
LQ Newbie
 
Registered: Nov 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
thank you all!and can i know how to post more questions in this LQ?

Last edited by korrapati yamini; 11-11-2013 at 12:43 AM.
 
Old 11-11-2013, 01:48 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,362

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
Try this http://rute.2038bug.com/index.html.gz
 
Old 11-11-2013, 02:55 AM   #6
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Quote:
Originally Posted by korrapati yamini View Post
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.
 
Old 11-11-2013, 07:43 AM   #7
korrapati yamini
LQ Newbie
 
Registered: Nov 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
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
 
Old 11-11-2013, 07:48 AM   #8
korrapati yamini
LQ Newbie
 
Registered: Nov 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
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?
 
Old 11-11-2013, 07:57 AM   #9
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
Here:
Attached Thumbnails
Click image for larger version

Name:	snapshot1.png
Views:	11
Size:	87.3 KB
ID:	13941  
 
Old 11-11-2013, 08:05 AM   #10
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,553
Blog Entries: 2

Rep: Reputation: 1054Reputation: 1054Reputation: 1054Reputation: 1054Reputation: 1054Reputation: 1054Reputation: 1054Reputation: 1054
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 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...

Last edited by jamison20000e; 11-11-2013 at 08:06 AM.
 
Old 11-12-2013, 01:51 AM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,362

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
Also, please use code tags https://www.linuxquestions.org/quest...do=bbcode#code to post code or data.
 
Old 11-12-2013, 07:47 AM   #12
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,120

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
Quote:
Originally Posted by korrapati yamini View Post
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).
 
Old 11-12-2013, 07:53 AM   #13
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,120

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
this should probably go in a new thread
Quote:
Originally Posted by korrapati yamini View Post
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.

Last edited by schneidz; 11-12-2013 at 08:00 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off




All times are GMT -5. The time now is 10:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration