User forums > Help
cannot compile
BlueHazzard:
--- Quote ---I attached the message I get when I do that.
--- End quote ---
This seems to be OK... And it still does not work?
Try Build->Rebuild and post again the Log from the "Build Log" tab
@devs: We need more output for this kind of error... For example the full path to the compiler executable, probably an output of "gcc" -v and probably some more resolving why the execution failed.
Miguel Gimenez:
--- Quote ---@devs: We need more output for this kind of error... For example the full path to the compiler executable, probably an output of "gcc" -v and probably some more resolving why the execution failed.
--- End quote ---
And some info about the OS and CB version
wobien:
This is the Build Log after Rebuild:
-------------- Clean: Debug in priemzeef (compiler: GNU GCC Compiler)---------------
Cleaned "priemzeef - Debug"
-------------- Build: Debug in priemzeef (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -fexceptions -g -c C:\Users\wobie\Documents\Codeblocks\recreatie\priemzeef\main.cpp -o obj\Debug\main.o
Execution of 'mingw32-g++.exe -Wall -fexceptions -g -c C:\Users\wobie\Documents\Codeblocks\recreatie\priemzeef\main.cpp -o obj\Debug\main.o' in 'C:\Users\wobie\Documents\Codeblocks\recreatie\priemzeef' failed.
The path to mingw is C:\MinGW
I attached the About window from CB
My OS is Windows 10
Miguel Gimenez:
The last Windows 10 update adds optional protection to folders under Documents, so untrusted programs can't modify files inside those folders; Did you activate this option in Windows Defender?.
Copy the project folder outside of Documents (p.e. C:\CBProjects) and try to compile the copy.
If this does not work try opening a cmd console where main.cpp resides and execute
--- Code: ---mingw32-g++.exe -Wall -fexceptions -g -c main.cpp -o main.o
--- End code ---
Post the output of the command here.
wobien:
I copied the project folder outside of documents and tried to compile. No succes.
I attached the output of the cmd console.
I also attached the mingw/bin directory: there is no file mingw32-g++.exe, but a file mingw32-gcc.exe
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version