Search:

Type: Posts; User: coder123321

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    955

    thanks alot! that was exactly the problem. ...

    thanks alot! that was exactly the problem.

    ragstoriches - you are correct as well. when i ran it with gdb it was pretty apparent. strangely when i ran it with o3 optimization the gdb was actually...
  2. Replies
    3
    Views
    955

    sorting algo causing seg fault

    any ideas on how I could fix this seg fault would be great! thanks!



    template <typename I>
    void merge(I begin, I mid, I end, bool (*compare)(typename I::value_type &x, typename I::value_type...
  3. Thanks alot the code finally compiled. I think...

    Thanks alot the code finally compiled. I think the issue was mostly related to the way I was trying to compile. I was simply calling gcc mergeSort.cpp mergeSortContainer.cpp -o mergeSort, but when I...
  4. heres the error i get: gcc mergeSort.cpp -o...

    heres the error i get:


    gcc mergeSort.cpp -o mergeSort
    mergeSort.cpp: In function `int main()':
    mergeSort.cpp:22: error: no matching function for call to...
  5. I tried your suggestions/retried implementing the...

    I tried your suggestions/retried implementing the tutorial instructions and to no avail. here is the current code, which gives me the same linker errors



    //mergeSort.cpp
    #include <iostream>...
  6. What do you mean by that? Should I just change...

    What do you mean by that? Should I just change mergeSortContainer.cpp to .h? I have read that article you refer to and tried both suggestions and neither one seems to work.
  7. C++ templated function causing linking errors

    class mergeSort.cpp


    #include <iostream>
    #include <vector>
    #include "mergeSortContainer.cpp"

    using namespace std;

    template void merge<vector<int>::iterator>(vector<int>::iterator begin,...
Results 1 to 7 of 7