Меню

No such file or directory codeblocks ошибка

Here is the steps I followed in CodeBlocks IDE:

Create a new project->console->C->Name->debug and release->finish

So when I choose main.c and build it, It should show the «Hello World!», but I get this weird mingw32-gcc.exe: error: CreateProcess: No such file or directory error.

I’ve written and compiled about 20 C files this way, but I don’t know what has recently happened to the IDE.

I’ve checked the CodeBlocks forum and googled this problem;No results
Any ideas?

Bulid Log:

-------------- Build: Debug in C (compiler: GNU GCC Compiler)---------------

mingw32-gcc.exe -Wall  -g     -c "C:...Project FilesC CodesCmain.c" -o objDebugmain.o
mingw32-gcc.exe: error: CreateProcess: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings (0 minutes, 0 seconds)

I used CodeBlocks 10.02 three days ago and it compiled and ran the code successfully. It showed this error yesterday. I thought that maybe the code file wasn’t included so I removed the previous code from the project and added the new file (I do like this for about 20 programs and always get results); but the error still exists. Then I rebuilt the project but still got the error. I uninstalled ver.10.02 and installed a new version 12.11 today. Again I get this weird error.

P.S. It looks like someone else have had this problem too:
mingw32-g++.exe: error: CreateProcess: No such file or directory

Topic: compiler problem : no such file or directory  (Read 59936 times)

all dear members.
I have just installed code::blocks 16.01 in order to start learning programming. however, I have received vague problem with title no such file or directory when I tried to run Hello world example.
I also tried all ways that I found on internet but all of them were worthless.
it would be great help if someone helps me to solve this problem.
Regards.


Logged



Logged


I am running Code::Blocks version 16.01 on windows 7 SP1). The compiler I use is GCC/G++ compiler and GDB debugger from TDM-GCC version  (version 4.9.2, 32 bit, SJLJ).  It is the last version which is available on Code::Blocks’s site.

When I installed this software on my PC, at first time that I wanted to run the simplest example which is existed (hello, world) in console application, it seemed that it was not able to build a model. I have received message as follow:
||=== Build: Debug in g (compiler: GNU GCC Compiler) ===|
 CreateProcess||No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

Build log:

mingw32-gcc.exe -Wall -g  -c D:UsersARTDesktopgmain.c -o objDebugmain.o
mingw32-gcc.exe: error: CreateProcess: No such file or directory
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))

I have already tried several ways which I found on internet.
I installed Code::Blocks 13.12, but still I had the same problem.
I also reset defaults because I saw that in some versions this could help members to solve their problems.
In addition, I tried to use another compiler; however, I was not able to download another compiler.

… but none of them worked.


Logged


(To devs: If this error arises there should be a more detailed error messages, like compiler in path not found, with detailed search paths or so…)

This error can have multiple causes, but i think the main cause is that codeblocks can’t find or launch the compiler.
Have you used this installer:
http://sourceforge.net/projects/codeblocks/files/Binaries/16.01/Windows/codeblocks-16.01-setup.exe ?

if so, the compiler should be installed in the codeblocks installation folder. I can’t check this at the moment, but the default installation path should be something like c:program files (x86)CodeblocksMinGW
You should check if the path under «Settings->Compiler->Toolchain executables->Compiler installation directory» points to this location

you can also search for «mingw32-gcc.exe» and point the «Compiler installation directory» to the corresponding bin folder

a other cause can be that your anti virus program blocks the compiler «mingw32-gcc.exe» because it thinks that it is a virus. The solution for this would be to deactivate the anti virus, or add the compiler directory to the ignore list.

greetings


Logged


1- yes. I used this link to install codeblocks.
2- d:program files (x86)CodeblocksMinGW is my installation path. I also changed my installation path to  d:program files (x86)CodeblocksMinGWbin  but codeblocks did not work again.
3- about antivirus. I tried to install codebblocks without antivirus but I did not get better result.
4- in addition, I installed codeblocks on windows xp but I got the same result.


Logged


Did you verify that you have a Compiler installed on your Computers?

Tim S.


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


in installation process codeblocks only detected one compiler which was installed by itself. I have also some other compilers such as visual c++ 2005 but it could not find it. as a result, I continued installation process only by one compiler.


