#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Location
    Jacksonville, FL
    Posts
    6
    Rep Power
    0

    Makefile.win:18: *** missing separator. Stop.


    I am getting the error message below for this line in the make file:
    Code:
     -fexceptions -fverbose-asm -pg -g3
    Compiler: Default compiler
    Building Makefile: "C:\Dev-Cpp\Projs\C++OOP_RL4\Makefile.win"
    Executing make...
    make.exe -f "C:\Dev-Cpp\Projs\C++OOP_RL4\Makefile.win" ../C++OOP_RL4/Ostrstr.o
    C:\Dev-Cpp\Projs\C++OOP_RL4\Makefile.win:18: *** missing separator. Stop.

    Execution terminated
    What could be causing this?
    This wasn't occuring before for this code, but then again I added the following to the compiler commands:
    Code:
    -fno-rtti -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall -fvtable-thunks -D__WXMSW__ -D__GNUWIN32__ -DWINVER=0x400 -D__WIN95__ -DSTRICT -D__WXDEBUG__
    per instructions from Julian Smart Using Dev-C++ website.
  2. #2
  3. Google Relay Server
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Oct 2003
    Location
    Oh christ I don't even know any more.
    Posts
    1,812
    Rep Power
    439
    Without seeing the whole Makefile, my best guess is that your additions are meant to be a continuation of the previous line, but you did not put a \ at the end of the line before. Make is very sensitive to that sort of thing. If you want to continue one line onto the next line, put a \ slash as the *last* character (i.e. no other characters after it, including whitespace, except for the newline itself) on the line. Same syntax as in C/C++.
    Code:
    # No:
    LFLAGS = blah blah blah
             more stuff
    
    # Yes:
    LFLAGS = blah blah blah \
             more stuff
  4. #3
  5. Contributing User

    Join Date
    Aug 2003
    Location
    UK
    Posts
    5,116
    Rep Power
    1803
    makefile.win is autogenerated by Dev-C++. Did you modify it directly?

    The error is on line 18 of makefile.win, post the make file (in code tags) and that may help diagnose the problem.

    Clifford.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2011
    Location
    Chotomów, Poland
    Posts
    1
    Rep Power
    0

    Question


    Originally Posted by clifford
    makefile.win is autogenerated by Dev-C++. Did you modify it directly?

    The error is on line 18 of makefile.win, post the make file (in code tags) and that may help diagnose the problem.

    Clifford.
    I have "*** missing separator" error in wxDev-C++ Makefile.win.

    Generated by wxDev-C++ ("*** missing separator" error in "-l$(WXLIBNAME)"):

    Code:
    # Project: Business
    # Compiler: Default GCC compiler
    # Compiler Type: MingW 3
    # Makefile created by wxDev-C++ IDE 7.4.2.569 on 26-11-12 23:23
    
    WXLIBNAME = wxmsw29u
    CPP       = g++.exe
    CC        = gcc.exe
    WINDRES   = "windres.exe"
    OBJ       = Objects/MingW/BusinessApp.o Objects/MingW/View.o Objects/MingW/Business_private.res
    LINKOBJ   = "Objects/MingW/BusinessApp.o" "Objects/MingW/View.o" Objects/MingW/Business_private.res
    LIBS      = -L"C:/Program Files (x86)/Dev-Cpp/lib/wx/gcc_lib" -L"C:/Program Files (x86)/Dev-Cpp/lib" -L"C:/MinGW64/lib" -mwindows
    -l$(WXLIBNAME)
    -l$(WXLIBNAME)_gl
    -lwxscintilla
    -lwxtiff
    -lwxjpeg
    -lwxpng
    -lwxzlib
    -lwxregexu
    -lwxexpat
    -lkernel32
    -luser32
    -lgdi32
    -lcomdlg32
    -lwinspool
    -lwinmm
    -lshell32
    -lcomctl32
    -lole32
    -loleaut32
    -luuid
    -lrpcrt4
    -ladvapi32
    -lwsock32
    -lodbc32
    -lopengl32
    
     -g3 
    INCS      = -I"C:/MinGW64/include"
    CXXINCS   = -I"C:/MinGW64/include" -I"C:/Program Files (x86)/Dev-Cpp/" -I"C:/Program Files (x86)/Dev-Cpp/include/common"
    RCINCS    = --include-dir "C:/PROGRA~2/Dev-Cpp/include/common"
    BIN       = Output/MingW/Business.exe
    DEFINES   = -D__WXMSW__ -D__GNUWIN32__ -D_UNICODE
    CXXFLAGS  = $(CXXINCS) $(DEFINES)   -g3
    CFLAGS    = $(INCS) $(DEFINES)   -g3
    GPROF     = gprof.exe
    ifeq ($(OS),Windows_NT)
       RM = del /Q
       FixPath = $(subst /,\,$1)
    else
       RM = rm -f
       FixPath = $1
    endif
    LINK      = g++.exe
    
    .PHONY: all all-before all-after clean clean-custom
    all: all-before $(BIN) all-after
    
    clean: clean-custom
    	$(RM) $(call FixPath,$(LINKOBJ)) "$(call FixPath,$(BIN))"
    
    $(BIN): $(OBJ)
    	$(LINK) $(LINKOBJ) -o "$(BIN)" $(LIBS) 
    
    Objects/MingW/BusinessApp.o: $(GLOBALDEPS) BusinessApp.cpp BusinessApp.h View.h
    	$(CPP) -c BusinessApp.cpp -o Objects/MingW/BusinessApp.o $(CXXFLAGS)
    
    Objects/MingW/View.o: $(GLOBALDEPS) View.cpp View.h
    	$(CPP) -c View.cpp -o Objects/MingW/View.o $(CXXFLAGS)
    
    Objects/MingW/Business_private.res: Objects/MingW/Business_private.rc BusinessApp.rc 
    	$(WINDRES) --input-format=rc -o Objects/MingW/Business_private.res $(RCINCS) Objects/MingW/BUSINE~1.RC -O coff
    Changed by me ("*** missing separator" error in line "INCS = -I"C:/MinGW64/include""):

    Code:
    # Project: Business
    # Compiler: Default GCC compiler
    # Compiler Type: MingW 3
    # Makefile created by wxDev-C++ IDE 7.4.2.569 on 26-11-12 21:17
    
    WXLIBNAME = wxmsw29u
    CPP       = g++.exe
    CC        = gcc.exe
    WINDRES   = "windres.exe"
    OBJ       = Objects/MingW/BusinessApp.o Objects/MingW/View.o Objects/MingW/Business_private.res
    LINKOBJ   = "Objects/MingW/BusinessApp.o" "Objects/MingW/View.o" Objects/MingW/Business_private.res
    LIBS      = -L"C:/Program Files (x86)/Dev-Cpp/lib/wx/gcc_lib" -L"C:/Program Files (x86)/Dev-Cpp/lib" -L"C:/MinGW64/lib" -mwindows -l$(WXLIBNAME) -l$(WXLIBNAME)_gl -lwxscintilla -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 -lopengl32 -g3 
    INCS      = -I"C:/MinGW64/include"
    CXXINCS   = -I"C:/MinGW64/include" -I"C:/Program Files (x86)/Dev-Cpp/" -I"C:/Program Files (x86)/Dev-Cpp/include/common"
    RCINCS    = --include-dir "C:/PROGRA~2/Dev-Cpp/include/common"
    BIN       = Output/MingW/Business.exe
    DEFINES   = -D__WXMSW__ -D__GNUWIN32__ -D_UNICODE
    CXXFLAGS  = $(CXXINCS) $(DEFINES)   -g3
    CFLAGS    = $(INCS) $(DEFINES)   -g3
    GPROF     = gprof.exe
    ifeq ($(OS),Windows_NT)
       RM = del /Q
       FixPath = $(subst /,\,$1)
    else
       RM = rm -f
       FixPath = $1
    endif
    LINK      = g++.exe
    
    .PHONY: all all-before all-after clean clean-custom
    all: all-before $(BIN) all-after
    
    clean: clean-custom
    	$(RM) $(call FixPath,$(LINKOBJ)) "$(call FixPath,$(BIN))"
    
    $(BIN): $(OBJ)
    	$(LINK) $(LINKOBJ) -o "$(BIN)" $(LIBS) 
    
    Objects/MingW/BusinessApp.o: $(GLOBALDEPS) BusinessApp.cpp BusinessApp.h View.h
    	$(CPP) -c BusinessApp.cpp -o Objects/MingW/BusinessApp.o $(CXXFLAGS)
    
    Objects/MingW/View.o: $(GLOBALDEPS) View.cpp View.h
    	$(CPP) -c View.cpp -o Objects/MingW/View.o $(CXXFLAGS)
    
    Objects/MingW/Business_private.res: Objects/MingW/Business_private.rc BusinessApp.rc 
    	$(WINDRES) --input-format=rc -o Objects/MingW/Business_private.res $(RCINCS) Objects/MingW/BUSINE~1.RC -O coff
    How to change Makefile.win or wxDev-Cpp++ settings to resolve this problem?

IMN logo majestic logo threadwatch logo seochat tools logo