bitbake -vDDD your-recipe
bitbake -s
cmake_minimum_required(VERSION 3.10) | |
project(ProjectUsingConan) | |
# | |
# Don't forget to use libstdc++11 in profile by issuing | |
# $ conan profile update settings.compiler.libcxx=libstdc++11 default | |
# | |
set(CMAKE_CXX_STANDARD 11) | |
set(CMAKE_CXX_STANDARD_REQUIRED ON) |
snikulov@snikulov-lin:~/work/check$ uname -a | |
Linux snikulov-lin 4.15.0-50-generic #54~16.04.1-Ubuntu SMP Wed May 8 15:55:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux | |
snikulov@snikulov-lin:~$ cd work/ | |
snikulov@snikulov-lin:~/work$ mkdir check | |
snikulov@snikulov-lin:~/work$ cd check | |
snikulov@snikulov-lin:~/work/check$ vim main.cpp | |
snikulov@snikulov-lin:~/work/check$ vim CMakeLists.txt | |
snikulov@snikulov-lin:~/work/check$ ls | |
CMakeLists.txt main.cpp | |
snikulov@snikulov-lin:~/work/check$ scan-build cmake . |
CC=clang CXX=clang++ conan install .. \ | |
-s compiler=clang -s compiler.version=< 5.0| your version number here> \ | |
-s compiler.libcxx=<libstdc++ | libc++> --build=missing |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
/* db_add.c: storing | |
written by rock <shirock@residence.educities.edu.tw>, 1999.11.29 | |
*/ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <gdbm.h> | |
#define datum_set(um, buf) { um.dptr = buf; um.dsize = strlen(buf); } |
/* db_add.c: storing | |
written by rock <shirock@residence.educities.edu.tw>, 1999.11.29 | |
*/ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <gdbm.h> | |
#define datum_set(um, buf) { um.dptr = buf; um.dsize = strlen(buf); } |
GCC Include search paths | |
For C: | |
gcc -xc -E -v - | |
For C++: | |
gcc -xc++ -E -v - | |
shorter variant: | |
gcc -Wp,-v -x c++ - -fsyntax-only |