It seems that this project has not been built yet codeblocks как исправить

"It seems that this project has not been built yet." repeatedly [SOLVED]

Topic: «It seems that this project has not been built yet.» repeatedly [SOLVED]  (Read 125398 times)

Hi,

I know there was another thread on this topic but it did not seem to have been resolved.
I’m using CB 10.05 with MinGW on Windows & trying to comile with GNU gcc 4.4.1.

When trying to run my project I get the dialog box:

«It seems that this project has not been built yet.   Do you want to build it now?»

If I click yes it just returns to the same dialogue until I choose «No».

First thing of interest is that this problem only occurs for the debug, not the release.

Here is my build log:

Checking for existence: C:UsersmarkcodesCKat2binDebugCKat2.exe
Executing: «C:Program Files (x86)CodeBlocks/cb_console_runner.exe» «C:UsersmarkcodesCKat2binDebugCKat2.exe»  (in C:UsersmarkcodesCKat2.)
Process terminated with status -1073741510 (0 minutes, 4 seconds)

Why does this happen repeatedly? I have a suspicion my installation of Cygwin has something to do with this, though the toolchain executables for GCC all point to those in the CodeBlocks directory…

Cheers,

Mark

« Last Edit: March 03, 2012, 09:13:32 pm by mark1977 »


Logged


Here is my build log:

Checking for existence: C:UsersmarkcodesCKat2binDebugCKat2.exe
Executing: «C:Program Files (x86)CodeBlocks/cb_console_runner.exe» «C:UsersmarkcodesCKat2binDebugCKat2.exe»  (in C:UsersmarkcodesCKat2.)
Process terminated with status -1073741510 (0 minutes, 4 seconds)

No this is not your build log :)


Logged

(most of the time I ignore long posts)
[strangers don’t send me private messages, I’ll ignore them; post a topic in the forum, but first read the rules!]


Right, but that’s the problem, because it won’t let me build. So all I can do is tell you what is underneath the tab «Build Log», which is what I gave above :)


Logged


« Last Edit: March 02, 2012, 04:46:22 pm by stahta01 »


Logged

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.

When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org


Thanks Tim, here you go:

-------------- Clean: Debug in CKat2 ---------------

Cleaned "CKat2 - Debug"

-------------- Build: Debug in CKat2 ---------------

g++.exe      -c C:/Users/mark/codes/CKat2/HydroLa/CPP/KHadvect.cpp -o obj/Debug/HydroLa/CPP/KHadvect.o
Execution of 'g++.exe      -c C:/Users/mark/codes/CKat2/HydroLa/CPP/KHadvect.cpp -o obj/Debug/HydroLa/CPP/KHadvect.o' in 'C:UsersmarkcodesCKat2' failed.
Nothing to be done.


Logged


Step 1. Verify the command «g++.exe» exists in the Compiler bin folder.
Step 1b get g++ version «g++.exe -v»
Step 2. Using the OS Command line (cmd.exe) try the CB command to verify it works.
 NOTE: Set the path to the correct compiler bin folder before doing step 2.

NOTE: If using CygWin change the g++.exe to the REAL exe name instead of a link file.

Tim S.

« Last Edit: March 02, 2012, 08:59:45 pm by stahta01 »


Logged

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.

When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org


Thanks Tim.

The problem was I was using Cygwin for debug and GCC for release. When I viewed the Project’s compiler though (under Project->Build Options), it showed GCC (and I mistakenly assumed it would be showing my current build target’s compiler). Cheers for the help.


Logged


jeorge_kabbi

Step 1. Verify the command «g++.exe» exists in the Compiler bin folder.
Step 1b get g++ version «g++.exe -v»
Step 2. Using the OS Command line (cmd.exe) try the CB command to verify it works.
 NOTE: Set the path to the correct compiler bin folder before doing step 2.

NOTE: If using CygWin change the g++.exe to the REAL exe name instead of a link file.

Tim S.

for me , g++ was not present. i installed it and it just worked!
thank you


Logged


Hello, i have the same problems just now.
I built a new project, and whenever a new file is written, it says repeatly :»…not built…».
Then, I deleted the test.f inside the fortran sources folder, and everything works now.


Logged


Running in Linux Mint 17.3.  I found g++ wasn’t installed.  I installed it, and for good measure told code::blocks to reset the compiler to the defaults and it still doesn’t seem to compile (i.e. I still get this message).

Any and all help appreciated.


Logged


Running in Linux Mint 17.3.  I found g++ wasn’t installed.  I installed it, and for good measure told code::blocks to reset the compiler to the defaults and it still doesn’t seem to compile (i.e. I still get this message).

Any and all help appreciated.

Please make new thread asking for help!
Please post a full rebuild log in that thread!

http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Edit: This thread has [SOLVED] in the title; because of this, I ignored looking at it for several hours.