Logged


mingw32-gcc.exe: error: CreateProcess: No such file or directory

(To devs: If this error arises there should be a more detailed error messages, like compiler in path not found, with detailed search paths or so…)

I would guess the problem is a bad Compiler Installation; but, I have never been able to find the real cause of this complaint.
The one time I had a similar issue it was caused by two MinGW installations interfering with each other.  I solved my issue my deleting all the MinGW installations (Including MSys and Cygwin) from my PATH environmental variable. I would also make sure no sh.exe commands are in the system PATH. But, the OP errors is NOT exactly like my error; so, my solution might not help them at all.

Edit: If CB could NOT find the exe the error message is different unless they changed it in the last release of 16.01

If CB could NOT find the C Compiler this is what CB Displays; note: This Forum tends to auto edit this message.

"h - Debug": The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
Probably the toolchain path within the compiler options is not setup correctly?! (Do you have a compiler installed?)
Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.
Skipping...
"h - Debug": The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
Probably the toolchain path within the compiler options is not setup correctly?! (Do you have a compiler installed?)
Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.
Skipping...

Tim S.

« Last Edit: April 16, 2016, 10:59:41 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


mingw32-gcc.exe: error: CreateProcess: No such file or directory

Edit: If CB could NOT find the exe the error message is different unless they changed it in the last release of 16.01

If CB could NOT find the C Compiler this is what CB Displays; note: This Forum tends to auto edit this message.

"h - Debug": The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
Probably the toolchain path within the compiler options is not setup correctly?! (Do you have a compiler installed?)
Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.
Skipping...
"h - Debug": The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
Probably the toolchain path within the compiler options is not setup correctly?! (Do you have a compiler installed?)
Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.
Skipping...

So this is a compiler internal error? probably Mingw could not find, execute something?

.
3- about antivirus. I tried to install codebblocks without antivirus but I did not get better result.

Not only deactivate during setup, but also during the use of codeblocks, or the start of compilation.

2- d:program files (x86)CodeblocksMinGW is my installation path. I also changed my installation path to  d:program files (x86)CodeblocksMinGWbin  but codeblocks did not work again

Why do you have a d: in front of your path?

Can you check if your installation path of mingw is in the PATH environment variable of your os?
http://www.computerhope.com/issues/ch000549.htm

4- in addition, I installed codeblocks on windows xp but I got the same result.

Are there some similarities with your main system (for ex. same anti virus software or also does not use the c: drive ecc.)

As you can see your error is not something common, so it would be nice if you can report back what solved your issue, so you can help us and others

greetings


Logged



Logged


So this is a compiler internal error? probably Mingw could not find, execute something?

Yes, this is an MinGW internal error; I have only gotten it once.
But, I gotten the same error with mingw make instead of the mingw compiler about 30 times.
It has at least 50% of the time been caused by sh.exe being in my system path; the other times I saw no common cause.

Edit: My original theory related to mingw make was that it failed to find the command to delete a file; I forgot why I thought that was a possible cause.

Tim S.

« Last Edit: April 17, 2016, 12:21:25 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


Yes, this is an MinGW internal error; I have only gotten it once.
But, I gotten the same error with mingw make instead of the mingw compiler about 30 times.
It has at least 50% of the time been caused by sh.exe being in my system path; the other times I saw no common cause.

Edit: My original theory related to mingw make was that it failed to find the command to delete a file; I forgot why I thought that was a possible cause.

Tim S.
[/quote]
I have two windows on m lab top. one of them is 7 with AVG 2014 and other XP with NOD32.
I have deleted both antiviruses. on XP I finally was successful and got result, but on 7 I still have problem.
I even have deleted all related files manually. but problem still is existed. 


Logged


On the Windows 7, the issue might be one of permissions.
In other words, you might try having the project you are trying to create in a folder you are positive you have read and write rights.

I would just verify the Compiler is good by compiling on the command line; but, newbies find this to be hard.
Edit: I wrote directions to verify an MinGW Compiler works somewhere; I will see if I can find them.

Tim S.

« Last Edit: April 17, 2016, 03:33:10 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


« Last Edit: April 17, 2016, 03:39:07 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



Logged


Вопрос:

