Author Topic: custom build command fails...  (Read 4979 times)

Anonymous

  • Guest
custom build command fails...
« on: July 17, 2005, 01:41:33 pm »
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?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
custom build command fails...
« Reply #1 on: July 17, 2005, 06:40:38 pm »
It seems like the colon ( : ) separator is missing from this line. It should be
Code
test.o:    .deps/test.d


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

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

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
custom build command fails...
« Reply #2 on: July 17, 2005, 10:33:22 pm »
Quote
so file this as a bug-report and it might just make it in time

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

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