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

Geoffrey

  • Guest
No such file or directory
« on: January 31, 2008, 12:05:19 pm »
Hi,
This post is concerning a WinXP machine with MinGW installed.

I installed codeblocks (28-01 build), and got my project imported, when i try to build it does not find (No such file or directory) things like #include <fstream> It is on a, I guess i need to set a path somewhere. When i try #include "fstream.h" and add the folder containing that file to the search path of the compiler, then it finds it, but in fstream.h there are also <blabla> references that again are not found. So I can't work around like that. Any idea ?

When trying to change the compiler and changing back, i get a popup window that the gnu gcc compiler is found in the path C:\MinGW\

Thank you
geoffrey.

edit : (i installed build of 30-01 -> same problem)
« Last Edit: January 31, 2008, 07:28:38 pm by Geoffrey »

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: No such file or directory
« Reply #1 on: February 01, 2008, 04:26:51 pm »
the place to look is Settings->Compiler and Debugger->Global Compiler Options Page, GNU GCC Compiler, Search directories tab: you should have c:\mingw\include in there (assuming that's where your mingw headers are located). Then you might want to switch on Full Command Line Logging in "Other Settings" tab. This will show the full command lines including header paths of the build tools in your build log.

also double check that you are using the right compiler in your project settings, MINGW is setup correctly etc etc.

Geoffrey

  • Guest
[SOLVED] : No such file or directory
« Reply #2 on: February 04, 2008, 01:01:58 pm »
hehe bit shamed here..
extention = cpp (instead of c) did it.
All settings where fine.

anyway, thanks to all of you.