News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

*** HELP NEEDED*** installing Code::Blocks with MinGW

Started by DS, September 25, 2012, 03:02:57 PM

Previous topic - Next topic

DS

Hello All,

I followed the instruction that you laid out for installing Code::Blocks with MinGW. The installation was successful however I could not open the main.cpp file as I get the error message "Could not open the file main.cpp
The file does not exist"

I checked and found out that there were 23 main.cpp files in the Code Blocks folder . The path is - C:\Program Files\ CodeBlocks\share\CodeBlocks\templates\wizards.

Will you please let me know how I can address this issue.

Thanks,
DS

zabzonk

#1
Are you creating a project? You must do so. To create one:

- start C::B
- select "create new project"
- choose "console application", and click "go"
- choose "C++" and click "Next"
- enter the project title, use something like "foobar"  with no spaces or special characters and click "Next"
- click "Finish"

This will create a project that will show up in the project manager window with a suitable main.cpp - edit this main.cpp to meet your requirements

DS

Thanks Neil . I tried it but now I get the error message:

Couldn't save project <invalid path>
(Maybe the file is write -protected)


I tried out the same process that you have outlined with other file names , but I get the same error message.

Freem

If I am not wrong, when you just installed C::B, the field "Folder to create project in:" is empty.
You must say where your project will be created.

DS


jarod42

And avoid to create project under any directory in "Programs File" (where write permission is special).

Freem

Another advice would be to avoid creating it in a folder with a space or special character in the name, while we are at it.

DS