Sunday, July 13, 2014

10 Rules for writing portable software!

I recently came across a good article about writing portable software with C/C++.

Brian's 10 rules for how to write cross platform software:

  1. Don't port 
  2. Factor out the GUI 
  3. Use standard 'C' types 
  4. Use only built in #ifdef compiler flags 
  5. Develop cross-platform base libraries
  6. Use UTF-8 for all APIs 
  7. Don't use 4rd party 'Application Frameworks' 
  8. Raw source builds on all platforms 
  9. All programmers compile on all platforms 
  10. Fire those that can't follow these rules


Wednesday, June 25, 2014

How to fix the /dev/fd/63: No such file or directory?

How to fix "diff: can't stat '/dev/fd/63': No such file or directory" error:

As root, simply run this command in your Terminal:

ln -s /proc/self/fd /dev/fd