CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: LMHmedchem

Page 1 of 5 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    106

    Re: calling a script from a makefile

    Well I was able to get this working,

    in makefile,

    OS_NAME:=$(shell ./find_OS_NAME.sh)

    in bash script find_OS_NAME.sh,


    # script to find the OS distribution and version
  2. Replies
    1
    Views
    106

    calling a script from a makefile

    Hello,

    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,...
  3. Replies
    5
    Views
    219

    Re: parsing of char array won't finish

    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....
  4. Replies
    5
    Views
    219

    Re: parsing of char array won't finish

    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...
  5. Replies
    5
    Views
    219

    parsing of char array won't finish

    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...
  6. Thread: gnu on mac

    by LMHmedchem
    Replies
    0
    Views
    183

    gnu on mac

    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...
  7. Re: run program in dll mode (if that is the right concept)

    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...
  8. Re: run program in dll mode (if that is the right concept)

    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...
  9. run program in dll mode (if that is the right concept)

    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...
  10. Re: delete vector of objects, single objects, dealocate menory

    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...
  11. Re: delete vector of objects, single objects, dealocate menory

    I am a bit unclear on the syntax for doing this. Do you mean,


    // in .h file
    extern dataSet newSet;

    // in src file
    dataSet newSet;

    // to re-initalize
  12. Re: delete vector of objects, single objects, dealocate menory

    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;
    ...
  13. delete vector of objects, single objects, dealocate menory

    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...
  14. monitor cpu usage while app is running (windows cygwin)

    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...
  15. Re: more questions about getline() getting a specific line

    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...
  16. more questions about getline() getting a specific line

    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...
  17. Replies
    9
    Views
    451

    Re: opening files were name contains '

    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...
  18. Replies
    9
    Views
    451

    Re: opening files were name contains '

    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...
  19. Replies
    9
    Views
    451

    opening files were name contains '

    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,

    N,N'-dimethylethylenediamine.mol

    I...
  20. Re: how does getline() know what line it's getting???

    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...
  21. Re: how does getline() know what line it's getting???

    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,...
  22. Re: how does getline() know what line it's getting???

    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.

    LMHmedchem
  23. Re: how does getline() know what line it's getting???

    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...
  24. Re: how does getline() know what line it's getting???

    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...
  25. Re: how does getline() know what line it's getting???

    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),...
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width