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

Search:

Type: Posts; User: ajiten73

Search: Search took 0.04 seconds.

  1. Re: srand48() : Unable to compile due to scope issues on Windows in Dev-C++.

    I request that the logic for functions (5, as stated below & in the inline text file) be clear; as don't know why the #5 th function is needed. Also, request why there are only 5 functions, & what...
  2. Re: srand48() : Unable to compile due to scope issues on Windows in Dev-C++.

    I am trying to understand the code, but am hindered by my inability to understand some critical lines.
    I request help for logic implied behind the below lines:

    1. line #177 : in function: void...
  3. Re: Is it possible to send verbose o/p of gcc to text file instead of standard output

    Thanks a lot. Please tell where to look for such information. I request that if some googling term be stated for the same, then even better.
  4. Re: Is it possible to send verbose o/p of gcc to text file instead of standard output

    $ gcc --save-temps --verbose ex1.c -o ex1__ 2>&1 | tee a.txt
    There is no space between '2' & '>'.
    Would request the meaning (action generated by) of '2 > '.
  5. Re: Is it possible to send verbose o/p of gcc to text file instead of standard output

    I expected the same, but it leads to a new file (if not already there, with >) which is empty, or causes no change with >> to an existing file.
    I am sorry, but request confirmation for {fn}. I...
  6. Re: Is it possible to send verbose o/p of gcc to text file instead of standard output

    No, the text file is just created but empty. For a new file (not created yet) used >, but failed. Even using >> (so as to append contents) does not help.
  7. Re: Is it possible to send verbose o/p of gcc to text file instead of standard output

    $ gcc --save-temps --verbose ex1.c -o ex1__ 2>&1 | tee a.txt

    The above works, but would like to know if any other way exists too, or not. If not, then why not.
  8. Is it possible to send verbose o/p of gcc to text file instead of standard output?

    I am trying to run the command :
    $ gcc --save-temps --verbose ex1.c -o ex1__

    and want to save the result in text file rather for easy reference later.
    Am using cygwin 7.3.0, with GNU C version...
  9. Re: srand48() : Unable to compile due to scope issues on Windows in Dev-C++.

    Thanks for making the purpose of random number generators clear.
    I also could trace the error why all square sides are = 1, in line #57; & replaced it with :
    build_list ->side = test_set[i];...
  10. Re: srand48() : Unable to compile due to scope issues on Windows in Dev-C++.

    I am confused by two aspects of program:
    1. random number generators are used everywhere, I feel this use can be avoided in many places.
    For e.g., line #54 (as stated in my last request) in code...
  11. Re: srand48() : Unable to compile due to scope issues on Windows in Dev-C++.

    I am unable to find the significance of '(lrand48() >> 4)' in the statement at line #54 :
    build_list->side = (lrand48() >> 4)%(SQUARE_SIZE_LIMIT)+1;, for the code in function: void...
  12. Re: srand48() : Unable to compile due to scope issues on Windows in Dev-C++.

    I am able to run, but would take your suggestion in consideration. I wanted to learn AI algorithms, but the coding in Python was cumbersome. Also, the existing Python code revealed a little due to so...
  13. Re: srand48() : Unable to compile due to scope issues on Windows in Dev-C++.

    Sorry, the code had two logical bugs reported as warnings too. The new code is here: https://onlinegdb.com/SJ0dzGSd4, and attached as file as:35525

    But, the program is taking infinite time to...
  14. Re: srand48() : Unable to compile due to scope issues on Windows in Dev-C++.

    I ran on Cygwin & got it running using g++. However, the code was problem area reported in a bigger code on Simulated Annealing, which is from book by Alan Parker, Algorithms and Data Structures in...
  15. Re: srand48() : Unable to compile due to scope issues on Windows in Dev-C++.

    Thanks for suggesting Posix, that prompted me to use cygwin. I ran on Cygwin & got it running using g++. However, the code was problem area reported in a bigger code on Simulated Annealing, which is...
  16. Re: srand48() : Unable to compile due to scope issues on Windows in Dev-C++.

    Please tell me what to do then. I am not clear as not able to find literature for that.
    I request that the exact change or literature link be provided.
    Due to lack of any knowledge, I naively...
  17. srand48() : Unable to compile due to scope issues on Windows in Dev-C++.

    Dev-C++ version 5.5.2 (Windows 7) gives compilation error that occurs in the last line in main():

    [Error] 'srand48' was not declared in this scope


    #include <sys/time.h>
    #include <cmath>...
Results 1 to 17 of 21





Click Here to Expand Forum to Full Width

Featured