Thanks Salem for the reply. fpos_t is typede'd to long is Sun Solaris but I find that on my Linux it is typedef'd to __c_streampos; On my Sun machine I could use code like
fpos_t obj;
if (!obj) {...}
But this does not seem to be the right approach with __c_streampos? Could you suggest an...
I have a strange problem on my gcc 3.2.2 installed in my SuSE Linux box. It does not compile a simple source file containing fpos_t. Strange. Am I missing some thing? It gives me error invalid initializer fpos_t
I set up a test case in which I populate 15,000 rows in a table using isql and monitoring Sybase performance on SUN and LINUX boxes. I get an average performance of about 40 inserts per second on a low end 360 MHz Sun machine and an average performance of about 13 inserts per second on a 2.8 GHz...
Ping using protocol NLWNSCK. Net-Lib protocol driver call to connect 2 end points failed."
This is the error message I get when I try to ping my Sybase installation on the SuSE LINUX box. I can ping using the same utility to the Sybase database installed on Solaris. So, I'm sure there is no...
Error message is:
rdbms80.map(0) : FILE_NOT_FOUND while mapping rdbms80
while I try to install Oracle using the set up program.
The background screen is:
Oracle Installer - "Analyzing Dependencies"
Is this only C code - because if you have C++ compiler I would highly recommend the use of functionoids in such a scenario.
Do let me know if you need more info on how to use functionoid's with multithreading...provided ofcourse you are using a C++ & not a C compiler
Cheers
MQ-NEWBIE >>
Is it possible to set up the default configuration on a machine that uses DHCP ?
If yes, I have configured using settings described below:
* WebSphere MQ will create a queue manager on this computer called - QM_my_computer_name
* Allow remote administration of this queue...
Thanks for the reply. But assume for a moment that I can't login to my unix box for some security reasons ? What is the alternative using windows ftp ?
I'm trying to ftp files from my Windows 2000 desktop to my unix box. I use ftp on windows command prompt. My problem is that once a folder has files in it, I can't remove it using the conventional UNIX rm -r option. If I issue rmdir folder_name - from my Windows desktop after ftp - I get the...
I have a C++ file with an extension as .cc ? I use VC++ 6.0. How do I compile this file ? The nmake utility which internally uses the cl compiler does not create a fuss about compiling c++ files with a .cc extension ? Why then does the graphical interface ?
Cheers
OK...I declare my own structure as
extern "C" {
struct test_str {
int a;
};
}
As per the above explanation
test_str *ptr1 = new test_str; // (1)
should not work. Instead
struct test_str *ptr2 = new struct test_str; // (2)
should work.
But both (1) & (2) work. Why ?
Yes struct stat* st = new struct stat;
works perfectly...but can someone explain whats happening ? I declare another structure as:
struct test {
int test1;
};
There is only a tag name - no typename, why does the line:
test *ptr_test = new test;
compile perfectly without the struct keyword...
How do I grep for more than 1 word in a line ?
If I have the following file:
a.txt
-----
abc ghi def
abc xyz
abc def ghi
I want to isolate only lines containing words abc & def
How do I acheive this ?
I have some doubts regarding the use of fstat(). The function signature described in ..\VC98\Include\Sys\stat.h is
_CRTIMP int __cdecl fstat(int, struct stat *);
The confusion is that in my c++ program if I pass a local (stack) variable declared as
struct stat st;
int result =...
More Advances....
I want to modify my search pattern now
Assume I have the file a.txt
a.txt
-----
#ifdef USE_stub_in_nt_dll
...
#ifdef USE_stub_in_nt_dll
...
ifdef USE_stub_in_nt_dll
....
..
#ifdef USE_stub_in_nt_dll
If you observe there is only ONE USE_stub_in_nt_dll which is uncommented...
Thanks Vitellozzo,
I tried contacting Duncan Grisby. Apparently this developers group is moderated in a stringent manner. So far I could only apply for subscription and my subscription request is being enacted upon. Neverthless, the information was useful.
Merci!
areza123@yahoo.com
Ok...actually your confusion created some new ideas with me which actually solved my problem.
The final solution to the above problem is
grep -R -C 1 "ostream_iterator" *
would search files listed in all subdirectories for the string "ostream_iterator" which is what I...
Thanks for your help. I really appreciate. Now let me extend the problem statement to a more complicated but useful search technique....
man ls | grep -C 10 "recur"
works perfectly fine i.e. shows the 10 lines close to recur...the point here is that the output of man ls is one...
hey jad thanks for the quick response but I was looking for the search technique not the command.
Example:
When I execute man ls ...it gives me about 100 lines output....but I only need to see few lines in between say...
-R, --recursive
list subdirectories recursively...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.