Hi Obfuscated,
Thank you for answering.
1. Use a VCS to share projects between computers
I did not realize I had given the impression that I was not using a version control system.
I am.
Subversion is my VCS of choice and is what I am using. Upstream, the company I work for also uses Subversion.
2. Try Settings -> Global variables https://wiki.codeblocks.org/index.php/Global_compiler_variables
I remember playing with these a few years ago when I still had a Windows 8 development environment. I think I was doing something to help go from Win8 to OSX 9.5 to RHEL 5.10. However, I don't recall the specifics.
At any rate, since CodeBlocks is inserting the mount point is the suggestion to override the project base path with a user defined field?
If so, is the suggestion to use the user defined field in the build options?
In the CB default.conf file two of the entries in the recent projects section are:
<s>
<![CDATA[/CodeTemp/ins_LPOCode/LPOCheck/CodeBlocks/lpo_check.workspace]]>
</s>
<s>
<![CDATA[/SG2Data/CodeTemp/ins_LPOCode/LPOCheck/CodeBlocks/lpo_check.cbp]]>
</s>
The above snippet reflects me having opened the project file a few days ago on this computer. Whereas I had opened the workspace a few weeks ago on this computer and removed '/SG2Data' from the default.conf file
I also had to remove '/PIIData' from the .cbp files
Again, thank you for answering.
=thoth=
Hello CACB,
I agree with oBFusCATed about this. I have used Code::Blocks for years with different operating systems and computers, and initially I used some odd techniques for sharing projects and source code between computers in my local network. Later I used Bazaar for version control, and since a number of years I use only git for sharing between computers locally and also externally when appropriate (e.g. Github). I use a common local LAN network share to store local repositories, and clone from there to each local computer. This way it is very easy to synchronize locally without depending on external services.
I am using a VCS. I did not intend on giving the impression that I do not.
I also combine this with extensive use of C::B global variables, references to 3rd party libraries always use global variables. This makes it very flexible. Instead of symlinks you could use global variables.
The symbolic links are there for a different reason.
However, I do see how global variables including user defined fields could help with project resources.
Some of the global variables I use are:
$(CMD_CP) "$(TARGET_OUTPUT_FILE)" "/Code/Archives/$(TARGET_NAME)/$(TARGET_OUTPUT_FILENAME)_$(TDAY)"
/Libs/$(TARGET_NAME)
$(PROJECT_DIRECTORY)../Bin/$(TARGET_NAME)/
Thanks again for answering.
=thoth=