Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aggresss/playground-cpp
playground for cpp
https://github.com/aggresss/playground-cpp
Last synced: 3 months ago
JSON representation
playground for cpp
- Host: GitHub
- URL: https://github.com/aggresss/playground-cpp
- Owner: aggresss
- License: mit
- Created: 2018-04-16T09:11:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T11:05:58.000Z (7 months ago)
- Last Synced: 2024-06-18T12:51:36.966Z (7 months ago)
- Language: C++
- Size: 2.74 MB
- Stars: 5
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🚀
playground-cpp
A Playground for C++
CFLAGS
1. -D macro => current directory => -I path
2. Environment Variables => CPATH / C_INCLUDE_PATH / CPLUS_INCLUDE_PATH / OBJC_INCLUDE_PATH
3. /usr/include => /usr/local/include => /usr/lib/gcc/x86_64-xxxxxx => .....LDFLAGS
1. -L
2. LIBRARY_PATH
3. /usr/local/lib => /lib/x86_64-linux-gnu => /usr/lib/x86_64-linux-gnu => /lib => /usr/libref: https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html
pkg-config
- PKG_CONFIG_PATHref: https://linux.die.net/man/1/pkg-config
load and run
- add LIBRARY to the 'LD_PRELOAD' enrironment variable when need preload
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'---
Some influential environment variables:
- CC C compiler command
- CFLAGS C compiler flags
- LDFLAGS linker flags, e.g. -L\ if you have libraries in a
nonstandard directory \
- LIBS libraries to pass to the linker, e.g. -l\
- CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I\ if
you have headers in a nonstandard directory
- CPP C preprocessor
- CXX C++ compiler command
- CXXFLAGS C++ compiler flags---
apt-file list libc++-dev >> ~/temp.txt && vim ~/temp.txt => :%g!/.a$/d
- libc++-dev: /usr/lib/x86_64-linux-gnu/libc++.a
- libc++-dev: /usr/lib/x86_64-linux-gnu/libc++experimental.aapt-file list libc6-dev >> ~/temp.txt && vim ~/temp.txt => :%g!/.a$/d
- libc6-dev: /usr/lib/x86_64-linux-gnu/libBrokenLocale.a
- libc6-dev: /usr/lib/x86_64-linux-gnu/libanl.a
- libc6-dev: /usr/lib/x86_64-linux-gnu/libc.a
- libc6-dev: /usr/lib/x86_64-linux-gnu/libc_nonshared.a
- libc6-dev: /usr/lib/x86_64-linux-gnu/libcrypt.a
- libc6-dev: /usr/lib/x86_64-linux-gnu/libdl.a
- libc6-dev: /usr/lib/x86_64-linux-gnu/libg.a
- libc6-dev: /usr/lib/x86_64-linux-gnu/libm-2.27.a
- libc6-dev: /usr/lib/x86_64-linux-gnu/libm.a
- libc6-dev: /usr/lib/x86_64-linux-gnu/libmcheck.a
- libc6-dev: /usr/lib/x86_64-linux-gnu/libmvec.a
- libc6-dev: /usr/lib/x86_64-linux-gnu/libmvec_nonshared.a
- libc6-dev: /usr/lib/x86_64-linux-gnu/libnsl.a
- libc6-dev: /usr/lib/x86_64-linux-gnu/libpthread.a
- libc6-dev: /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a
- libc6-dev: /usr/lib/x86_64-linux-gnu/libresolv.a
- libc6-dev: /usr/lib/x86_64-linux-gnu/librpcsvc.a
- libc6-dev: /usr/lib/x86_64-linux-gnu/librt.a
- libc6-dev: /usr/lib/x86_64-linux-gnu/libutil.amusl-1.1.19 => ./configure --disable-shared
- Scrt1.o
- crt1.o
- crti.o
- crtn.o
- rcrt1.o
- libc.a
- libcrypt.a
- libdl.a
- libm.a
- libpthread.a
- libresolv.a
- librt.a
- libutil.a
- libxnet.a
- musl-gcc.specs---