News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

debugger can't find file.

Started by grayarea56, September 22, 2023, 08:25:26 PM

Previous topic - Next topic

grayarea56

The program runs fine without the debugger.
But when I single step some basic C functions, for instance strcpy, I get this message in the debugger:
Cannot open file: ../sysdeps/x86_64/multiarch/strcpy-avx2.S
Does anyone know what's going on?
Oh, BTW, I'm using WSL Ubuntu under windows 10.
Thanks,
Dan Gray
P.S. here's my test code:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>

int main()
{
    printf("Hello world!\n");
    printf("Sqrt2=%f\n",sqrt(2.0));
    double two = 2.001;
    printf("Sqrt2.001=%f\n",sqrt(two));
    char  goodby[100];
    goodby[10] = 0;
    char hello[100];
    strcpy(hello,"hello");
    hello[5] = 0;
    strcpy(goodby, hello);
    printf("goodby=%s",goodby);
    return 0;
}





stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]