Page 1 of 1

Cannot Build my project

Posted: Sun Jul 02, 2023 9:25 pm
by MikeInScarboro

I believe there is a problem with the generation of directories during the build.
Some directories don't exist.
The following are the outputs of the compiler,
then the output of using build
then the directory structure of the project
and then also the Codelite generated C++ source file.

This is the CodeLite Version: 17.3.0
My operating system is Windows 10 Pro

Can you please help?

Output if i compile the current file:

Code: Select all

C:/msys64/clang64/bin/mingw32-make.exe -j4 -e -f  "TestD.mk"  MakeIntermediateDirs && C:/msys64/clang64/bin/mingw32-make.exe -j4 -e -f  "TestD.mk"  ../build-Debug/TestD/main.cpp.o
----------Building project:[ TestD - Debug ] (Single File Build)----------
/usr/bin/sh: -c: line 1: syntax error: unexpected end of file
mingw32-make: *** [TestD.mk:86: MakeIntermediateDirs] Error 258
=== build completed successfully (0 errors, 0 warnings) ===

[b]Output if I build my project[/b]
C:/msys64/clang64/bin/mingw32-make.exe -j4 -e -f  Makefile
----------Building project:[ TestD - Debug ]----------
mingw32-make[1]: Entering directory 'c:/Projects/Codelite/TestD/TestD/TestD'
C:/msys64/clang64/bin/g++.exe  -c  "C:/Projects/Codelite/TestD/TestD/TestD/main.cpp" -gdwarf-2 -fstandalone-debug -O0 -Wall  -o ../build-Debug/TestD/main.cpp.o -I. -I.
/usr/bin/sh: -c: line 1: syntax error: unexpected end of file
mingw32-make[1]: *** [TestD.mk:86: MakeIntermediateDirs] Error 258
mingw32-make[1]: *** Waiting for unfinished jobs....
/usr/bin/sh: -c: line 1: syntax error: unexpected end of file
mingw32-make[1]: *** [TestD.mk:90: ../build-Debug/TestD/.d] Error 258
g++: error: no such file or directory: 'C:/Projects/Codelite/TestD/TestD/TestD/main.cpp -gdwarf-2'
g++: error: no input files
mingw32-make[1]: *** [TestD.mk:99: ../build-Debug/TestD/main.cpp.o] Error 1
mingw32-make[1]: Leaving directory 'c:/Projects/Codelite/TestD/TestD/TestD'
mingw32-make: *** [Makefile:5: All] Error 2
=== build completed successfully (0 errors, 0 warnings) ===

This is the Workespace directory

Code: Select all

C:\Projects\Codelite\TestD\TestD>dir
 Volume in drive C has no label.
 Volume Serial Number is 0179-48E7

 Directory of C:\Projects\Codelite\TestD\TestD

2023-07-02  01:11 PM    <DIR>          .
2023-07-02  01:11 PM    <DIR>          ..
2023-07-02  12:57 PM    <DIR>          .cache
2023-07-02  12:57 PM    <DIR>          .codelite
2023-07-02  12:57 PM    <DIR>          .ctagsd
2023-07-02  01:11 PM               496 compile_commands.json
2023-07-02  01:11 PM               247 Makefile
2023-07-02  12:57 PM    <DIR>          TestD
2023-07-02  12:57 PM               510 TestD.workspace
               3 File(s)          1,253 bytes
               6 Dir(s)  148,531,294,208 bytes free

C:\Projects\Codelite\TestD\TestD>

This is the Project Directory

Code: Select all

C:\Projects\Codelite\TestD\TestD>cd testd

C:\Projects\Codelite\TestD\TestD\TestD>dir
 Volume in drive C has no label.
 Volume Serial Number is 0179-48E7

 Directory of C:\Projects\Codelite\TestD\TestD\TestD

2023-07-02  12:57 PM    <DIR>          .
2023-07-02  12:57 PM    <DIR>          ..
2023-07-02  12:57 PM             1,601 .clang-format
2023-07-02  12:57 PM               122 .clangd
2022-12-28  01:06 AM               116 main.cpp
2023-07-02  01:11 PM             3,800 TestD.mk
2023-07-02  12:57 PM             4,481 TestD.project
               5 File(s)         10,120 bytes
               2 Dir(s)  148,530,257,920 bytes free

C:\Projects\Codelite\TestD\TestD\TestD>

This is the c++ source file generated by CodeLite

#include <iostream>

int main(int argc, char **argv)
{
std::cout << "Hello World" << std::endl;
return 0;
}


Re: Cannot Build my project

Posted: Sun Jul 02, 2023 9:57 pm
by MikeInScarboro

The code is not the code generated by Codelite. Sorry.
Mike