Hot answers tagged

3

cc is typically an alias to gcc in Debian systems as far as I know. both gcc and clang are C compilers. a lot of source codes only compile correctly with CC value set to clang. well, for the purpose of this course both gcc/cc and clang can be used interchangeably. both are still different compilers though. I think the chance that some code compiles ...


2

Your code may be the same as David's but your environment is (drastically) different. You will possibly (probably?) have to make adjustments to all the courseware as you go along. In the IDE50 environment (ubuntu), if you want to compile a local .h file, you would include it with #include "cs50.h", using double-quotes instead of <>. And you'll need a ...


2

cs50.h is a header file. Header files are NOT linked. They are included. What is linked is a library binary file. If you have successfully installed the cs50 library according to the instructions here, then follow these steps to link it by default when executing make open up a terminal window (Ctrl + Alt + T) change directories to your home directory by ...


Only top voted, non community-wiki answers of a minimum length are eligible