Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
in man.c file of second project :-
----------------------------------
Code:
#include <stdio.h>
#include <stdlib.h>
int intvalidation(char *iint);
int AddInt(int i1, int i2);
int main()
{
unsigned int x, y, sum = 0;
char *num1, *num2;
num1 = (char *)malloc(6);
printf("\n Enter number x = ");
scanf("%s", num1);
if(!intvalidation(num1))
{
printf("\n number %s is invalid \n", num1);
exit(1);
}
x = atoi(num1);
num2 = (char*) malloc(6);
printf( "\n Enter number to add: ");
scanf("%s", num2);
if(!intvalidation(num1))
{
printf("\n number %s is invalid \n", num2);
exit(1);
}
y = atoi(num2);
//sum = x + y;
sum = AddInt(x, y);
printf("\n %d + %d = %d", x, y, sum);
return 0;
}
now when i compile first project ( int_valid )
thsi generates sharedfile as :-
"liblibint_vaild.so"
why it is having two "lib" not a single one lib.
and second thing that how to link library file in our project.
Someone is keeping track of your doings rahulvishwakarma.
I try to look at posting history when I remember a particular user. Always odd when someone says they've been working with something for years, and asks questions about the basics.
I try to look at posting history when I remember a particular user. Always odd when someone says they've been working with something for years, and asks questions about the basics.
were you a hall monitor in your youth?
odd? well ... some only take what they want to learn and what they need to learn to get it to work and should learn and keep them separated. which as we see can hinder more then do good.
the Ole, ask when needed then keeps kicking in. But, yes, he should know how to do his setup to compile whatever it is he is writing by now. I've only used codeblocks a few times, and again am currently and I am happy to report that remembered that part.
odd? well ... some only take what they want to learn and what they need to learn to get it to work and should learn and keep them separated. which as we see can hinder more then do good.
the Ole, ask when needed then keeps kicking in. But, yes, he should know how to do his setup to compile whatever it is he is writing by now. I've only used codeblocks a few times, and again am currently and I am happy to report that remembered that part.
I've said many times in the past, that I never mind helping someone. But at some point, that person is going to have to do for themselves. After being here for eight years, using Codeblocks for at least 4, and hardly EVER replying/saying thank-you/following-up/marking solved, that time is past.
No insult intended if you took it that way. one that pays attention to details about people and holds them accountable, was all it meant.
Quote:
Originally Posted by TB0ne
I've said many times in the past, that I never mind helping someone. But at some point, that person is going to have to do for themselves. After being here for eight years, using Codeblocks for at least 4, and hardly EVER replying/saying thank-you/following-up/marking solved, that time is past.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.