Вот шаги, которые я выполнил в CodeBlocks IDE:

Create a new project->console->C->Name->debug and release->finish

Поэтому, когда я выбираю main.c и main.c его, он должен показывать “Hello World!”, Но я получаю этот странный mingw32-gcc.exe: error: CreateProcess: No such file or directory ошибка mingw32-gcc.exe: error: CreateProcess: No such file or directory.

Таким образом я написал и скомпилировал около 20 файлов C, но я не знаю, что недавно произошло с IDE.

Я проверил форум CodeBlocks и погуглил эту проблему, результатов нет
Есть идеи?

Bulid Log:

-------------- Build: Debug in C (compiler: GNU GCC Compiler)---------------

mingw32-gcc.exe -Wall  -g     -c "C:...Project FilesC CodesCmain.c" -o objDebugmain.o
mingw32-gcc.exe: error: CreateProcess: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings (0 minutes, 0 seconds)

Я использовал CodeBlocks 10.02 три дня назад, и он успешно скомпилировал и запустил код. Это показало эту ошибку вчера. Я подумал, что, возможно, файл кода не был включен, поэтому я удалил предыдущий код из проекта и добавил новый файл (я делаю это примерно для 20 программ и всегда получаю результаты); но ошибка все еще существует. Затем я перестроил проект, но все равно получил ошибку. Я удалил ver.10.02 и установил новую версию 12.11 сегодня. Я снова получаю эту странную ошибку.

PS Похоже, у кого-то тоже была эта проблема:
mingw32-g++. exe: ошибка: CreateProcess: нет такого файла или каталога

Лучший ответ:

Получил это окончательно:

В моем случае проблема возникла в результате программы под названием EGCS (Экспериментальная/Расширенная система компилятора GNU). Я установил его как предварительное условие для PSCAD (Power Systems CAD) вместе с FORTRAN Компилятор. Просто удалите его, и все будет хорошо.
 (К сожалению, я удалил из-за ошибки. Так что?… я закончил установку новой Win7, но после удаления моего Ubuntu, который снова из-за проблем с загрузкой, возникших в результате удаления GRUB, я снова кончался с fixmbr и fixboot fellas (Но я потерял свой DVD-плеер для ноутбуков!)… В итоге, EGCS рассмеялся меня за 0,5 * МЕСЯЦ…)

Для получения дополнительной информации о таких проблемах посетите здесь (Code:: Blocks Forum)

Ответ №1

Кодовые блоки, кажется, вызывают gcc correct – я не вижу ничего плохого в том, как он вызывается. Сообщение об ошибке, которое вы получаете:

gcc.exe: error: CreateProcess: Нет такого файла или каталога

указывает, что что-то не так с вашей установкой mingw-gcc. Поскольку вы сказали, что это работает ранее, вероятно, это означает, что некоторые файлы, необходимые для работы gcc, либо повреждены, либо переименованы, либо перепутаны, либо удалены случайно.

Фактически, я смог воспроизвести эту точную ошибку, переименовав cc1.exe. Это компилятор C, который gcc должен скомпилировать исходный файл C. В моей установке для Mingw-4.6.3 это находится под ./libexec/gcc/i686-w64-mingw32/4.6.3. Ваш может отличаться в зависимости от того, какая версия и вариант mingw вы используете.

Я рекомендую загрузить и переустановить вашу копию gcc вообще, так как исправление этого вручную может быть сложным.

Ответ №2

Ответы здесь не помогли решить мою проблему! Мой друг понял это для меня. Решение было довольно простым и прямым. Возникла проблема, заключавшаяся в том, что компилятор не мог связать себя с MinGW (Minimalist GNU для Windows), который мог быть изменен некоторыми другими файлами make для make файлов, таких как CMake и т.д. Таким образом, решение:

  • Откройте Codeblocks и в верхней панели инструментов выберите параметр Settings и под ним выберите параметр компилятора.
  • Он откроет окно настройки компилятора. Здесь выберите параметры глобального компилятора (с символом Gear), а в подпараметрах выберите вариант исполняемых файлов Toolchain.
  • В этом разделе выберите каталог установки компилятора. Здесь просматриваются файлы для выбора: C:Program Files (x86)CodeblocksMinGWbin
  • Теперь выберите опцию “Автоматическое обнаружение” справа.

