User forums > Help

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

(1/2) > >>

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:
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:
Many thanks Freem

Navigation

[0] Message Index

[#] Next page

Go to full version