Skip to content

Latest commit

 

History

History
852 lines (653 loc) · 29.7 KB

CppMiscErrorMissingSeparator.md

File metadata and controls

852 lines (653 loc) · 29.7 KB

Misc error.

History

This error occurred while answering the Qt FAQ How to cross-compile a Qt Creator project from Ubuntu to a windows executable?.

I started a clean console application and added the '-spec win32-msvc'.

Downloads

Project information

Operating system: Ubuntu 10.04 LTS Lucid Lynx

IDE: Qt Creator 2.0.0

Project type: console application

Compiler: G++ 4.4.1

Libraries used:

  • Qt: version 4.7.0 (32 bit)

Project options:

  • Set 'Projects -> build Settings -> build steps -> qmake -> additional arguments' to '-spec win32-msvc'

Other tools:

  • GNU Make: version 3.81, built for i486-pc-linux-gnu (using 'make -v')
  • perl: version 5.10.1, built for i486-linux-gnu-thread-multi (using 'perl -v')

#-------------------------------------------------
#
# Project created by QtCreator 2010-09-24T09:38:07
#
#-------------------------------------------------
QT       += core
QT       -= gui
TARGET = CppMiscErrorMissingSeparator
CONFIG   += console
CONFIG   -= app_bundle
TEMPLATE = app
SOURCES += main.cpp

main.cpp

#include <QtCore/QCoreApplication>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    return a.exec();
}

Makefile

#############################################################################
# Makefile for building: CppMiscErrorMissingSeparator
# Generated by qmake (2.01a) (Qt 4.6.2) on: Mon Sep 27 16:35:01 2010
# Project:  ../CppMiscErrorMissingSeparator/CppMiscErrorMissingSeparator.pro
# Template: app
# Command: /usr/bin/qmake-qt4 -spec /usr/share/qt4/mkspecs/win32-msvc -unix CONFIG+=debug -o Makefile ../CppMiscErrorMissingSeparator/CppMiscErrorMissingSeparator.pro
#############################################################################

first: debug
install: debug-install
uninstall: debug-uninstall
MAKEFILE      = Makefile
QMAKE         = /usr/bin/qmake-qt4
DEL_FILE      = del
CHK_DIR_EXISTS= if not exist
MKDIR         = mkdir
COPY          = copy /y
COPY_FILE     = $(COPY)
COPY_DIR      = xcopy /s /q /y /i
INSTALL_FILE  = $(COPY_FILE)
INSTALL_PROGRAM = $(COPY_FILE)
INSTALL_DIR   = $(COPY_DIR)
DEL_FILE      = del
SYMLINK       =
DEL_DIR       = rmdir
MOVE          = move
CHK_DIR_EXISTS= if not exist
MKDIR         = mkdir
SUBTARGETS    =  \
debug \
release

debug: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug
debug-make_default: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug
debug-make_first: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug first
debug-all: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug all
debug-clean: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug clean
debug-distclean: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug distclean
debug-install: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug install
debug-uninstall: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug uninstall
release: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release
release-make_default: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release
release-make_first: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release first
release-all: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release all
release-clean: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release clean
release-distclean: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release distclean
release-install: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release install
release-uninstall: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release uninstall

Makefile: ../CppMiscErrorMissingSeparator/CppMiscErrorMissingSeparator.pro  /usr/share/qt4/mkspecs/win32-msvc/qmake.conf /usr/share/qt4/mkspecs/qconfig.pri \
/usr/share/qt4/mkspecs/features/qt_functions.prf \
/usr/share/qt4/mkspecs/features/qt_config.prf \
/usr/share/qt4/mkspecs/features/exclusive_builds.prf \
/usr/share/qt4/mkspecs/features/default_pre.prf \
/usr/share/qt4/mkspecs/features/debug.prf \
/usr/share/qt4/mkspecs/features/debug_and_release.prf \
/usr/share/qt4/mkspecs/features/default_post.prf \
/usr/share/qt4/mkspecs/win32-msvc/features/incremental.prf \
/usr/share/qt4/mkspecs/features/warn_on.prf \
/usr/share/qt4/mkspecs/features/qt.prf \
/usr/share/qt4/mkspecs/features/unix/thread.prf \
/usr/share/qt4/mkspecs/features/moc.prf \
/usr/share/qt4/mkspecs/features/resources.prf \
/usr/share/qt4/mkspecs/features/uic.prf \
/usr/share/qt4/mkspecs/features/yacc.prf \
/usr/share/qt4/mkspecs/features/lex.prf \
/usr/share/qt4/mkspecs/features/include_source_dir.prf
$(QMAKE) -spec /usr/share/qt4/mkspecs/win32-msvc -unix CONFIG+=debug -o Makefile ../CppMiscErrorMissingSeparator/CppMiscErrorMissingSeparator.pro
/usr/share/qt4/mkspecs/qconfig.pri:
/usr/share/qt4/mkspecs/features/qt_functions.prf:
/usr/share/qt4/mkspecs/features/qt_config.prf:
/usr/share/qt4/mkspecs/features/exclusive_builds.prf:
/usr/share/qt4/mkspecs/features/default_pre.prf:
/usr/share/qt4/mkspecs/features/debug.prf:
/usr/share/qt4/mkspecs/features/debug_and_release.prf:
/usr/share/qt4/mkspecs/features/default_post.prf:
/usr/share/qt4/mkspecs/win32-msvc/features/incremental.prf:
/usr/share/qt4/mkspecs/features/warn_on.prf:
/usr/share/qt4/mkspecs/features/qt.prf:
/usr/share/qt4/mkspecs/features/unix/thread.prf:
/usr/share/qt4/mkspecs/features/moc.prf:
/usr/share/qt4/mkspecs/features/resources.prf:
/usr/share/qt4/mkspecs/features/uic.prf:
/usr/share/qt4/mkspecs/features/yacc.prf:
/usr/share/qt4/mkspecs/features/lex.prf:
/usr/share/qt4/mkspecs/features/include_source_dir.prf:
qmake: qmake_all FORCE
@$(QMAKE) -spec /usr/share/qt4/mkspecs/win32-msvc -unix CONFIG+=debug -o Makefile ../CppMiscErrorMissingSeparator/CppMiscErrorMissingSeparator.pro

qmake_all: FORCE

make_default: debug-make_default release-make_default FORCE
make_first: debug-make_first release-make_first FORCE
all: debug-all release-all FORCE
clean: debug-clean release-clean FORCE
-$(DEL_FILE) CppMiscErrorMissingSeparator.pdb
-$(DEL_FILE) CppMiscErrorMissingSeparator.ilk
-$(DEL_FILE) vc*.pdb
-$(DEL_FILE) vc*.idb
distclean: debug-distclean release-distclean FORCE
-$(DEL_FILE) Makefile

debug-mocclean: $(MAKEFILE).Debug
$(MAKE) -f $(MAKEFILE).Debug mocclean
release-mocclean: $(MAKEFILE).Release
$(MAKE) -f $(MAKEFILE).Release mocclean
mocclean: debug-mocclean release-mocclean

debug-mocables: $(MAKEFILE).Debug
$(MAKE) -f $(MAKEFILE).Debug mocables
release-mocables: $(MAKEFILE).Release
$(MAKE) -f $(MAKEFILE).Release mocables
mocables: debug-mocables release-mocables
FORCE:

$(MAKEFILE).Debug: Makefile
$(MAKEFILE).Release: Makefile

Makefile.Debug

 #############################################################################
# Makefile for building: CppMiscErrorMissingSeparator
# Generated by qmake (2.01a) (Qt 4.6.2) on: Mon Sep 27 17:26:02 2010
# Project:  ../CppMiscErrorMissingSeparator/CppMiscErrorMissingSeparator.pro
# Template: app
#############################################################################

####### Compiler, tools and options

CC            = cl
CXX           = cl
DEFINES       = -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_CORE_LIB
CFLAGS        = -nologo -Zm200 -Zi -MDd -W3 $(DEFINES)
CXXFLAGS      = -nologo -Zm200 -Zi -MDd -W3 $(DEFINES)
INCPATH       = -I"/usr/include/qt4/QtCore" -I"/usr/include/qt4" -I"debug" -I"../CppMiscErrorMissingSeparator" -I"." -I"/usr/share/qt4/mkspecs/win32-msvc"
LINK          = link
LFLAGS        = /LIBPATH:"/usr/lib" /NOLOGO /DEBUG
LIBS          = QtCore.lib
QMAKE         = /usr/bin/qmake-qt4
IDC           = /usr/bin/idc.exe
IDL           = midl
ZIP           = zip -r -9
DEF_FILE      =
RES_FILE      =
COPY          = copy /y
COPY_FILE     = $(COPY)
COPY_DIR      = xcopy /s /q /y /i
DEL_FILE      = del
DEL_DIR       = rmdir
MOVE          = move
CHK_DIR_EXISTS= if not exist
MKDIR         = mkdir
INSTALL_FILE    = $(COPY_FILE)
INSTALL_PROGRAM = $(COPY_FILE)
INSTALL_DIR     = $(COPY_DIR)

####### Output directory

OBJECTS_DIR   = debug/

####### Files

SOURCES       = ../CppMiscErrorMissingSeparator/main.cpp
OBJECTS       = debug/main.o
DIST          =
QMAKE_TARGET  = CppMiscErrorMissingSeparator
DESTDIR        = debug/ #avoid trailing-slash linebreak
TARGET         = CppMiscErrorMissingSeparator.exe
DESTDIR_TARGET = debug/CppMiscErrorMissingSeparator.exe

####### Implicit rules

.SUFFIXES: .c .cpp .cc .cxx .C

{.}.cpp{debug/}.o::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug/ @<<
$<
<<

{.}.cc{debug/}.o::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug/ @<<
$<
<<

{.}.cxx{debug/}.o::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug/ @<<
$<
<<

{.}.C{debug/}.o::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug/ @<<
$<
<<

{.}.c{debug/}.o::
$(CC) -c $(CFLAGS) $(INCPATH) -Fodebug/ @<<
$<
<<

{../CppMiscErrorMissingSeparator}.cpp{debug/}.o::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug/ @<<
$<
<<

{../CppMiscErrorMissingSeparator}.cc{debug/}.o::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug/ @<<
$<
<<

{../CppMiscErrorMissingSeparator}.cxx{debug/}.o::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug/ @<<
$<
<<

{../CppMiscErrorMissingSeparator}.C{debug/}.o::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug/ @<<
$<
<<

{../CppMiscErrorMissingSeparator}.c{debug/}.o::
$(CC) -c $(CFLAGS) $(INCPATH) -Fodebug/ @<<
$<
<<

####### Build rules

first: all
all: Makefile.Debug $(DESTDIR_TARGET)

$(DESTDIR_TARGET):  $(OBJECTS)
$(LINK) $(LFLAGS) /OUT:$(DESTDIR_TARGET) @<<
  $(OBJECTS) $(LIBS)
<<


qmake:  FORCE
@$(QMAKE) -spec /usr/share/qt4/mkspecs/win32-msvc -unix CONFIG+=debug -o Makefile.Debug ../CppMiscErrorMissingSeparator/CppMiscErrorMissingSeparator.pro