Он должен решить вашу проблему, и я надеюсь, что вы поняли, в чем проблема! Счастливое программирование!

Ответ №3

Я просто решил эту ошибку. Вероятно, я получил это, когда я случайно переместил файл, который был запущен в C-Free IDE. Все, что вам нужно сделать, – найти файл g++ exe в файлах программы. Просто просмотрите файлы программы конкретной IDE и найдите папку mingW и найдите “g++. Exe”,
внутри него.

Ответ №4

Это обычно происходит, когда компиляторы PATH в Codeblocks не являются допустимыми. В моем случае это указывало на C:/MinGW. Какие кодовые блоки обнаружены с помощью функции автоматического обнаружения.

Чтобы избавиться от этой ошибки, вам нужно изменить путь назад к тому, который присутствует в папке программы Codeblocks.

В моем случае это было – C:Program Files (x86)CodeBlocksMinGW.

Вы можете изменить путь в Codeblocks, выполнив следующие шаги.
Строка меню- > Настройки- > Компилятор- > Исполняемые файлы.
Затем введите соответствующий допустимый путь к каталогу компилятора.

Надеюсь, что это решает вашу проблему.

Ответ №5

У меня все еще была проблема с этой ошибкой. Оказывается, это было там, потому что у меня был MinGW, установленный снаружи перед установкой CodeBlocks.

В этом случае проверьте, не указывает ли ваш путь к каталогу (объясняется, как его изменить) не C:MinGWbin, а вместо этого C:Program Files (x86)CodeBlocksMinGWbin, так как это может вызвать появление ошибки.

Ответ №6

После двух дней борьбы я подтвердил решение от кодсаворы и Ананда М.П.

Вся причина в исполняемых файлах Toolchain. Я наконец обнаружил, что это был путь Cygwin!

После того, как я изменил на D:GreenSoftCodeBlocksMinGW, он скомпилируется нормально!

Я думаю, что проблема возникает на этапе установки: кодовые блоки обнаруживают всюду на вашем ПК, чтобы найти существующий gcc, и позволяют вам выбрать один из них как ваш любимый. Он даже забыл, что установщик уже связан с minGW !, и он не показывает, где находится обнаруженный gcc! Так что если вы просто подтвердите один и забудете его, он откажется от прилагаемого minGW.

  • Forum
  • Beginners
  • no such file or directory

no such file or directory

so i am trying to run a simple hello world program for a first time, i used the example on this site, but when i go to build it, using code blocks with MinGW, it tells me on line 3 error: iostream: no such file or directory.
my line three is this #include <iostream>
am i doing something wrong or does code blocks and MinGW not include the iostream directory?

Are you sure you made a C++ project and not, say, a C project? That will make a difference.

-Albatross

yeah its a c++ project

In that case it sounds like something got misconfigured during installation. Have you tried reinstalling Code::Blocks?

-Albatross

im about to try that. but before i do am i supposed to download the codeblocks-10.05-setup.exe file or the codeblocks-10.05mingw-setup.exe?

download codeblocks-10.05mingw-setup.exe, but before you do that make sure it’s a c++ project.
If you don’t specify it as a (dot)—> .cpp codeblocks automatically makes it a c project.

when you named your main file did you put nameWhatEver.cpp or nameWhatEver?

Topic archived. No new replies allowed.

Я загрузил Code:: Blocks отсюда: http://www.codeblocks.org/downloads/26

Я изучаю программирование. Когда я запускаю следующую программу, я получаю сообщение об ошибке:

iostream: No such file or directory
error: syntax error before "namespace"
warning: type defaults to `int' in declaration of `std'
warning: data definition has no type or storage class
In function `main':
error: `cout' undeclared (first use in this function)
error: (Each undeclared identifier is reported only once
error: for each function it appears in.)
error: `cin' undeclared (first use in this function)

Я запускаю следующую программу:

#include <iostream>
using namespace std;

int main()
{
  int x;

  x = 0;
  do {
    // "Hello, world!" is printed at least one time
    //  even though the condition is false
    cout<<"Hello, world!n";
  } while ( x != 0 );
  cin.get();
}

Я попробовал Dev-С++, я получаю ту же ошибку.
Как это исправить?

Спасибо,
Сара

22 апр. 2012, в 21:16

Поделиться

Источник

13 ответов

Это в файле типа «program.c» или «program.cpp»? Если это файл .c, то ваш компилятор может интерпретировать его как C, а не С++. Это может привести к такой ошибке. Можно «заставить» компилятор рассматривать такое расширение как другое, но по умолчанию файлы .c для C, а .cpp файлы скомпилированы как С++.

Это либо это, либо как-то ваши стандартные «включенные» каталоги для стандартной библиотеки не настроены правильно, но я не знаю, как вы это исправите, поскольку это будет связано с компилятором/средой.

Kevin Anderson
22 апр. 2012, в 16:54

Поделиться

У меня также была эта проблема при попытке запустить мою первую программу в Code:: Blocks. Мой файл был сохранен с расширением «.c» как «test.c», и когда я сохранил его как «test.cpp», он работал нормально.

Также стоит отметить, что мне пришлось перезапустить Code:: Blocks, прежде чем новый файл test.cpp был скомпилирован успешно.

Olexiy
25 май 2013, в 04:19

Поделиться

Сохраняя исходный код перед компиляцией, просто сохраните имя с расширением «.cpp». Вы не получите ошибку.

jibranejaz
09 нояб. 2015, в 07:37

Поделиться

Используйте <iostream> вместо <iostream.h>
и добавьте std:: до cout, cin и т.д.

Использовать std::cout << "Welcome";
вместо cout << "Welcome";

Сохраните файл с расширением .cpp

Javed Iqbal
17 апр. 2015, в 18:41

Поделиться

Очевидно, вы хотите создать файл c++. Но вы позволили вашему компьютеру автоматически предоставлять расширение файла C/c++. Когда он это делает, он автоматически предоставляет расширение файла «.c». Который не является основным. Вы хотите «.cpp».

Решение: переименуйте ваш файл с расширением «.cpp», или явно укажите свое расширение при сохранении новых файлов, поставив «.cpp» (без кавычек, конечно) после предполагаемого имени файла; т.е. укажите ваше расширение файла.

Ken Cole
06 июль 2018, в 19:06

Поделиться

Я обнаружил, что проблема связана с предыдущей версией cgg и cpp в установке Perl. Структура Perl не имела правильных файлов библиотеки. Когда я добавил C:MinGWbin и C:MinGWMSYS1.0bin в путь, я добавил их в конец, чтобы сначала перенести Perl-установку. Я переместил записи переменной пути в начало и снова открыл мое окно cmd, и теперь он работает, потому что сначала находит версию MinGW.

Введите путь, чтобы просмотреть переменную varialble. Моя теперь выглядит следующим образом:

C:MinGW>path
PATH=C:MinGWbin;C:MinGWMSYS1.0bin;C:Perlsitebin;C:Perlbin;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program FilesWIDCOMMBluetoothSoftware;

Hughie
12 март 2015, в 07:24

Поделиться

у вас отсутствует файл iostream.h в папке каталога mingw, помещенной внутри codeblocks/devС++. вам нужно просто загрузить файл из приведенной ниже ссылки и заменить на предыдущую папку mingw в кодовых блоках/devС++.

http://www.4shared.com/rar/owp-D0Km/mingw.html

Meghraj Sharma
03 июнь 2014, в 13:03

Поделиться

У меня такая же проблема.

Изменить #include < iostream.h > to #incude <iostream>

Следовательно, в вашей программе измените каждое ключевое слово, связанное с iostream, например cin cout и endl, на std:: cout, std:: cin и std:: endl

Это будет трюк

Aseem Ahir
21 апр. 2014, в 08:26

Поделиться

Если вы все еще не можете скомпилировать, даже если вы изменили формат/расширение вашего файла на .cpp, это означает, что ваш компилятор GNU GCC не поддерживает заголовочные файлы C++, такие как Iostream и т.д. Вам нужно обновить или найти какой-нибудь лучший компилятор MinGW файл.

Вот ссылка на скачивание MinGW, совместимого с файлом cpp, который я получил ранее в ветке:

http://www.4shared.com/rar/owp-D0Km/mingw.html

Rizky Akbar
03 июль 2019, в 10:13

Поделиться

вы написали свою программу в коде на С++, используйте код c, тогда ваша программа будет работать правильно

в первой строке используйте его

#include <Io stream.h>
main ()
{

в конечной строке используйте его

system (pause");

user3023906
22 нояб. 2013, в 23:34

Поделиться

Просто поставьте «Использование пространства имен std;» перед main(), чтобы определить область используемых вами идентификаторов. Это легко справится с вашей проблемой.

Varun
30 июнь 2017, в 02:20

Поделиться

Вы пытаетесь сделать игру C правильно? Если вы — ваш код, С++ не C. Поэтому, если вы пытаетесь сделать игру C, вы должны изменить свой код. Это может помочь.

zane
13 апр. 2016, в 20:01

Поделиться

Попробуйте включить iostream.h вместо iostream.

IwishIknewMore
22 апр. 2012, в 15:46

Поделиться

Ещё вопросы

  • 0Как получить значение элемента HTML в приложении Google HTML service?
  • 0Событие Jquery, когда событие .on находится во вложенной функции
  • 1Многоуровневый список в документе Asopse
  • 1Каково состояние нажатой вкладки в Android
  • 0Как вы называете «йо» йомен с пользовательским именем
  • 0Как создать движущиеся частицы при перемещении мыши в html5, css3 или jQuery?
  • 1Реализация c # haversine дает другой ответ, чем googlemaps / movable-type.co.uk
  • 1Сбой при открытии базы данных Android sqlite
  • 0Что касается условий и || оператор в C ++
  • 0Почему я не получаю пакеты UDP при использовании winsock?
  • 1Перечень типизированных связующих [дубликаты]
  • 1как конвертировать керас тензор поток в керас мкснет
  • 1Просмотр в Android, занимающий весь экран — как заставить холст соблюдать ограничения вида?
  • 1Android: доступ к Интернету
  • 0перенаправление нескольких URL
  • 1Генерация мультитач MotionEvents для тестирования
  • 0Ширина столбцов сетки angularJs не настраивается автоматически
  • 1Ошибка типа — ссылка на классы JavaScript
  • 1NullPointerException в итераторе
  • 0Как умножить 2 таблицы / списка в MySQL?
  • 0MySql — удалить одно и то же поле внутри нескольких таблиц
  • 0Новые столбцы для случайных случаев: новые столбцы или отдельная таблица или столбец json
  • 0XMLHttpRequest не может загрузить URL. Неверный код состояния HTTP 400 (WebApi с angularJs на Chrome)
  • 1SEVERE: SAAJ0537: недопустимый тип содержимого. Может быть сообщение об ошибке вместо сообщения SOAP
  • 1получить обновленное значение параметра на asp.net с помощью команды sqlcommand
  • 1Получение ошибки 404 запроса в Python при доступе к API
  • 0Php загрузить файл, затем обрезать
  • 1UnityContainer.cs не найден
  • 1Результаты предсказания регрессии в науке слишком хороши. Что я испортил?
  • 0Метод сохранения CRUD ссылается на неправильный URL
  • 1Реализовать Google Voice Actions в Android
  • 0Как сделать MYSQL-запрос на выбор из двух таблиц на основе долготы, широты и радиуса?
  • 0Как воспроизведение метафайлов работает в GDI
  • 0Как отредактировать значение id_semester в соответствии с вводом, используя select?
  • 1Что означает объект, который должен быть инициирован один раз, но вызван разными потоками? (Я имею в виду сервлеты ..)
  • 1Связь с сервисом Android
  • 0Выражение регулярного выражения, похожее на шорткоды WordPress
  • 0Проблема цикла Chart.js, PHP и JSON
  • 0Laravel 4 Неопределенные ошибки переменных
  • 1перезагрузить данные listView
  • 0Конструктор копирования связанного списка
  • 1JS: Фильтр массив только для непустых и тип строковых значений
  • 1Как найти не дочерний вид в Android?
  • 1Как установить диапазон дат за 3 месяца с текущей даты в окне выбора даты?
  • 1DownloadFileAsync не загружает файл
  • 0Angular JS — метка времени YouTube для UNIX
  • 1Как создать пользовательскую кнопку в Android, которая анимируется с помощью анимации кадров
  • 1Изменение изображения SplashScreen с помощью SplashScreen.setImageURL (ссылка);
  • 1Как получить уверенность в гипотезе результата Sphinx4?
  • 1Рисование кружочка в XNA

Сообщество Overcoder

Вот шаги, которые я выполнил в CodeBlocks IDE:

Create a new project->console->C->Name->debug and release->finish

Поэтому, когда я выбираю main.c и создайте его, он должен показать «Hello World!», но я понимаю это странно mingw32-gcc.exe: error: CreateProcess: No such file or directory ошибка.

Таким образом я написал и скомпилировал около 20 C-файлов, но не знаю, что в последнее время произошло с IDE.

Я проверил форум CodeBlocks и погуглил эту проблему; никаких результатов
Есть идеи?

Строительный журнал:

-------------- Build: Debug in C (compiler: GNU GCC Compiler)---------------

mingw32-gcc.exe -Wall  -g     -c "C:...Project FilesC CodesCmain.c" -o objDebugmain.o
mingw32-gcc.exe: error: CreateProcess: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings (0 minutes, 0 seconds)

Я использовал CodeBlocks 10.02 три дня назад, и он успешно скомпилировал и запустил код. Вчера показал эту ошибку. Я подумал, что, возможно, файл кода не был включен, поэтому я удалил предыдущий код из проекта и добавил новый файл (я делаю это примерно для 20 программ и всегда получаю результаты); но ошибка все равно есть. Затем я перестроил проект, но все равно получил ошибку. Сегодня я удалил версию 10.02 и установил новую версию 12.11. Я снова получаю эту странную ошибку.

PS Похоже, у кого-то тоже была эта проблема:
mingw32-g++.exe: ошибка: CreateProcess: нет такого файла или каталога

Trying to build and run the simulator, got fatal build error:

VersionHelpers.h: No such file or directory

Steps taken: downloaded and installed CodeBlocks 20.03 with MinGW. Downloaded the simulator project and LVGL files:

D:DevelopmentArduino>git clone https://github.com/lvgl/lv_sim_codeblocks_win.git
Cloning into 'lv_sim_codeblocks_win'...
remote: Enumerating objects: 175, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 175 (delta 1), reused 8 (delta 1), pack-reused 160
Receiving objects: 100% (175/175), 162.82 KiB | 0 bytes/s, done.
Resolving deltas: 100% (102/102), done.

D:DevelopmentArduino>cd lv_sim_codeblocks_win

D:DevelopmentArduinolv_sim_codeblocks_win>git submodule update --init --recursive
Submodule 'lv_drivers' (https://github.com/littlevgl/lv_drivers) registered for path 'lv_drivers'
Submodule 'lv_examples' (https://github.com/littlevgl/lv_examples) registered for path 'lv_examples'
Submodule 'lvgl' (https://github.com/littlevgl/lvgl) registered for path 'lvgl'
Cloning into 'D:/Development/Arduino/lv_sim_codeblocks_win/lv_drivers'...
Cloning into 'D:/Development/Arduino/lv_sim_codeblocks_win/lv_examples'...
Cloning into 'D:/Development/Arduino/lv_sim_codeblocks_win/lvgl'...
Submodule path 'lv_drivers': checked out '5b78b785a9b28b9c86c7af8ef1bc76ba2d49107e'
Submodule path 'lv_examples': checked out '1fa0de125f886bad2c9b0b4c399e156129e40fca'
Submodule path 'lvgl': checked out '77c61aa2975ee55f9ac2c88feeccce3c327ae0c3'

D:DevelopmentArduinolv_sim_codeblocks_win>

Opened LittlevGL.cbp in CodeBlocks and did Build and Run:

=== Build: Debug in LittlevGL (compiler: GNU GCC Compiler) ===
D:DevelopmentArduinolv_sim_codeblocks_winlv_driverswin32drvwin32drv.c|15|fatal error: VersionHelpers.h: No such file or directory
=== Build finished: 1 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===

Not even sure where to begin resolving….

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • No speakable text present android studio ошибка
  • No space left on device ошибка субд