Tim S.

« Last Edit: August 27, 2016, 03:10:57 am by stahta01 »


Logged

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.

When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org


Code blocks bee working fine for me. But yesterday whenever I try to compile a small program a window appears showing

It seems like project has not been built yet.
Do you wan to build it now?

I also found similar questions but in all of them not a single program is working. But in mine «hello world!» program and some other programs are working.

This is the code:

#include <iostream>
using namespace std;

void print(int b[], int s);

int main()
{
    int a[5] = {1,2,3,4,5};
    print(a, 5);
}

void print(int b[] , int s){

    for(int i = 0; i < s; i++){

        cout << b[i] << endl;
    }
}

I installed code blocks in another computer and it’s working fine.

I’m still learning C++.

csg's user avatar

csg

8,0383 gold badges13 silver badges37 bronze badges

asked Aug 22, 2016 at 6:37

Athul's user avatar

3

What if I tell you that you should build your program to run it?

Wikipedia says:

In the field of computer software, the term software build refers
either to the process of converting source code files into standalone
software artifact(s) that can be run on a computer, or the result of
doing so. One of the most important steps of a software build is the
compilation process where source code files are converted into executable code.

It may be possible that your compiler is not linked properly to C::B or many other errors will be shown after you try to build your project, but for now (unless you post any build log) — you have to build your application in order to run it.

answered Aug 22, 2016 at 7:35

mtszkw's user avatar

mtszkwmtszkw

2,6872 gold badges16 silver badges31 bronze badges

6

In CodeBlocks when a program is part of a project, it needs to built so that the compiler puts together all of the individual parts of the project.
If you do not want it, just make it a stand-alone program by opening it out of the project.
Pressing F9 would do just fine.

answered Aug 22, 2016 at 8:37

Ceelogre's user avatar

CeelogreCeelogre

471 silver badge6 bronze badges

1

Solved , Anti-virus was deleting the .exe file for some reason. I put the project file folder in the «exclusion list» of anti-virus (or you can deactivate the anti-virus)

answered Sep 5, 2016 at 4:05

Athul's user avatar

AthulAthul

4292 gold badges5 silver badges17 bronze badges

This happens if you add a New File to the project and try to build-run the code.

The solution is to create a new file outside the project and then right-click on the tab (where the name of the file writes, followed by .cpp) and select Add file to active project. In the pop-up GUI, check the Debug and Release options and hit OK. Now if you build and run, you will no longer have the message saying “It seems like project has not been built yet. Do you wan to build it now?”.

answered Jan 15, 2019 at 1:12

csg's user avatar

csgcsg

8,0383 gold badges13 silver badges37 bronze badges

Нашёл на форуме Code::Blocks тему с похожей ошибкой, но так как это противоречит правилам этого форума, ссылку дать не могу. Тем не менее, там написано:

Solved the issue. In our Settings -> Global Variables one of our built in fields had spaces, C:Program Files (x86)Lua5.1 for example. Even though the full command line showed that CodeBlocks put the library in quotes, if I put the quotes around that path instead, the output of the compiler is this -I»C:Program Files (x86)Lua5.1″include

I’m not sure how that is different from -I»C:Program Files (x86)Lua5.1include» but it compiles fine now.

Как я понял, у человека в Settings -> Global Variables был указан путь к исходникам с пробелом (Program Files (x86)). Он поместил этот путь в кавычки (стобы устранить проблему с пробелами) и у него всё заработало.

Попробуйте порыскать в Settings -> Global Variables, что там у вас. Если ничего не поможет, можете попробовать переустановить Code::Blocks не в «C:Program Files (x86)» а в «C:Program Files», чтобы к путям include не было пробелов. Хотя у меня он установлен как раз таки в «C:Program Files (x86)» и такой ошибки как у вас нет, но что ещё посоветовать не знаю.

А вообще судя по всему у вас в Settings -> Compiler -> Search Directories зачем-то указан путь к кодеблоксу, в котором есть пробел:

Цитата
Сообщение от AlexGromov
Посмотреть сообщение

mingw32-g++.exe -Wall -fexceptions -g -I»C:Program Files (x86)CodeBlocksshareCodeBlocks» -c D:HEELabsLab10main.cpp -o objDebugmain.o
mingw32-g++.exe -o binDebugLab10.exe objDebugmain.o
mingw32-g++.exe: fatal error: no input files
compilation terminated.

Попробуйте этот путь убрать или взять в кавычки, как это сделал парень из приведённого мною с другого форума текста, авось заработает.
Лично у меня там ничего не прописано и всё прекрасно работает.

Добавлено через 8 минут
Ах нет, не в этом дело. Добавил я себе такой же путь в Search Directories и всё работает. Но вы сё равно попробуйте убрать его. Трудный у вас случай. Может стоит задуматься о переходе на другую IDE.

I’m a Lubuntu user. I installed Code::Blocks and when I ran the simple program «Hello world», this error appeared:

It seems that this project has not been built yet. Do you want to build it now?

What can I do?

Anastasia's user avatar

Anastasia

2091 gold badge2 silver badges11 bronze badges

asked Nov 23, 2015 at 17:10

Petrescu Gabriel's user avatar

1

It may be because you don´t have your libraries for C language installed.

Try this:

sudo aptitude install build-essential

or try

sudo apt-get install build-essential

After installation, open your code blocks and it should be fixed.

Zanna's user avatar

Zanna

68.2k55 gold badges210 silver badges320 bronze badges

answered Apr 11, 2017 at 17:49

Squierx's user avatar

make sure while saving the file, you gave it a .cpp extension. Then click on triangular button you can see on the top of the screen, which is your build and run button

answered Nov 23, 2015 at 18:09

cppfreak's user avatar

1

I ran on the terminal

sudo apt-get install g++ 

and that fixed the error…

Melebius's user avatar

Melebius

10.8k8 gold badges48 silver badges75 bronze badges

answered Sep 27, 2018 at 0:18

AlanRo's user avatar

1

  • Печать

Страницы: [1]   Вниз

Тема: [решено] code::blocks. возникшие вопросы  (Прочитано 5006 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
oberonson

установил кодблокс с 10 попытки (2 день на Ubuntu после виндовс). запустил, решил протестить «хеллоуворлдом»

#include <stdio.h>
int main()
{
printf(«hello world»);
return 0;
}

как учили, нажав кнопку «Build» при запуске компиляции выдал, что ничего  не изменялось, сделал пару намеренных, но глупых ошибок( удаление символа «;»). ответ: ничего не было изменено. кнопки » Run» и » Build and Run» ругается:

It seems that this project has not been built yet.
Do you want to build it now?

нажав на да, выскакивает это же окно.

вопросы: как разрешить эту проблему? и можно ли ввести цветовую индикацию функций, как в виндовс версии?
Ubuntu 10.04 LTS i386, code blocks с этого ресурса( наткунся в одной из тем этого форума) http://lgp203.free.fr/spip/spip.php?article1

п.с. кодблокс необходим, т.к. обучение в институте проводится на нём.

« Последнее редактирование: 12 Февраля 2011, 13:39:16 от oberonson »


Оффлайн
SergeyIT

Извините, я все еще учусь


Оффлайн
oberonson

ставил этот поверх 8.02, скаченный из стандартного репозитория, но она вроде запускалась, но сразу закрывалась. + я говорю — пытался ставить несколько раз, притом по разным рекомендациям, что гугл выдавал в запросе.


Оффлайн
SergeyIT

А чем не устроила установленная из репозитария?

Извините, я все еще учусь


Оффлайн
oberonson

ставил этот поверх 8.02, скаченный из стандартного репозитория, но она вроде запускалась, но сразу закрывалась.

даже стандартного окна выбора проекта не было.


Оффлайн
SergeyIT

Установил из реп кодеблок 8.02. Создал проект — консольное приложение (ваш пример сгенерировался автоматом). Запустил — всё работает. Что я делаю не так?
Может вместо французского сайта что другое почитать для начала?

Извините, я все еще учусь


Оффлайн
oberonson

может быть, попробую всё связанное с кодблоксом удалить. спасибо


Пользователь решил продолжить мысль [time]Wed Feb  9 20:08:41 2011[/time]:


переставил Ubuntu. скачал с репозитория 8.02, запустилась нормально, но опять же эти же проблемы, может что-то еще требуется для установки?

UPD. поставил NetBeans . работает нормально. компиляция проходит сразу после установки плагина для работы с С/С++. вопрос закрыт.

« Последнее редактирование: 12 Февраля 2011, 13:37:48 от oberonson »


  • Печать

Страницы: [1]   Вверх

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#include "Include.hpp"

// Constructor: DIRECT3D( void )
DIRECT3D::DIRECT3D( void )
{
    // Set both interface and device to NULL.
    Device = NULL;
    Interface = NULL;

    // Initialize the parameters.
    Parameters = D3DPRESENT_PARAMETERS( );

    // Create the interface.
    Interface = Direct3DCreate9( D3D_SDK_VERSION );

}

// Destructor: ~DIRECT3D( void )
DIRECT3D::~DIRECT3D( void )
{
    // Release the memory.
    Finalize( );
}

// Method: Initialize( void )
bool DIRECT3D::Initialize( HWND Window )
{
    // Setup the parameters
    Parameters.Windowed = true;
    Parameters.SwapEffect = D3DSWAPEFFECT_DISCARD;
    Parameters.BackBufferFormat = D3DFMT_UNKNOWN;
    Parameters.BackBufferWidth = 500;
    Parameters.BackBufferHeight = 500;
    Parameters.BackBufferCount = 1;
    Parameters.hDeviceWindow = Window;

    if( FAILED( Interface -> CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, Window, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &Parameters, &Device ) ) )
    {
        return false;
    }
    return true;
}

