View Single Post
  #2  
Old 01-18-2018, 05:49 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

Anytime that you 'pull' from the github repository, I highly recommend deleting your 'build' folder and re-running cmake.

New files can be added or old ones deleted and this is the only way to account for those actions.

If only content changes are made, cmake will not need to be rerun..but, I wouldn't rely on that until you're comfortable with determining what needs to be done.


When you 'build' for the first time (whether by new local repository or by the action of deleting the build folder) intermediate code objects (*.obj files) are created
during the compile process.

These files are then used to create the final executable binary file (i.e., zone.exe.)


Most of the time, you can get away with just selecting the 'Build' option from the solution right-click menu.

This will compile the full program if there are no existing *.obj files, or it will update any modified ones and just remake the binary file based on the old and updated *.obj files.

Obviously, this will be much faster than doing a 'clean' build each time.


Sometimes you will update something, say in a 'header' file or 'shared' file, and this will cause a more thorough update as entry point offsets change and more will need to be updated.


If you try to compile and start receiving 'external link cannot be resolved' errors, especially after being able to compile successfully, just select 'clean,' then 'build' or
just use 'rebuild' as that performs the same action.
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote