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"
hello world sample program throws error after fresh install
-
- CodeLite Curious
- Posts: 2
- Joined: Thu Nov 13, 2014 8:15 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: hello world sample program throws error after fresh inst
What happen when you execute it from the command line? The exact same command as codelite does?
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 2
- Joined: Thu Nov 13, 2014 8:15 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: hello world sample program throws error after fresh inst
Hi eranif,
I get the following error from the command line:
The program can't start because libiconv-2.dll is missing from your computer. Try reinstalling the program to fix this problem.
I found libiconv-2.dll in the c:\MinGW-4.8.1\bin> folder.
I'll try reinstalling. After re-installation it works.
Fix:
I did my first installation with changes to the default paths of MinGW and UnitTest. I placed them under program files. After compilation failed, I moved those two to their default paths directly under C:\ because of concerns of Windows permissions. I did change the paths in the properties to the new locations, but maybe some register was off.
Thanks for your help.
I get the following error from the command line:
The program can't start because libiconv-2.dll is missing from your computer. Try reinstalling the program to fix this problem.
I found libiconv-2.dll in the c:\MinGW-4.8.1\bin> folder.
I'll try reinstalling. After re-installation it works.
Fix:
I did my first installation with changes to the default paths of MinGW and UnitTest. I placed them under program files. After compilation failed, I moved those two to their default paths directly under C:\ because of concerns of Windows permissions. I did change the paths in the properties to the new locations, but maybe some register was off.
Thanks for your help.