// Method: Render( void )
void DIRECT3D::Render( void )
{
    // Setup the renderer.
    if( Device == NULL )
    {
        return;
    }

    // Clear the screen to the set colour.
    Device -> Clear( 0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB( 63, 63, 63 ), 1.0f, 0 );

    if( SUCCEEDED( Device -> BeginScene( ) ) )
    {
        // Draw...

        // End the scene.
        Device -> EndScene( );
    }

    // Show the back buffer.
    Device -> Present( NULL, NULL, NULL, NULL );
    return;
}

// Method: Finalize( void )
void DIRECT3D::Finalize( void )
{
    // Release the memory.
    if( Device != NULL )
    {
        Device -> Release( );
        Device = NULL;
    }

    if( Interface != NULL )
    {
        Interface -> Release( );
        Interface = NULL;
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#include "Include.hpp"

/*  Declare Windows procedure  */
LRESULT CALLBACK WindowProcedure( HWND, UINT, WPARAM, LPARAM );

/*  Make the class name into a global variable  */
char szClassName[ ] = "CodeBlocksWindowsApp";

int WINAPI WinMain( HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nCmdShow )
{
    HWND hwnd;               /* This is the handle for our window */
    MSG messages;            /* Here messages to the application are saved */
    WNDCLASSEX wincl;        /* Data structure for the windowclass */

    /* The Window structure */
    wincl.hInstance = hThisInstance;
    wincl.lpszClassName = szClassName;
    wincl.lpfnWndProc = WindowProcedure;      /* This function is called by windows */
    wincl.style = CS_DBLCLKS;                 /* Catch double-clicks */
    wincl.cbSize = sizeof (WNDCLASSEX);

    /* Use default icon and mouse-pointer */
    wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
    wincl.lpszMenuName = NULL;                 /* No menu */
    wincl.cbClsExtra = 0;                      /* No extra bytes after the window class */
    wincl.cbWndExtra = 0;                      /* structure or the window instance */
    /* Use Windows's default colour as the background of the window */
    wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;

    /* Register the window class, and if it fails quit the program */
    if( !RegisterClassEx( &wincl ) )
        return 0;

    /* The class is registered, let's create the program*/
    hwnd = CreateWindowEx (
           0,                   /* Extended possibilites for variation */
           szClassName,         /* Classname */
           "Code::Blocks Template Windows App",       /* Title Text */
           WS_OVERLAPPEDWINDOW, /* default window */
           CW_USEDEFAULT,       /* Windows decides the position */
           CW_USEDEFAULT,       /* where the window ends up on the screen */
           544,                 /* The programs width */
           375,                 /* and height in pixels */
           HWND_DESKTOP,        /* The window is a child-window to desktop */
           NULL,                /* No menu */
           hThisInstance,       /* Program Instance handler */
           NULL                 /* No Window Creation data */
           );

    /* Make the window visible on the screen */
    ShowWindow( hwnd, nCmdShow );

    // Initialize.
    Direct3D.Initialize( hwnd );

    /* Run the message loop. It will run until GetMessage() returns 0 */
    while( messages.message != WM_QUIT || messages.message != WM_DESTROY )
    {
        if( PeekMessage( &messages, NULL, 0, 0, PM_REMOVE ) )
        {
            TranslateMessage( &messages );
            DispatchMessage( &messages );
        }

        else
        {
            // Render the frame.
            Direct3D.Render( );
        }
    }

    /* The program return-value is 0 - The value that PostQuitMessage() gave */
    return messages.wParam;
}


/*  This function is called by the Windows function DispatchMessage()  */

LRESULT CALLBACK WindowProcedure( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam )
{
    switch( message )                  /* handle the messages */
    {
        case WM_DESTROY:
            Direct3D.Finalize( );
            PostQuitMessage (0);       /* send a WM_QUIT to the message queue */
            break;

        case WM_KEYDOWN:
            switch( wParam )
            {
                case VK_ESCAPE:
                    Direct3D.Finalize( );
                    break;
            }
            break;

        default:                      /* for messages that we don't deal with */
            return DefWindowProc (hwnd, message, wParam, lParam);
    }

    return 0;
}

That’s all I’ve got.

Понравилась статья? Поделить с друзьями:
  • It needs a gamemode0 line at the very least как исправить
  • It looks like there is an error with docker desktop restart it to fix it
  • It looks like snap camera is currently running как исправить
  • It is not found any file specified for isarcextract как исправить
  • It appears you are using a legacy cpu planetary annihilation titans ошибка