Hi!
I have this code:
//#include <string> #pragma offload_attribute (push, target(mic)) #include <algorithm> #include <numeric> #pragma offload_attribute (pop) int main() { #pragma offload target(mic) { int a[10] = {0,1,9,2,8,3,7,4,6,5}; int b[10]; std::iota(b, b+10, 0); std::sort(b, b+10, [&](int i, int j){ return a[i] < a[j]; }); } return 0; }
The code compiles ok, except when I uncomment the "#include <string>". In this case I get a ton of undefined references.
Can anybody tell me why?
Thanks,
Martijn