Thread: makefile

  1. #1
    Registered User
    Join Date
    Mar 2007



    I try running a make file using

    >make supersonic_ob

    but get the following error message:

    >makefile:2: *** missing separator. Stop.
    #***OpenCGDS Makefile
    include ../../../makefile.def
    GCOMPILE = g++
    CODE     = supersonic_ob
    OBJECTS = $(CODE).o flow_field.o matrix_square.o matrix_col.o matrix_functions.o 
    matrix_algebra.o matrix_derivative.o function_declarations.o output.o Boundary.o explicit.o Time_Step.o
    $(CODE): $(OBJECTS)
    	 $(GCOMPILE) $(CPPFLAGS) -o $(CODE) $(OBJECTS) $(LAMATRIXPP_LIB) $(LAPACKPP_LIB) $(LASPP_LIB) -lm -lg2c -llapack -lblas$ 
     &nbps    rm *.o
    Last edited by Salem; 11-18-2007 at 01:39 AM. Reason: Added code tags in an attempt to figure out...

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Well a couple of things perhaps:
    1. your OBJECTS assignment is spread over several lines.
    2. there's a blank line between your target and compilation.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Makefile Problem: None rule to make target
    By chris24300 in forum Linux Programming
    Replies: 25
    Last Post: 06-17-2009, 09:45 AM
  2. Building a project using a Makefile
    By starcatcher in forum Windows Programming
    Replies: 2
    Last Post: 11-23-2008, 11:50 PM
  3. unix makefile won't work but works in Dev C++
    By jk1998 in forum C++ Programming
    Replies: 1
    Last Post: 06-09-2007, 03:54 PM
  4. makefile blues....
    By WaterNut in forum C Programming
    Replies: 6
    Last Post: 05-30-2005, 08:22 PM
  5. Need help with Makefile
    By xshapirox in forum C++ Programming
    Replies: 14
    Last Post: 09-28-2004, 03:32 PM