Author Topic: Error before compiling  (Read 11925 times)

dmikos

  • Guest
Error before compiling
« on: January 11, 2005, 10:42:29 pm »
mingw32-make.exe: [.deps/main.d] Error 258 (ignored)
main.cpp:0: fatal error: opening dependency file .deps/main.d: No such file or directory
compilation terminated.
mingw32-make.exe: *** [.deps/main.d] Error 1
Process terminated with status 1 (0 minutes, 1 seconds)
0 errors, 0 warnings

Offline hd

  • Multiple posting newcomer
  • *
  • Posts: 45
    • http://www.dynaset.org/dogusanh
Error before compiling
« Reply #1 on: January 12, 2005, 12:59:35 am »
Hi,

You may create these directories (.deps and .objs) in your source file directory by hand.

If you "export" Makefile you will see commands to create these directories.

HTH

--
Regards,
Hakki Dogusan

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Error before compiling
« Reply #2 on: January 12, 2005, 09:07:26 am »
The point is that they should be automatically created...
Maybe the folder is read-only or you don't have write permission? Or are you working on a read-only medium (like a CD)?
If none of these are true, please export the Makefile and post it here.

Yiannis.
Be patient!
This bug will be fixed soon...

Anonymous

  • Guest
Error before compiling
« Reply #3 on: January 12, 2005, 10:35:15 am »
###############################################################################
# Makefile automatically generated by Code::Blocks IDE                        #
###############################################################################

# Project:          ost
# Project filename: C:\Dev-Cpp\PROJECTS\OST2\ost.cbp
# Date:             01/12/05 14:25:13
# Compiler used:    MinGW Compiler Suite

### Variables used in this Makefile
RM=rm -f
ZIP=zip.exe -a
ZIP_EXT=zip
CC=mingw32-gcc.exe
CPP=mingw32-g++.exe
LD=ld.exe
RESCOMP=windres.exe

### Compiler/linker options
GLOBAL_CFLAGS= -g
PROJECT_CFLAGS=
GLOBAL_LDFLAGS=
PROJECT_LDFLAGS= -lopengl32 -lglu32 ../NTS/glew/glew-1.3.0-SRC/glew/build/vc6/libglew shared.a
GLOBAL_INCS= -IC:/gcc\ 3.4.2/include -IC:/gcc\ 3.4.2/include/c++/3.4.2/mingw32 -IC:/gcc\ 3.4.2/include/c++/3.4.2/backward -IC:/gcc\ 3.4.2/lib/gcc/mingw32/3.4.2/include -IC:/gcc\ 3.4.2/include/c++/3.4.2 -IC:/gcc\ 3.4.2/include/c++/3.4.2/bits -IC:/gcc\ 3.4.2/include/c++/3.4.2/ext -IC:/gcc\ 3.4.2/include/c++/3.4.2/debug -IC:/Dev-Cpp/PROJECTS/NTS/glew/include
PROJECT_INCS=
GLOBAL_LIBS= -LC:/gcc\ 3.4.2/lib
PROJECT_LIBS=

### Targets compiler flags
default_CFLAGS= $(GLOBAL_CFLAGS) $(PROJECT_CFLAGS)

### Targets linker flags
default_LDFLAGS= $(GLOBAL_LDFLAGS) $(PROJECT_LDFLAGS) -mwindows

### Targets include directories
default_INCS= $(GLOBAL_INCS) $(PROJECT_INCS)

### Targets library directories
default_LDADD= $(GLOBAL_LIBS) $(PROJECT_LIBS)

###############################################################################
#         You shouldn't need to modify anything beyond this point             #
###############################################################################

### Resources used in this Makefile
default_RESOURCE=

### Objects used in this Makefile
default_OBJS=.objs/c_main.o .objs/c_opengl_window.o .objs/c_timer.o .objs/c_font.o
default_LINKOBJS=$(default_OBJS) $(default_RESOURCE)
default_DEPS=.deps/c_main.d .deps/c_opengl_window.d .deps/c_timer.d .deps/c_font.d

### The targets of this project
default_OUTDIR=.
default_BIN=ost.exe

.PHONY: all all-before all-custom all-after clean clean-custom distclean distclean-custom default-before default-after

all: all-before default all-after
-include $(default_DEPS)


