makefile

This is a discussion on makefile within the C++ Programming forums, part of the General Programming Boards category; Hi, I try running a make file using >make supersonic_ob but get the following error message: >makefile:2: *** missing separator. ...

  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    65

    makefile

    Hi,

    I try running a make file using

    >make supersonic_ob

    but get the following error message:

    >makefile:2: *** missing separator. Stop.
    Code:
    #***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$ 
    
    
    
    #**********
    
    clean:
    
     &nbps    rm *.o
    Shuo
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,767
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 10: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, 04:54 PM
  4. makefile blues....
    By WaterNut in forum C Programming
    Replies: 6
    Last Post: 05-30-2005, 09:22 PM
  5. Need help with Makefile
    By xshapirox in forum C++ Programming
    Replies: 14
    Last Post: 09-28-2004, 04:32 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21