Author Topic: No such file or directory  (Read 8084 times)

Offline Lalpekhlua

  • Single posting newcomer
  • *
  • Posts: 3
No such file or directory
« 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.Pls help me and thanks in advanced

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7254
Re: No such file or directory
« Reply #1 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.

Offline Lalpekhlua

  • Single posting newcomer
  • *
  • Posts: 3
Re: No such file or directory
« Reply #2 on: November 11, 2015, 09:01:50 am »
Dosent fix it.

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: No such file or directory
« Reply #3 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.

Offline Lalpekhlua

  • Single posting newcomer
  • *
  • Posts: 3
Re: No such file or directory
« Reply #4 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))
 

Offline raynebc

  • Almost regular
  • **
  • Posts: 217
Re: No such file or directory
« Reply #5 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.

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7254
Re: No such file or directory
« Reply #6 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.