Search:

Type: Posts; User: Buckshot

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Bool values

    by Buckshot
    Replies
    2
    Views
    752

    Alright, thanks

    Alright, thanks
  2. Thread: Bool values

    by Buckshot
    Replies
    2
    Views
    752

    Bool values

    I know that bool values are only supposed to be able to be 0 or 1, but what could cause one to get the value of 24, and what does that even mean?
  3. Thread: Compiling

    by Buckshot
    Replies
    8
    Views
    1,448

    The library is libpgaO.a. The errors are all...

    The library is libpgaO.a. The errors are all like this:
    : undefined reference to `PGACreate(int*, char**, int, int, int)'

    and I'm curious as to what Salem was saying. I'm not sure how to...
  4. Thread: Compiling

    by Buckshot
    Replies
    8
    Views
    1,448

    I'm not sure, what woudl that look like, and how...

    I'm not sure, what woudl that look like, and how would I add it if it doesn't?
  5. Thread: Compiling

    by Buckshot
    Replies
    8
    Views
    1,448

    Isn't that what the -L flag does?

    Isn't that what the -L flag does?
  6. Thread: Compiling

    by Buckshot
    Replies
    8
    Views
    1,448

    I forgot to include: ga_ee is my project, the...

    I forgot to include:
    ga_ee is my project, the rest are all examples included with the package I downloaded
  7. Thread: Compiling

    by Buckshot
    Replies
    8
    Views
    1,448

    Compiling

    So I've downloaded a genetic algorithm package that was written in C, and I'm calling it from some C++ code, so I need to use g++ instead of cc. However it seems that I can't use the same tags in...
  8. Replies
    15
    Views
    3,099

    its the C code that can change. And yea, I've...

    its the C code that can change. And yea, I've gone through and know the places where there is small deviation, and these small deviations just add up to something large.
  9. Replies
    15
    Views
    3,099

    Ok, I see your point. I'll try that and see how...

    Ok, I see your point. I'll try that and see how it goes. Thanks
  10. Replies
    15
    Views
    3,099

    Well the three lines was just an example, there...

    Well the three lines was just an example, there is a lot of code and its spread out all over...
    I was told never to use floats by another computer science major, he said they're not standardized...
  11. Replies
    5
    Views
    1,738

    yay! stupid mistakes are so much better. easier...

    yay! stupid mistakes are so much better. easier to fix!
  12. Replies
    5
    Views
    1,738

    Sorry, yes, the declarations are in the header....

    Sorry, yes, the declarations are in the header. The defintions are in the file of the same name just .cpp extension.
    Makefile:


    In_out.o: In_out.h In_out.cpp
    g++ $(FLAGS) -c In_out.cpp...
  13. Replies
    15
    Views
    3,099

    A lot of these problems occur in arrays for...

    A lot of these problems occur in arrays
    for example:


    y_min_mu_pi_D[j] += y_min_mu_pi[i];

    the values in y_min_mu_pi_D end up being slightly off from the fortran values. And there are about...
  14. Replies
    5
    Views
    1,738

    oh ya the call in main that the error is...

    oh ya
    the call in main that the error is referencing:


    double score;
    double fChromNumOne = PGAGetRealAllele(ctx, p, pop, 1);
    double fChromNumTwo = PGAGetRealAllele(ctx, p, pop, 3);...
  15. Replies
    5
    Views
    1,738

    Undefined reference

    Hey guys, first I'd like to thank you for all your help in the past. Anyway, when I compile I get a whole bunch of "undefined reference to" and then a function call. I have these functions defined,...
  16. Replies
    15
    Views
    3,099

    It may be the order the calculations are done,...

    It may be the order the calculations are done, but most of them are pretty straight forward and linear (line 3 depends on lines 1 and 2 executing and line 2 depends on line 1). And like I said, the...
  17. Replies
    15
    Views
    3,099

    But the thing is that the outputted values don't...

    But the thing is that the outputted values don't go all the way out to six decimal points. I haven't tried long doubles, but REAL in Fortran is only 32 bit so that shouldn't matter.
  18. Replies
    15
    Views
    3,099

    Rounding errors

    I'm doing a conversion from Fortran 90 to C++ and I have run into a small (or large, I'm not sure) problem. In the Fortran there are some calculations and they use the REAL data type, which is...
  19. Thread: Killed

    by Buckshot
    Replies
    1
    Views
    1,775

    Killed

    I'm wondering what kind of error will result in linux issuing a 'killed' statement. For example, trying to access out of array bound will get a Segmentation Fault. I don't know what could make the...
  20. Replies
    3
    Views
    1,260

    bit clearing problem

    I'm using the following code to clear a bit in position pos (starting with position 0 on the far right) in the integer value. (Please don't comment on the stupidity of the code writing right now). ...
  21. Replies
    7
    Views
    1,383

    header.h: struct paramvar { int...

    header.h:


    struct paramvar
    {
    int nummark;
    double loc_net_dist;
    };

    static paramvar p;
  22. Replies
    7
    Views
    1,383

    Ok, sorry, let me clear it up a bit. The...

    Ok, sorry, let me clear it up a bit.
    The variable I'm dealing with is declared in a header file. This header file is included in both data_driver.cpp and In_out.cpp.
    data_driver, like its name, is...
  23. Replies
    7
    Views
    1,383

    Global variables

    I know it is bad practice to use globals, so please don't lecture me. However, I am using one global variable and it is doing something wierd. I have a value input from a file to it, and its value...
  24. Replies
    14
    Views
    2,222

    Doing this is what I would normally do. I did...

    Doing this is what I would normally do. I did this a bit differently because I wasn't really thinking. Its not really 2000 lines of undebugged code. There are some debugged parts, but I could...
  25. Replies
    14
    Views
    2,222

    Sorry, I wasn't clear. I haven't gotten it to...

    Sorry, I wasn't clear. I haven't gotten it to compile and not have this seg fault. The first time I got it to compile I got this error. Sorry about the confusion.
Results 1 to 25 of 48
Page 1 of 2 1 2