Ancient Dragon commented: Learn something new every day :) +24
I am using qcheck=all while compiling my makefiles.
When I am running the binary file generated then it is converting integer to a double value
For eq: 612 to 612.0
Can anybody help me to know the reason why?
Regards,
Ankur.
Hi All,
Where can I find the source code for ssl in linux
I have to send a file encrypted with ssl in linux
It would be helpful if anyone can send me the steps for that
Regards,
Ankur.
Is there any command that I can use for getting the memory usage and where can I find the executable of either Gnome/Source Monitor which i can use for finding the memory usage
Is there any command that I can use for getting the memory usage and where can I find the executable of either Gnome/Source Monitor which i can use for finding the memory usage
Hi,
I want to get the memory usage of my process in Suse.
I have used some command like top,ps v but the they give the percentage of memory used while I want the amount of memory used
Is there any other command that can give me the amount of memory usage for my process
Thanks,
Ankur.
I have taken the opensoruce from
~wagnerr/ConfigFile.html for reading
configuration file. It perfectly works fine with gcc 3.2.3 and it fail
to compile with gcc 3.4.3 on RHEL 4
I am getting following error
g++ -Wno-trigraphs -Wno-unused -Wno-deprecated -Wpointer-arith
-fno-common -fno-strict-aliasing -fexceptions -DC_GCC_C -DC_GCCBJC
-DC_GCC_CPP -fPIC -D_GNU_SURCE -DC_GNUSTEP -DC_LITTLE_ENDIAN
-DDEBUG
-DDINDICATIN_DIR=\"/var/cache/pegasus\" -g
"-DCM_WHATSTRING=\"evtfrmw IndicationProvider
\"" -fpermissive
-I/opt/tog-pegasus/include
-c -o
In file included from
/
am:640,
from
,
from
/
sstream.tcc: In member function `virtual typename
std::basic_stringbuf<_CharT, _Traits, _Alloc>::int_type
std::basic_stringbuf<_CharT, _Traits, _Alloc>::overflow(typename
_Traits::int_type)':
/
sstream.tcc:104: error: expected unqualified-id before '(' token
cons: []
Error 1
cons: errors constructing
Can anybody encounted this problem? Any idea where to fix this problem?
I have found the same error reported by somebody on Solaris
with
no responses
Thanks in Advance
Which brings up a question to a TS: why your libraries are separate?
Actually we have a project in which we are using js open source files making it a lib and we have a seperate component lib.
Now they are certain files which are dependent on each other.
We cannot combine it either.
so we have seperate libs
List one of them twice?
tried not working
I tried 1 2 1
2 1 2
1 2 1 2
2 1 2 1
no one is working
What have you tried?
AKAIK, the GNU linker re-scans libraries, so the order it less important.
When I am trying to link,the linker is giving unsatisfied symbol.
because the symbol mentioned in one is dependent on the other
In Suse I have got 2 libs which I have to use to link with my source files but they are interdependent on each other.
Means if the 2 libs are A and B than
A is dependent on B and B is dependent on A
In that case what should be the order in which we link the lib so that we dont get linking error
Or can there be any other solution
Hello.
I have a question about Const Int and Points
I have this code
const int j=18; int *k= (int)&j; *k=110; printf("Data: %d -> %d; %d : %d-> %d\n", &j, j, k, &k, *k);
this well return for me
Data: 2280676 -> 18; 2280676 : 2280672-> 110
but if i remove "const" well i have
Data: 2280676 -> 110; 2280676 : 2280672-> 110 this work.But how can same memory address have two int ( 18 and 110 )
Can somebody tell me how this are possible?
Try again it will give 110 for both
I once made a small kernel just for pure fun. It was very poor and I can really advise you on just one part of it.
> Memory management
You can use parts (or whole) code from this site:
http://www.fourmilab.ch/bget/
I believe it's GPL, find out for yourself.If you need any more tips on OS concepts, visit:
http://wiki.osdev.org/Main_Page
and
http://forum.osdev.org/
for further help.You can also try GeekOS code for some tips on implementing. Here's a link to Sourceforge site:
http://geekos.sourceforge.net/Hope it helps.
I liked the projects and were very helpful but I felt they are a bit advanced.Can you provide me some links were I can get basics of OS and slowly advances to higher level
Thanks
I am starting to learn C basic OS Concepts and I have to code them using C.
Can anyone suggest me some good links where I can get basics of the complete OS Concepts like (process,IPC,thread,sheduling,File management,Memory management, Security)
I have got good idea about the concepts but I am very poor in implementing those in C code
So what I am looking for is code for the above concepts
Thanks in advance..
How to support Pthread calls like(pthread_create) in Vxworks 5.5
We have include the macro INCLUDE_POSIX_PTHREAD but we are getting linker error while loading.
We tried to build the bsp(In tornado 2.2) with the pthread after changing the config file but we were not able to build the bsp
1. Can I compile a single program than runs on both 32 and 64?
2. I have a 64bit Debian Linux and tried to compile using -m32 but returned error. I'm probably missing some package. Any ideas?
raigs@mycomputer:~/Desktop$ gcc -m32 pig.c In file included from /usr/include/features.h:361, from /usr/include/stdio.h:28, from pig.c:1: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory raigs@mycomputer:~/Desktop$
There are diffrent compiler options for 32 bit and 64 bit in diffrent platforms.
You can get more detail about that in the below link.
http://www.openlinksw.com/dataspace/dav/wiki/Main/VOSMake
How to:
1. Buffer output ?
2. Get its size ?
3. Print the buffer ?#include <stdio.h> int main(void) { printf("Tons of printf lines\n"); // 1. Somehow buffer the output up until this point printf("The size of the buffer is: %i\n", SIZEOFBUFFER); // 2. Get and print the size of the buffer. printf("Here is the output:\n\n%s", BUFFER); // 3. Print the buffer. return 0; }
What is SIZEOFBUFFER and BUFFER in your code and can you explain clearly what you want
If you want to run the program with the 32 bit compiler include -m32 in your compiler option
If you want to play a .wav file you can use mfc program in vc++
to do so
Make a project in mfc and use some of there API's like
sndPlaySound or PlaySound
The same you can put in an array if you want
Please mark the thread as solved after it gets solved
It helps the onlooker and the members to know which threads are solved ad they can look into those problems if they have a similar query.
But in many occassions it happens that even after the problem is solved the thread creater doesnot close the thread as solve.
This should not be done and we should make an habit to always close the thread after our brilliant forum members solves the problem.
Thanks very much for the clarification.
Structures are used when you want to use every member of the structure at the same time
while in union only one of the member can be used
Union is very helpful in many cases where there are switch cases and we have to use only one of the members in our list
just remember that
for windows getch and getchar can be used using the header file <conio.h>
In linux for the same you require <stdlib.h>
which are the runtime file that I have to check
I have the runtime.
What i am trying to do is that a server is running in my PC.
When a client requests than with my program I have to check that does his PC has the runtime library or not.
For that there should be a place where some regitery files of VC ruuntime is present which i can query.
I am running a program(client) that creates about 20000 sockets.
After closing this exe when I again want to run than some of the sockets still remain alive and are not closed.
Is there any mechanism that I can close these socket just after my exe terminates.
I am using non-blocking sockets.
Can anyone just give me the info where the microsoft visual studio runtime files are present
I want to check by a c program that in a system Microsoft Visual studio Runtime is present or not.
The system might not have complete package of Microsoft Visual studio but we can run a c or c++ program using Microsoft Visual studio Runtime(MVSR)
I want to know that is there any place where any registry files of MVSR are kept which I can search from my program that in a particular PC MVSR is there or not.
what is the time that select func in socket programming waits before continuing.
Like till how much time it can receive msg from diffrent clients before proceeding to serve the request.
One more question.
Can we send 500 messages from 500 diffrent clients at the same time to a server and the server will be able to process all of them.
If yes how.
Thanks for the rsp
ok i reached the particular statement
than what command should i use to get the error
How can we get the last error occured in linux.
suppose there is a connect() func error in that case how to get the error that occured.
poll and epoll are like select.
While through select you can establish only 1024 connections using poll and epoll we can establish 200,000 connections
In places where we need more no. of socket poll and epoll are prefered
Though they are only available at Linux.
One sample site I got is
http://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/index.jsp?topic=/rzab6/example.htm
Anyone visiting can refer this it is good.
Where can I find sample client-server program using poll.
Or if someone has it can they share it.
thanks for such a good hyperlink which has the full information with code
Hi,
Has someone got a code of skip list(in link list).
Skip list is a list through which we can do binary search in a link list
Thanks....
this is also good
If you find such good links plz keep me informed
Of whatever topics are present there I believe it will be very useful
Thanks a lot!!!!
I am not able to find a good MFC Tutorial.
Do anyone has got a link for a MFC Tutorial which consists from basic to advance.