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...
Type: Posts; User: coder123321
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...
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...
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...
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...
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>...
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.
class mergeSort.cpp
#include <iostream>
#include <vector>
#include "mergeSortContainer.cpp"
using namespace std;
template void merge<vector<int>::iterator>(vector<int>::iterator begin,...