목록프로그래밍언어/C++ (55)
nakka soft world !
bitbake 하면서 별의 별 에러를 다본다. 이번엔 아래와 같은 에러가 발생. already stripped란다. 그래서 어쩌라고..... ERROR: managerxxx-1.0-r0 do_package: QA Issue: File '/usr/lib/libgeee_api.so' from managerxxx was already stripped, this will prevent future debugging! [already-stripped] ERROR: managerxxx-1.0-r0 do_package: QA Issue: File '/usr/lib/libhbbb_api.so' from managerxxx was already stripped, this will prevent future debuggi..
bitbake로 빌드 중에 아래와 같은 에러로 빌드 에러가 난다면...?! ERROR: managerxxx-1.0-r0 do_package_qa: QA Issue: /apps/managerxxx contained in package managerxxx requires libgeee_api.so()(64bit), but no providers found in RDEPENDS_managerxxx? [file-rdeps] ERROR: managerxxx-1.0-r0 do_package_qa: QA Issue: /apps/managerxxx contained in package managerxxx requires libhbbb_api.so()(64bit), but no providers found in RDEP..
Bitbake를 사용해서 build 를 하는데, custom된 library를 적용해서 개발 할일이 생겼다. 이전에 사용하던 make나, cmake 정도로 생각하고, 뭐 그쯤이야 했으나. 이런 예상치도 못한 곳에서 뻥 뻥 터지고야 말았다. 심지어 아래와 같은 Log를 뿜으며 빌드도 되지 않는 상황. | Invoking: GCC C++ Linker | aarch64-poky-linux-g++ -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/work/project/tmp/aarch64-poky-linux/managerxxx/1.0-r0/recipe-sysroot -L..
#define MAX 10000 #define MOD (MAX) int wp, rp; int queue[MAX]; void push(int n){queue[wp] = n; wp = (wp+1) % MOD;} // Save int front() {return queue[rp];} // Read void pop() {rp = (rp+1) % MOD;} // Remove int empty {return rp == wp;} // Compare 조금더 빠르게 하기 위해 아래와 같이 사용도 가능 #define MAX (1
이것 저것 많이 해봤지만 아래가 짱이다. : 속성 -> 구성 속성 -> 일반 -> 문자집합CString strPathName = "aaa";string str = std::string(CT2CA(strPathName.operator LPCWSTR())) 출처 : http://adnoctum.tistory.com/749 아래도 좋은 사이트http://cinema4dr12.tistory.com/entry/CC-MFC-CString%EA%B3%BC-stdstring-%ED%83%80%EC%9E%85-%EB%B3%80%ED%99%98
C++ 파일 입출력 1. fstream 개념#include using namespave std; class ostream {};ostream cout; class ofstrem : public ostream {}; int main(){cout
#include #include using namespace std; int main(){int n = 0;cin >> n; while(1) {if(cin.fall()){cout s; //"hello world" 단어cout
예외 (Exception) 1. C스타일 예외 처리.int foo(){if(1)return 0; // 실패... 진짜?return 1;} int main(){int ret = foo();} 2. C++스타일 예외 처리int foo(){if(1) // 실패throw 1;throw 3.4;throw "aaa"; return 1;} int main(){try{int ret = foo();}catch (int a){cout
다중 상속 (multiple inheritance) struct A{int a;};struct B{int a;int b;};struct C : public A, public B{int a;int b;int c;}; int main(){C ccc; ccc.a = 10; // errorccc.A::a = 10; // okccc.B::a = 10;} 다이아몬드 상속 struct X{int x;};struct A : virtual public X // 가상상속, x 가 메모리 영역에 두번 들어 가지 앟고 한번만 들어 감{int a;};struct B : virtual public X // 가상상속, x 가 메모리 영역에 두번 들어 가지 앟고 한번만 들어 감{int b;};struct C : public A, p..
RTTI ( Rut Time Type Information ) #include void foo(Animal* p){// p가 실제로 어떤 객체를 가리킬까?// RTTIconst type_info& t1 = typeid(*p);const type_info& t2 = typeid(Dog); if (t1 == t2) {} if(typeid(*p) == typeid(Dog)){// p를 Dog타입으로 캐스팅 해서 사용Dog* pDog = static_cast(p);// pDog->Dog고유 멤버 = 10;}} int main(){Animal a;foo(&a); Dog d;foo(&d);} RTTI는 사용하지 않는 것이 좋은 디자인이다. dynamic_cast class Animal{public:int age;v..