Type: Posts; User:
Well I was able to get this working,
in bash script find_OS_NAME.sh,
# script to find the OS distribution and version
As advertized, I would like to call a script from a makfile to glean some information about the OS. What I more or less need is the OS name and version (CentOS-5.9, OPENSUSE-12.2, Cygwin,...
Unfortunately, I have had great trouble getting gdb to play nicely with g77. If anyone has a good writeup on how to do that, I would appreciate a link.
I add a second conditional in the for loop....
Once again, now that I have written the whole thing up, I see the problem. I swear that writing up a post is the best debugging exercise. The third string isn't found because there is no trailing...
I have some cpp code that is looping through an array of char looking for a delimiter. The code saves the chars in a string until it finds the delimiter, then it adds the string to a vector of...
February 16th, 2013
I have some code that I have been compiling for windows and linux using gcc, g++, and g77. I would like to take a look at compiling the same code for OSX. I have vbox VMs for the different OSs I...
September 9th, 2012
Thanks Paul, this has been helpful. Now I need to make up a simple dll and play around with the calling code. The amount of data being passed back and forth is not small. I would expect the calling...
September 8th, 2012
Thanks, that's a bit help. I will probably make generic functions (open_lib, sync_lib, close_lib) and abstract the OS specific functions in those. Is there a standard for passing data between the...
September 7th, 2012
I have a program that I would like to be able to call from other programs and pass data between the two programs though memory (meaning not file based). The program being called (calledApp.exe) is in...
August 4th, 2012
I probably need to pay more attention to resource management than I do, but I will leave that for another time.
That sounds like an interesting implementation. Do you have a reference for the...
August 2nd, 2012
I am a bit unclear on the syntax for doing this. Do you mean,
// in .h file
extern dataSet newSet;
// in src file
// to re-initalize
August 2nd, 2012
I think this is what I need to do in the end for the single object. It is declared as a global,
extern dataSet newSet;
and then data is just assigned,
newSet.max = *MAXNVX;
August 1st, 2012
I have been reading around a bit and there seems to be no straightforward way to do this.
I have a global vector of objects and a single object that I need to delete as part of the...
I am working on a parallel processing server/client app with a multi-threaded server and several data processing clients, each their own process. I am trying to optimize some of the parameters, such...
Thanks, I have re-written the function to grab n sub-units instead of all of them. There are allot of parts of the code that think they are done when the tasks list is empty, so I have changed the...
I am reading in some large files to process. The files need to be parsed into multi-line sub units for processing (by a different physical process). My current setup is crude and parses the entire...
Well it looks like the single quote was the problem. Both in the file names and some in the file listing the file names, there was not consistent usage of the same quote character. The curly single...
This is an interesting question. There may be a problem in that the list of file names comes out of excel and is then processed by a bash script. It looks like there may be more than one version of...
I have a cpp app that reads in a number of files and writes revised output. The app doesn't seem to be able to open a file with a ' in the file name, such as,
Both of these conditions seem to be true on a regular basis.
The problem is that I am getting values that are not the same, even when the files have the same number of lines. I think the next post...
I am having problems getting the logic to evaluate the way I expect.
I have the while loop as,'
bool have_line1; bool have_line2;
// get each line from both file in sequence,...
Is that just the -p flag with g++,
g++ -p -o myApp myApp.cpp
I don't use gdb because I have had trouble getting it to work with my fortran code.
This is probably the best approach since most of the time, there will not be a problem. The most likely reasons for there being an issue would be if I entered the wrong files in the arguments, or...
This is correct, there is an error if the number of lines don't match and the program exits.
As typically seems to happen, I started by asking one question and moved to another without adding the...
I added this code to count the lines in both files and then compare them.
// count the number of rows in the index file
index_line_size = count(istreambuf_iterator<char>(read_file1),...
Click Here to Expand Forum to Full Width