Code::Blocks Forums

User forums => Help => Topic started by: Lalpekhlua on November 11, 2015, 07:30:13 am

Title: No such file or directory
Post by: Lalpekhlua on November 11, 2015, 07:30:13 am
I haven't encountered a problem No such file or directory until recently my codeblock 13.12 showed me it.I've searched on many forums etc but could not found any solutions.Here what it looks like http://imgur.com/OuYQAkf (http://imgur.com/OuYQAkf).Pls help me and thanks in advanced
Title: Re: No such file or directory
Post by: Jenna on November 11, 2015, 07:43:27 am
Not really helpful.
A text-copy of a fullk rebuild from "Build log" is better in almostz all cases.

But my guess:
put the file(s)/project(s) in a folder without any special characters and spaces in the path and try again.
Title: Re: No such file or directory
Post by: Lalpekhlua on November 11, 2015, 09:01:50 am
Dosent fix it.
Title: Re: No such file or directory
Post by: scarphin on November 11, 2015, 11:20:35 am
Not really helpful.
A text-copy of a full rebuild from "Build log" is better in almost all cases.
Title: Re: No such file or directory
Post by: Lalpekhlua on November 13, 2015, 12:42:59 pm
This is the build log:


 Build: Debug in kk (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe  -o bin\Debug\kk.exe obj\Debug\main.o  [highlight color=”yellow”]-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32[/highlight]  "C:\Program Files (x86)\CodeBlocks\MinGW\lib\libbgi.a"
mingw32-g++.exe: error: [highlight: No such file or directory
mingw32-g++.exe: error: color=”yellow”]-lbgi: No such file or directory
mingw32-g++.exe: error: C:\Program Files (x86)\CodeBlocks\MinGW\lib\libbgi.a: No such file or directory
Process terminated with status 1 (0 minute(s), 0 second(s))
3 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 
Title: Re: No such file or directory
Post by: raynebc on November 13, 2015, 08:54:50 pm
My guess as to what the problem is:

http://www.mingw.org/node/24/revisions/278/view
Quote from: MinGW install instructions
The default installation directory, as pre-configured within the installer, is C:\MinGW. Unless you are very sure you know what you are doing, you should not change this; in particular: never install MinGW into any directory which includes spaces in its absolute path name.
Title: Re: No such file or directory
Post by: Jenna on November 13, 2015, 09:52:01 pm
mingw32-g++.exe  -o bin\Debug\kk.exe obj\Debug\main.o  [highlight color=”yellow”]-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32[/highlight]  "C:\Program Files (x86)\CodeBlocks\MinGW\lib\libbgi.a"
mingw32-g++.exe: error: [highlight: No such file or directory
mingw32-g++.exe: error: color=”yellow”]-lbgi: No such file or directory
mingw32-g++.exe: error: C:\Program Files (x86)\CodeBlocks\MinGW\lib\libbgi.a: No such file or directory
Process terminated with status 1 (0 minute(s), 0 second(s))
3 error(s), 0 warning(s) (0 minute(s), 0 second(s))

It looks like you copied the commandline from a web-side.
I suggest remove at least the part in the squre-brackets, as it is obviously some kind of side-description and make sure all used files exist in the correct places.