dist:
   @$(ZIP) ost.cbp.$(ZIP_EXT) ost.cbp Makefile c_font.cpp c_font.h c_main.cpp c_main.h c_opengl_window.cpp c_opengl_window.h c_timer.cpp c_timer.h

clean_default:
   @echo Cleaning target "default"...
   @$(RM) $(default_BIN) $(default_OBJS) $(default_RESOURCE)

distclean_default:
   @echo Dist-cleaning target "default"...
   @$(RM) $(default_BIN) $(default_OBJS) $(default_DEPS) $(default_RESOURCE)

clean: clean_default

distclean: distclean_default

depend_default: $(default_DEPS)

depend: depend_default

default: default-before $(default_BIN) default-after

$(default_BIN): $(default_LINKOBJS)
   -@if not exist "$(default_OUTDIR)" mkdir "$(default_OUTDIR)"
   @echo Linking executable "ost.exe"...
   @$(LD) $(default_LIBS) -o $(default_BIN) $(default_LDADD) $(default_LINKOBJS) $(default_LDFLAGS)


.deps/c_main.d: c_main.cpp
   @echo Calculating dependencies for "c_main.cpp"...
   -@if not exist ".\.deps\." mkdir ".\.deps"
   @$(CPP) -MM $(default_CFLAGS) -MF .deps/c_main.d -MT .objs/c_main.o $(default_INCS) c_main.cpp

.objs/c_main.o: .deps/c_main.d
   @echo Compiling "c_main.cpp"...
   -@if not exist ".\.objs\." mkdir ".\.objs"
   @$(CPP) $(default_CFLAGS) $(default_INCS) -c c_main.cpp -o .objs/c_main.o

.deps/c_opengl_window.d: c_opengl_window.cpp
   @echo Calculating dependencies for "c_opengl_window.cpp"...
   -@if not exist ".\.deps\." mkdir ".\.deps"
   @$(CPP) -MM $(default_CFLAGS) -MF .deps/c_opengl_window.d -MT .objs/c_opengl_window.o $(default_INCS) c_opengl_window.cpp

.objs/c_opengl_window.o: .deps/c_opengl_window.d
   @echo Compiling "c_opengl_window.cpp"...
   -@if not exist ".\.objs\." mkdir ".\.objs"
   @$(CPP) $(default_CFLAGS) $(default_INCS) -c c_opengl_window.cpp -o .objs/c_opengl_window.o

.deps/c_timer.d: c_timer.cpp
   @echo Calculating dependencies for "c_timer.cpp"...
   -@if not exist ".\.deps\." mkdir ".\.deps"
   @$(CPP) -MM $(default_CFLAGS) -MF .deps/c_timer.d -MT .objs/c_timer.o $(default_INCS) c_timer.cpp

.objs/c_timer.o: .deps/c_timer.d
   @echo Compiling "c_timer.cpp"...
   -@if not exist ".\.objs\." mkdir ".\.objs"
   @$(CPP) $(default_CFLAGS) $(default_INCS) -c c_timer.cpp -o .objs/c_timer.o

.deps/c_font.d: c_font.cpp
   @echo Calculating dependencies for "c_font.cpp"...
   -@if not exist ".\.deps\." mkdir ".\.deps"
   @$(CPP) -MM $(default_CFLAGS) -MF .deps/c_font.d -MT .objs/c_font.o $(default_INCS) c_font.cpp

.objs/c_font.o: .deps/c_font.d
   @echo Compiling "c_font.cpp"...
   -@if not exist ".\.objs\." mkdir ".\.objs"
   @$(CPP) $(default_CFLAGS) $(default_INCS) -c c_font.cpp -o .objs/c_font.o

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Error before compiling
« Reply #4 on: January 12, 2005, 02:24:42 pm »
OK, it appears that the project previously had a file main.cpp which you apparently renamed to c_main.cpp. The dependencies were generated for the main.cpp file, which is now missing (as a matter of fact, the dependencies for main.cpp are missing - the .deps/main.d file).
There are two solutions for this:

a) Click "Compile/Dist clean" and re-compile, or
b) manually delete the .deps folder inside your project dir and re-compile...

HTH,
Yiannis.
Be patient!
This bug will be fixed soon...