dist:
$(ZIP) CppMiscErrorMissingSeparator.zip $(SOURCES) $(DIST) ../CppMiscErrorMissingSeparator/CppMiscErrorMissingSeparator.pro /usr/share/qt4/mkspecs/qconfig.pri /usr/share/qt4/mkspecs/features/qt_functions.prf /usr/share/qt4/mkspecs/features/qt_config.prf /usr/share/qt4/mkspecs/features/exclusive_builds.prf /usr/share/qt4/mkspecs/features/default_pre.prf /usr/share/qt4/mkspecs/features/debug.prf /usr/share/qt4/mkspecs/features/debug_and_release.prf /usr/share/qt4/mkspecs/features/default_post.prf /usr/share/qt4/mkspecs/features/build_pass.prf /usr/share/qt4/mkspecs/win32-msvc/features/incremental.prf /usr/share/qt4/mkspecs/features/warn_on.prf /usr/share/qt4/mkspecs/features/qt.prf /usr/share/qt4/mkspecs/features/unix/thread.prf /usr/share/qt4/mkspecs/features/moc.prf /usr/share/qt4/mkspecs/features/resources.prf /usr/share/qt4/mkspecs/features/uic.prf /usr/share/qt4/mkspecs/features/yacc.prf /usr/share/qt4/mkspecs/features/lex.prf /usr/share/qt4/mkspecs/features/include_source_dir.prf  HEADERS RESOURCES IMAGES SOURCES OBJECTIVE_SOURCES FORMS YACCSOURCES YACCSOURCES LEXSOURCES

clean: compiler_clean
-$(DEL_FILE) debug/main.o
-$(DEL_FILE) debug/CppMiscErrorMissingSeparator.pdb
-$(DEL_FILE) debug/CppMiscErrorMissingSeparator.ilk
-$(DEL_FILE) vc*.pdb
-$(DEL_FILE) vc*.idb

distclean: clean
-$(DEL_FILE) $(DESTDIR_TARGET)
-$(DEL_FILE) Makefile.Debug

mocclean: compiler_moc_header_clean compiler_moc_source_clean

mocables: compiler_moc_header_make_all compiler_moc_source_make_all

compiler_moc_header_make_all:
compiler_moc_header_clean:
compiler_rcc_make_all:
compiler_rcc_clean:
compiler_image_collection_make_all: qmake_image_collection.cpp
compiler_image_collection_clean:
-$(DEL_FILE) qmake_image_collection.cpp
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_uic_make_all:
compiler_uic_clean:
compiler_yacc_decl_make_all:
compiler_yacc_decl_clean:
compiler_yacc_impl_make_all:
compiler_yacc_impl_clean:
compiler_lex_make_all:
compiler_lex_clean:
compiler_clean:



####### Compile

debug/main.o: ../CppMiscErrorMissingSeparator/main.cpp

####### Install

install:   FORCE

uninstall:   FORCE

FORCE:

Makefile.Release

#############################################################################
# Makefile for building: CppMiscErrorMissingSeparator
# Generated by qmake (2.01a) (Qt 4.6.2) on: Mon Sep 27 17:26:02 2010
# Project:  ../CppMiscErrorMissingSeparator/CppMiscErrorMissingSeparator.pro
# Template: app
#############################################################################

####### Compiler, tools and options

CC            = cl
CXX           = cl
DEFINES       = -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_DEBUG -DQT_CORE_LIB
CFLAGS        = -nologo -Zm200 -O1 -MD -W3 $(DEFINES)
CXXFLAGS      = -nologo -Zm200 -O1 -MD -W3 $(DEFINES)
INCPATH       = -I"/usr/include/qt4/QtCore" -I"/usr/include/qt4" -I"release" -I"../CppMiscErrorMissingSeparator" -I"." -I"/usr/share/qt4/mkspecs/win32-msvc"
LINK          = link
LFLAGS        = /LIBPATH:"/usr/lib" /NOLOGO /INCREMENTAL:NO
LIBS          = QtCore.lib
QMAKE         = /usr/bin/qmake-qt4
IDC           = /usr/bin/idc.exe
IDL           = midl
ZIP           = zip -r -9
DEF_FILE      =
RES_FILE      =
COPY          = copy /y
COPY_FILE     = $(COPY)
COPY_DIR      = xcopy /s /q /y /i
DEL_FILE      = del
DEL_DIR       = rmdir
MOVE          = move
CHK_DIR_EXISTS= if not exist
MKDIR         = mkdir
INSTALL_FILE    = $(COPY_FILE)
INSTALL_PROGRAM = $(COPY_FILE)
INSTALL_DIR     = $(COPY_DIR)

