User forums > Help

custom build command fails...

(1/1)

Anonymous:
I'm trying to compile a quite large project using the Code::Blocks IDE (1.0-finalbeta) on Windows XP (MinGW). Unfortunately some parts of the code are written in good old Fortran77. The C part of the project compiles quite well into a static lib with the C::B build system. But, I've not been able to make C::B compiling the fortran files. The only thing it would need to do is feeding those files to g77. I tried to select "Gnu Makefile" as build method and entered the command to compile each of the fortran files into the custom build dialogs:

g77 -c $FILENAME -o $OBJECT

But something seems to went wrong with the makefile created by C::B because it stops with a message saying

cbm21D.tmp:104: *** missing separator. Stop.

The lines in the cbm21D.tmp file read (the lines giving the dependency for test.o seems to be corrupted somehow?!)

test.o.deps/test.d
   @echo Compiling "test.f" (custom command)...
   @$(FC) -c test.f -o test.o

Is this a bug or am I doing something wrong? Any ideas?

mandrav:
It seems like the colon ( : ) separator is missing from this line. It should be

--- Code: ---test.o:    .deps/test.d
--- End code ---


Anyway RC1 will be released soon, so file this as a bug-report and it might just make it in time ;)

Yiannis.

mandrav:

--- Quote ---so file this as a bug-report and it might just make it in time
--- End quote ---

Don't bother filing it; fixed in CVS :)

Yiannis.

Navigation

[0] Message Index

Go to full version