Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Kat B on November 21, 2018, 05:53:21 am

Title: Copying workspace folder
Post by: Kat B on November 21, 2018, 05:53:21 am
Hi! I have a project that works. I would like to copy that to another folder and still be able to compile/link in that project copy. What settings do I need to change where so that the project copy in the new location can still function?

I have copied and renamed the folder, but when loading the project and building, I'm getting errors such as:

Compiling: GatewayWinUSB.c
mingw32-gcc.exe: [incorrect path]/GatewayWinUSB.c -o obj\Debug\GatewayWinUSB.o: No such file or directory
mingw32-gcc.exe: no input files
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

The correct path has a space in it. The working project recognises that space and has no issue. The project copy drops the first part of the path (everything before and including the space).

Surely what I want to do is pretty straightforwards and happens all the time?

Thanks!

Kat
Title: Re: Copying workspace folder
Post by: Kat B on November 21, 2018, 05:56:05 am
Sorry! Not workspace, project.

Also, found the solution to my problem. I 'Saved the project as' and saved it in the new folder. Bob's my uncle and it all works ! :-D
Title: Re: Copying workspace folder
Post by: oBFusCATed on November 21, 2018, 08:22:43 am
Generally you want to setup your project only with relative paths. Then moving the project should work as expected.

What is the path that causes problems?
And where in the project/build options have you set it?

I'm asking to see if this is a bug or misconfiguration.