####### Output directory

OBJECTS_DIR   = release/

####### Files

SOURCES       = ../CppMiscErrorMissingSeparator/main.cpp
OBJECTS       = release/main.o
DIST          =
QMAKE_TARGET  = CppMiscErrorMissingSeparator
DESTDIR        = release/ #avoid trailing-slash linebreak
TARGET         = CppMiscErrorMissingSeparator.exe
DESTDIR_TARGET = release/CppMiscErrorMissingSeparator.exe

####### Implicit rules

.SUFFIXES: .c .cpp .cc .cxx .C

{.}.cpp{release/}.o::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Forelease/ @<<
$<
<<

{.}.cc{release/}.o::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Forelease/ @<<
$<
<<

{.}.cxx{release/}.o::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Forelease/ @<<
$<
<<

{.}.C{release/}.o::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Forelease/ @<<
$<
<<

{.}.c{release/}.o::
$(CC) -c $(CFLAGS) $(INCPATH) -Forelease/ @<<
$<
<<

{../CppMiscErrorMissingSeparator}.cpp{release/}.o::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Forelease/ @<<
$<
<<

{../CppMiscErrorMissingSeparator}.cc{release/}.o::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Forelease/ @<<
$<
<<

{../CppMiscErrorMissingSeparator}.cxx{release/}.o::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Forelease/ @<<
$<
<<

{../CppMiscErrorMissingSeparator}.C{release/}.o::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Forelease/ @<<
$<
<<

{../CppMiscErrorMissingSeparator}.c{release/}.o::
$(CC) -c $(CFLAGS) $(INCPATH) -Forelease/ @<<
$<
<<

####### Build rules

first: all
all: Makefile.Release $(DESTDIR_TARGET)

$(DESTDIR_TARGET):  $(OBJECTS)
$(LINK) $(LFLAGS) /OUT:$(DESTDIR_TARGET) @<<
  $(OBJECTS) $(LIBS)
<<


qmake:  FORCE
@$(QMAKE) -spec /usr/share/qt4/mkspecs/win32-msvc -unix CONFIG+=debug -o Makefile.Release ../CppMiscErrorMissingSeparator/CppMiscErrorMissingSeparator.pro

dist:
$(ZIP) CppMiscErrorMissingSeparator.zip $(SOURCES) $(DIST) ../CppMiscErrorMissingSeparator/CppMiscErrorMissingSeparator.pro /usr/share/qt4/mkspecs/qconfig.pri /usr/share/qt4/mkspecs/features/qt_functions.prf /usr/share/qt4/mkspecs/features/qt_config.prf /usr/share/qt4/mkspecs/features/exclusive_builds.prf /usr/share/qt4/mkspecs/features/default_pre.prf /usr/share/qt4/mkspecs/features/release.prf /usr/share/qt4/mkspecs/features/debug_and_release.prf /usr/share/qt4/mkspecs/features/default_post.prf /usr/share/qt4/mkspecs/features/build_pass.prf /usr/share/qt4/mkspecs/win32-msvc/features/incremental.prf /usr/share/qt4/mkspecs/features/warn_on.prf /usr/share/qt4/mkspecs/features/qt.prf /usr/share/qt4/mkspecs/features/unix/thread.prf /usr/share/qt4/mkspecs/features/moc.prf /usr/share/qt4/mkspecs/features/resources.prf /usr/share/qt4/mkspecs/features/uic.prf /usr/share/qt4/mkspecs/features/yacc.prf /usr/share/qt4/mkspecs/features/lex.prf /usr/share/qt4/mkspecs/features/include_source_dir.prf  HEADERS RESOURCES IMAGES SOURCES OBJECTIVE_SOURCES FORMS YACCSOURCES YACCSOURCES LEXSOURCES

clean: compiler_clean
-$(DEL_FILE) release/main.o

distclean: clean
-$(DEL_FILE) $(DESTDIR_TARGET)
-$(DEL_FILE) Makefile.Release

mocclean: compiler_moc_header_clean compiler_moc_source_clean

mocables: compiler_moc_header_make_all compiler_moc_source_make_all

compiler_moc_header_make_all:
compiler_moc_header_clean:
compiler_rcc_make_all:
compiler_rcc_clean:
compiler_image_collection_make_all: qmake_image_collection.cpp
compiler_image_collection_clean:
-$(DEL_FILE) qmake_image_collection.cpp
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_uic_make_all:
compiler_uic_clean:
compiler_yacc_decl_make_all:
compiler_yacc_decl_clean:
compiler_yacc_impl_make_all:
compiler_yacc_impl_clean:
compiler_lex_make_all:
compiler_lex_clean:
compiler_clean:



####### Compile

release/main.o: ../CppMiscErrorMissingSeparator/main.cpp

####### Install

install:   FORCE

uninstall:   FORCE

FORCE:

``` 

## Process

The same error occurs for a GUI project.


The Qt Creator compile output is as following:

Running build steps for project CppMiscErrorMissingSeparator... Starting: "/usr/bin/make" -w make: Entering directory '/home/richel/qtsdk-2010.04/bin/Projects/Website/CppMiscErrorMissingSeparator-build-desktop' /usr/bin/make -f Makefile.Debug make[1]: Entering directory '/home/richel/qtsdk-2010.04/bin/Projects/Website/CppMiscErrorMissingSeparator-build-desktop' make[1]: Leaving directory '/home/richel/qtsdk-2010.04/bin/Projects/Website/CppMiscErrorMissingSeparator-build-desktop' make: Leaving directory '/home/richel/qtsdk-2010.04/bin/Projects/Website/CppMiscErrorMissingSeparator-build-desktop' Makefile.Debug:58: *** missing separator. Stop. make: *** [debug] Error 2 The process "/usr/bin/make" exited with code %2. Error while building project CppMiscErrorMissingSeparator (target: Desktop) When executing build step 'Make'


It is assumed that in Makefile.Debug, line 58, there is a missing
seperator. Part of Makefile.Debug (complete file can be viewed above) is
shown below, with line 58 marked.

####### Implicit rules

.SUFFIXES: .c .cpp .cc .cxx .C

{../CppMiscErrorMissingSeparator}.cpp{debug/}.o:: $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug/ @&lt;&lt; $&lt; << #####################################THIS IS LINE 58

{../CppMiscErrorMissingSeparator}.cc{debug/}.o:: $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug/ @&lt;&lt; $&lt; <<

{../CppMiscErrorMissingSeparator}.cxx{debug/}.o:: $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug/ @&lt;&lt; $&lt; <<

{../CppMiscErrorMissingSeparator}.C{debug/}.o:: $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug/ @&lt;&lt; $&lt; <<

{../CppMiscErrorMissingSeparator}.c{debug/}.o:: $(CC) -c $(CFLAGS) $(INCPATH) -Fodebug/ @&lt;&lt; $&lt; <<

{.}.cpp{debug/}.o:: $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug/ @&lt;&lt; $&lt; <<

{.}.cc{debug/}.o:: $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug/ @&lt;&lt; $&lt; <<

{.}.cxx{debug/}.o:: $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug/ @&lt;&lt; $&lt; <<

{.}.C{debug/}.o:: $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fodebug/ @&lt;&lt; $&lt; <<

{.}.c{debug/}.o:: $(CC) -c $(CFLAGS) $(INCPATH) -Fodebug/ @&lt;&lt; $&lt; <<

####### Build rules

first: all all: Makefile.Debug $(DESTDIR_TARGET)

$(DESTDIR_TARGET): $(OBJECTS) $(LINK) $(LFLAGS) /OUT:$(DESTDIR_TARGET) @<< $(OBJECTS) $(LIBS) <<


I tried unsuccessful solution 1.

Following \[2\], I tried unsucessful solution 2.

Following \[3-10\], I tried unsucessful solutions 3,4 and 5.

Following \[11\], I tried to use 'remake', a 'make' debugger.

Both following commands reproduced the error:

make -f Makefile.Debug remake -f Makefile.Debug


Added basic debugging:

make --debug=basic -f Makefile.Debug


Screen output:


GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This program built for i486-pc-linux-gnu Reading makefiles... Makefile.Debug:58: *** missing separator. Stop.


Added tracing:

remake --trace -f Makefile.Debug


Screen output:

GNU Make + Debugger 3.81+dbg-0.2 Copyright (C) 2002, 2003, 2004, 2006, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This program built for i486-pc-linux-gnu Reading makefiles... Makefile.Debug:58: *** missing separator. Stop.


## Solution

Unknown

## Unsuccessful solution 1: remove '&lt;&lt;' from Makefile.Debug

I remove all '&lt;&lt;' from Makefile.Debug.

This resulted in the following compile outpt:

Running build steps for project CppMiscErrorMissingSeparator... Configuration unchanged, skipping qmake step. Starting: "/usr/bin/make" -w make: Entering directory /home/richel/qtsdk-2010.04/bin/Projects/Website/CppMiscErrorMissingSeparator-build-desktop' /usr/bin/make -f Makefile.Debug make[1]: Entering directory /home/richel/qtsdk-2010.04/bin/Projects/Website/CppMiscErrorMissingSeparator-build-desktop' cl -c -nologo -Zm200 -Zi -MDd -W3 -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_CORE_LIB -I"/usr/include/qt4/QtCore" -I"/usr/include/qt4" -I"debug" -I"../CppMiscErrorMissingSeparator" -I"." -I"/usr/share/qt4/mkspecs/win32-msvc" -Fodebug/ @<< /bin/sh: Syntax error: end of file unexpected make[1]: Leaving directory /home/richel/qtsdk-2010.04/bin/Projects/Website/CppMiscErrorMissingSeparator-build-desktop' make: Leaving directory /home/richel/qtsdk-2010.04/bin/Projects/Website/CppMiscErrorMissingSeparator-build-desktop' make[1]: *** [{.}.cpp{debug/}.o] Error 2 make: *** [debug] Error 2 The process "/usr/bin/make" exited with code %2. Error while building project CppMiscErrorMissingSeparator (target: Desktop) When executing build step 'Make'


## Unsuccessful solution 2: add a tab before each '&lt;&lt;' from Makefile.Debug

Trying to follow \[2\], I added a tab before each '&lt;&lt;' in
Makefile.Debug.

This resulted in the following compile outpt:

Running build steps for project CppMiscErrorMissingSeparator... Configuration unchanged, skipping qmake step. Starting: "/usr/bin/make" -w make: Entering directory /home/richel/qtsdk-2010.04/bin/Projects/Website/CppMiscErrorMissingSeparator-build-desktop' /usr/bin/make -f Makefile.Debug make[1]: Entering directory /home/richel/qtsdk-2010.04/bin/Projects/Website/CppMiscErrorMissingSeparator-build-desktop' cl -c -nologo -Zm200 -Zi -MDd -W3 -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_CORE_LIB -I"/usr/include/qt4/QtCore" -I"/usr/include/qt4" -I"debug" -I"../CppMiscErrorMissingSeparator" -I"." -I"/usr/share/qt4/mkspecs/win32-msvc" -Fodebug/ @<< /bin/sh: Syntax error: end of file unexpected make[1]: Leaving directory /home/richel/qtsdk-2010.04/bin/Projects/Website/CppMiscErrorMissingSeparator-build-desktop' make: Leaving directory /home/richel/qtsdk-2010.04/bin/Projects/Website/CppMiscErrorMissingSeparator-build-desktop' make[1]: *** [{.}.cpp{debug/}.o] Error 2 make: *** [debug] Error 2 The process "/usr/bin/make" exited with code %2. Error while building project CppMiscErrorMissingSeparator (target: Desktop) When executing build step 'Make'


## Unsuccessful solution 3: replace four spaces by a tab

Error remains the same.

## Unsuccessful solution 4: replace two spaces by a tab

Error remains the same.

## Unsuccessful solution 5: replace two spaces by a tab and prepend a tab before each '&lt;&lt;'\\

Following compile output:

Running build steps for project CppMiscErrorMissingSeparator... Configuration unchanged, skipping qmake step. Starting: "/usr/bin/make" -w make: Entering directory /home/richel/qtsdk-2010.04/bin/Projects/Website/CppMiscErrorMissingSeparator-build-desktop' /usr/bin/make -f Makefile.Debug make[1]: Entering directory /home/richel/qtsdk-2010.04/bin/Projects/Website/CppMiscErrorMissingSeparator-build-desktop' cl -c -nologo -Zm200 -Zi -MDd -W3 -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_CORE_LIB -I"/usr/include/qt4/QtCore" -I"/usr/include/qt4" -I"debug" -I"../CppMiscErrorMissingSeparator" -I"." -I"/usr/share/qt4/mkspecs/win32-msvc" -Fodebug/ @ << /bin/sh: Syntax error: end of file unexpected make[1]: Leaving directory /home/richel/qtsdk-2010.04/bin/Projects/Website/CppMiscErrorMissingSeparator-build-desktop' make: Leaving directory /home/richel/qtsdk-2010.04/bin/Projects/Website/CppMiscErrorMissingSeparator-build-desktop' make[1]: *** [{.}.cpp{debug/}.o] Error 2 make: *** [debug] Error 2 The process "/usr/bin/make" exited with code %2. Error while building project CppMiscErrorMissingSeparator (target: Desktop) When executing build step 'Make'



## [References](CppReferences.md)
 
### [1] http://qt.gitorious.org/qt-creator/pages/QtS60WithQtCreator

 

  ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  ` It complains about 'BLABLUBB_0XE02CF35F.GCCE:85: *** missing separator. Stop.'  If you are using a S60 3rd Edition FP1 (in contrast to 3rd FP2 or later), this means that the ARM compiler is not found in a directory from the PATH environment variable. Add the path to your compiler to the PATH environment, e.g. 'C:\Program Files (x86)\CSL Arm Toolchain\bin'.`
  ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

 

 

 

 

\[2\] http://cygwin.com/faq.html
--------------------------------

 

  -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  ` 6.14. Why does make complain about a "missing separator"?  This problem usually occurs as a result of someone editing a Makefile with a text editor that replaces tab characters with spaces. Command lines must start with tabs. This is not specific to Cygwin. `
  -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

 

 

 

 

### \[3\] http://recursive-design.com/blog/2009/11/12/makefile-missing-separator-stop

 

  --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  ` If you?re getting missing separator errors in your makefile, similar to the following :  Makefile:22: *** missing separator.  Stop.  ... make sure you are using real tabs instead of spaces. A global search and replace for four-spaces should fix things up.`
  --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

 

 

 

 

### \[4\] http://www.cygwin.com/ml/cygwin/1998-10/msg00455.html

 

  ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  ` Alexei Karpov wrote:  > Hi, > >     My makefile has string which contain ( f.e. ) next text : > echo I do not know why it's does not work. > When I run make utility I get next error : *** missing separator.  Stop. > > Under Unix it works properly, why it does not work > under CygWin32. May be anybody has ever had the > same error. > > I use : > GNU Make version 3.75-B19, by Richard Stallman and Roland McGrath. > Copyright 1988, 89, 90, 91, 92, 93, 94, 95, 96 >         Free Software Foundation, Inc. > > Thanks a lot,  This comes up frequently.  Either you have spaces instead of a tab before your command lines  OR  Your makefile has carriage returns at the end of some of the lines.  -- Stephen Vance                           |  http://www.deneb.com `
  ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------