Author Topic: Execvp error  (Read 414 times)

Offline Austine1234

  • Single posting newcomer
  • *
  • Posts: 2
Execvp error
« on: December 22, 2022, 06:18:34 pm »
Am using fedora 37 Linux.....I just installed codeblocks on my machine but as I was testing it out. I wrote a few lines of code and as I try building it it give me an error of "no such file or directory" and I can't get rid of it. I tried vs code it's also giving the same error something like "execvp" Please help.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1266
Re: Execvp error
« Reply #1 on: December 22, 2022, 07:21:59 pm »
Post a full rebuild log following this instructions.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1266
Re: Execvp error
« Reply #2 on: December 22, 2022, 07:34:41 pm »
Do not use personal messages, just hit Reply under the last post.

You can attach files, including images; The logs can be attached, but for small sizes it is better to paste them inside code tags as explained in the link I gave you.

Offline Austine1234

  • Single posting newcomer
  • *
  • Posts: 2
Re: Execvp error
« Reply #3 on: December 22, 2022, 07:47:18 pm »
I hv attached an image

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1266
Re: Execvp error
« Reply #4 on: December 22, 2022, 10:04:03 pm »
execvp tries to execute cc1plus and it fails. Probably you do not have configured or installed the toolchain correctly: the compiler is "x86_64...gcc" but the linker is only "g++". Both look invalid to me, the compiler is for C files and the linker is not working.