hello world sample program throws error after fresh install
Posted: Thu Nov 13, 2014 8:23 pm
Hi,
I installed codelite 6.1 on Windows 8.1. I created a new project using the "Simple executable (gcc)" template. On build it throws the following error:
C:\Windows\system32\cmd.exe /c ""C:/MinGW-4.8.1/bin/mingw32-make.exe" -j6 SHELL=cmd.exe -e -f Makefile"
"----------Building project:[ SocketServer - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/CodeLite_Projects/SocketServer'
mingw32-make.exe[1]: *** [Debug/main.c.o.d] Error 1
mingw32-make.exe: *** [All] Error 2
SocketServer.mk:96: recipe for target 'Debug/main.c.o.d' failed
mingw32-make.exe[1]: Leaving directory 'C:/CodeLite_Projects/SocketServer'
Makefile:4: recipe for target 'All' failed
1 errors, 0 warnings, total time: 00:00:31 seconds
These are the contents of SocketServer.mk:
##
## Auto Generated makefile by CodeLite IDE
## any manual changes will be erased
##
## Debug
ProjectName :=SocketServer
ConfigurationName :=Debug
WorkspacePath := "C:\CodeLite_Projects\SocketServer"
ProjectPath := "C:\CodeLite_Projects\SocketServer"
IntermediateDirectory :=./Debug
OutDir := $(IntermediateDirectory)
CurrentFileName :=
CurrentFilePath :=
CurrentFileFullPath :=
User :=Jasper
Date :=11/13/14
CodeLitePath :="C:\Program Files (x86)\CodeLite"
LinkerName :="C:/MinGW-4.8.1/bin/g++.exe"
SharedObjectLinkerName :="C:/MinGW-4.8.1/bin/g++.exe" -shared -fPIC
ObjectSuffix :=.o
DependSuffix :=.o.d
PreprocessSuffix :=.i
DebugSwitch :=-g
IncludeSwitch :=-I
LibrarySwitch :=-l
OutputSwitch :=-o
LibraryPathSwitch :=-L
PreprocessorSwitch :=-D
SourceSwitch :=-c
OutputFile :=$(IntermediateDirectory)/$(ProjectName)
Preprocessors :=
ObjectSwitch :=-o
ArchiveOutputSwitch :=
PreprocessOnlySwitch :=-E
ObjectsFileList :="SocketServer.txt"
PCHCompileFlags :=
MakeDirCommand :=makedir
RcCmpOptions :=
RcCompilerName :="C:/MinGW-4.8.1/bin/windres.exe"
LinkOptions :=
IncludePath := $(IncludeSwitch). $(IncludeSwitch).
IncludePCH :=
RcIncludePath :=
Libs :=
ArLibs :=
LibPath := $(LibraryPathSwitch).
##
## Common variables
## AR, CXX, CC, AS, CXXFLAGS and CFLAGS can be overriden using an environment variables
##
AR := "C:/MinGW-4.8.1/bin/ar.exe" rcu
CXX := "C:/MinGW-4.8.1/bin/g++.exe"
CC := "C:/MinGW-4.8.1/bin/gcc.exe"
CXXFLAGS := -g -O0 -Wall $(Preprocessors)
CFLAGS := -g -O0 -Wall $(Preprocessors)
ASFLAGS :=
AS := "C:/MinGW-4.8.1/bin/as.exe"
##
## User defined environment variables
##
CodeLiteDir:=C:\Program Files (x86)\CodeLite
UNIT_TEST_PP_SRC_DIR:=C:\Program Files (x86)\UnitTest++-1.3
Objects0=$(IntermediateDirectory)/main.c$(ObjectSuffix)
Objects=$(Objects0)
##
## Main Build Targets
##
.PHONY: all clean PreBuild PrePreBuild PostBuild
all: $(OutputFile)
$(OutputFile): $(IntermediateDirectory)/.d $(Objects)
@$(MakeDirCommand) $(@D)
@echo "" > $(IntermediateDirectory)/.d
@echo $(Objects0) > $(ObjectsFileList)
$(LinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions)
$(IntermediateDirectory)/.d:
@$(MakeDirCommand) "./Debug"
PreBuild:
##
## Objects
##
$(IntermediateDirectory)/main.c$(ObjectSuffix): main.c $(IntermediateDirectory)/main.c$(DependSuffix)
$(CC) $(SourceSwitch) "C:/CodeLite_Projects/SocketServer/main.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/main.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/main.c$(DependSuffix): main.c
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/main.c$(ObjectSuffix) -MF$(IntermediateDirectory)/main.c$(DependSuffix) -MM "main.c"
$(IntermediateDirectory)/main.c$(PreprocessSuffix): main.c
@$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/main.c$(PreprocessSuffix) "main.c"
-include $(IntermediateDirectory)/*$(DependSuffix)
##
## Clean
##
clean:
$(RM) ./Debug/*$(ObjectSuffix)
$(RM) ./Debug/*$(DependSuffix)
$(RM) $(OutputFile)
$(RM) $(OutputFile).exe
$(RM) ".build-debug/SocketServer"
I installed codelite 6.1 on Windows 8.1. I created a new project using the "Simple executable (gcc)" template. On build it throws the following error:
C:\Windows\system32\cmd.exe /c ""C:/MinGW-4.8.1/bin/mingw32-make.exe" -j6 SHELL=cmd.exe -e -f Makefile"
"----------Building project:[ SocketServer - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/CodeLite_Projects/SocketServer'
mingw32-make.exe[1]: *** [Debug/main.c.o.d] Error 1
mingw32-make.exe: *** [All] Error 2
SocketServer.mk:96: recipe for target 'Debug/main.c.o.d' failed
mingw32-make.exe[1]: Leaving directory 'C:/CodeLite_Projects/SocketServer'
Makefile:4: recipe for target 'All' failed
1 errors, 0 warnings, total time: 00:00:31 seconds
These are the contents of SocketServer.mk:
##
## Auto Generated makefile by CodeLite IDE
## any manual changes will be erased
##
## Debug
ProjectName :=SocketServer
ConfigurationName :=Debug
WorkspacePath := "C:\CodeLite_Projects\SocketServer"
ProjectPath := "C:\CodeLite_Projects\SocketServer"
IntermediateDirectory :=./Debug
OutDir := $(IntermediateDirectory)
CurrentFileName :=
CurrentFilePath :=
CurrentFileFullPath :=
User :=Jasper
Date :=11/13/14
CodeLitePath :="C:\Program Files (x86)\CodeLite"
LinkerName :="C:/MinGW-4.8.1/bin/g++.exe"
SharedObjectLinkerName :="C:/MinGW-4.8.1/bin/g++.exe" -shared -fPIC
ObjectSuffix :=.o
DependSuffix :=.o.d
PreprocessSuffix :=.i
DebugSwitch :=-g
IncludeSwitch :=-I
LibrarySwitch :=-l
OutputSwitch :=-o
LibraryPathSwitch :=-L
PreprocessorSwitch :=-D
SourceSwitch :=-c
OutputFile :=$(IntermediateDirectory)/$(ProjectName)
Preprocessors :=
ObjectSwitch :=-o
ArchiveOutputSwitch :=
PreprocessOnlySwitch :=-E
ObjectsFileList :="SocketServer.txt"
PCHCompileFlags :=
MakeDirCommand :=makedir
RcCmpOptions :=
RcCompilerName :="C:/MinGW-4.8.1/bin/windres.exe"
LinkOptions :=
IncludePath := $(IncludeSwitch). $(IncludeSwitch).
IncludePCH :=
RcIncludePath :=
Libs :=
ArLibs :=
LibPath := $(LibraryPathSwitch).
##
## Common variables
## AR, CXX, CC, AS, CXXFLAGS and CFLAGS can be overriden using an environment variables
##
AR := "C:/MinGW-4.8.1/bin/ar.exe" rcu
CXX := "C:/MinGW-4.8.1/bin/g++.exe"
CC := "C:/MinGW-4.8.1/bin/gcc.exe"
CXXFLAGS := -g -O0 -Wall $(Preprocessors)
CFLAGS := -g -O0 -Wall $(Preprocessors)
ASFLAGS :=
AS := "C:/MinGW-4.8.1/bin/as.exe"
##
## User defined environment variables
##
CodeLiteDir:=C:\Program Files (x86)\CodeLite
UNIT_TEST_PP_SRC_DIR:=C:\Program Files (x86)\UnitTest++-1.3
Objects0=$(IntermediateDirectory)/main.c$(ObjectSuffix)
Objects=$(Objects0)
##
## Main Build Targets
##
.PHONY: all clean PreBuild PrePreBuild PostBuild
all: $(OutputFile)
$(OutputFile): $(IntermediateDirectory)/.d $(Objects)
@$(MakeDirCommand) $(@D)
@echo "" > $(IntermediateDirectory)/.d
@echo $(Objects0) > $(ObjectsFileList)
$(LinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions)
$(IntermediateDirectory)/.d:
@$(MakeDirCommand) "./Debug"
PreBuild:
##
## Objects
##
$(IntermediateDirectory)/main.c$(ObjectSuffix): main.c $(IntermediateDirectory)/main.c$(DependSuffix)
$(CC) $(SourceSwitch) "C:/CodeLite_Projects/SocketServer/main.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/main.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/main.c$(DependSuffix): main.c
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/main.c$(ObjectSuffix) -MF$(IntermediateDirectory)/main.c$(DependSuffix) -MM "main.c"
$(IntermediateDirectory)/main.c$(PreprocessSuffix): main.c
@$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/main.c$(PreprocessSuffix) "main.c"
-include $(IntermediateDirectory)/*$(DependSuffix)
##
## Clean
##
clean:
$(RM) ./Debug/*$(ObjectSuffix)
$(RM) ./Debug/*$(DependSuffix)
$(RM) $(OutputFile)
$(RM) $(OutputFile).exe
$(RM) ".build-debug/SocketServer"