You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5be8280
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+23-18Lines changed: 23 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,32 +1,37 @@
1
-
Simple C and C++ programs, cheats and miniprojects.
1
+
C and C++ information, cheatsheets and mini-projects.
2
2
3
-
The most useful sections are currently:
3
+
Based on Linux tools, but portable code is clearly separated from non-portable. Thoroughly tested on Ubuntu 12.04. Ports and reproduction reports on other systems are welcome.
4
4
5
-
-[c/c.c](c/c.c): C cheatsheet.
6
-
-[c/cpp.cpp](c/cpp.cpp): C++ cheatsheet.
7
-
-`makefile.*`: makefiles that take care of a ton of possibilities.
5
+
# Compile and run
8
6
9
-
Other reasonably useful cheats can be found under:
7
+
To compile and run each directory on Ubuntu 12.04 do:
10
8
11
-
-[opengl/](opengl/)
12
-
-[kde/](kde/)
9
+
make install-ubuntu
10
+
make run
13
11
14
-
# Install on Linux
12
+
You *must* run `make install-ubuntu`on the top-level before compiling any subdirectories.
15
13
16
-
Most systems already have GCC installed, however some of this relies on the recent GCC 4.7 to be able to try out bleeding edge c11.
14
+
When there are multiple files compiled, e.g.:
17
15
18
-
This is not recommended for production.
16
+
c.c -> c
17
+
cpp.cpp -> cpp
19
18
20
-
On Ubuntu 12.04, install GCC 4.8 with:
19
+
run a given file by specifying the basename without extension:
0 commit comments