I find that when I create a project that adds new units, everything is in the Project Inspector, everything builds and runs... until I close the project and subsequently re-open it.
For example, the "Movie Catalogue" tutorial. I followed the tutorial, everything works. I saved the project using File | Save All and closed the project.
Upon re-opening it, only the files created by the wizard (MovieCatalogue*.*) appear in the Project Inspector, and the project will not build because files are missing. I have to go to Project | Add to Project and re-add AllMovies.h, AllMovies.cpp, Movie.h and MovieTableViewer.h. Now the files appear in the Project Inspector, and the project builds and runs. But when I close/re-open the project, the files created by me (and not by the wizard) are once again missing.
I have also tried File | Save Project As..., but the result is the same.
What am I doing wrong?
Incidentally, I can see the files when viewing the .dev in a text editor. I tried moving the [Unit n] sections for the extra files, and re-opening the project with that. It did no harm, but did no good, either.
Thanks for your help,
Kathleen
Not all files are saved after close/re-open project
-
- Earned some good credits
- Posts: 113
- Joined: Sat Sep 24, 2011 9:32 pm
- Location: Poland
Re: Not all files are saved after close/re-open project
Can you write what kind of version of wxDev are you using?
Regards, Jarek
Regards, Jarek
-
- In need of some credit
- Posts: 1
- Joined: Fri Nov 27, 2015 4:40 am
Re: Not all files are saved after close/re-open project
I am having the same problem with wxDev cpp 7.4.2.569
If I add HID.c to the project under project add to project it will not save after closing and reopening
If I add HID.c to the project under project add to project it will not save after closing and reopening
-
- Earned some good credits
- Posts: 113
- Joined: Sat Sep 24, 2011 9:32 pm
- Location: Poland
Re: Not all files are saved after close/re-open project
I use version 7.3.1.3 of wxDevC++ on Windows 8.1. I can confirm there is not any problems like you have described above. Regards, Jarek
Re: Not all files are saved after close/re-open project
Same problem with 7.4.2.569
-
- Earned some good credits
- Posts: 113
- Joined: Sat Sep 24, 2011 9:32 pm
- Location: Poland
Re: Not all files are saved after close/re-open project
You can try to update your DEV file manually in some text editor. You need to add couple lines for each additional file, example:
Or try to use older version. Regards, Jarek
Code: Select all
[Unit11]
FileName=NameOfYourAdditionalFile.h
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
- Attachments
-
- dev_file.png (17.07 KiB) Viewed 17865 times
Re: Not all files are saved after close/re-open project
I found that the unit references i.e. [Unit 21] were being made when files were added to the project, but the UnitCount under [Project] was not.
Editting the .dev with wordpad to ensure that UnitCount matched the unit references, fixed the problem, albeit that it is a kludge.
Editting the .dev with wordpad to ensure that UnitCount matched the unit references, fixed the problem, albeit that it is a kludge.