목록개발이야기 (512)
준호씨의 블로그
"내가 말할 수 있는 것은 리스프가 가장 위에 존재한다는 사실 뿐이다." 폴 그레이엄의 '해커와 화가' clojure 는 리스프를 JVM 환경에서 돌도록 만든 언어이다.
google test 는 cpp 를 기반으로 한다. 그래서 일반적인 방법으로는 c 코드나 c 라이브러리를 테스트를 할 수 없다. c 코드를 테스트 하려고 하면 "Undefined symbols" 같은 오류를 만나게 된다. c 코드를 테스트 하는 방법들에 대해 적어 본다. 개발툴은 CLion 을 사용 할 것이다. include c file 꼼수를 좀 부려 보면 include 할 때 h (header) 파일이 아니고 c 파일을 include 하면 된다. june.h june.c 로 된 코드가 있다면 #include "june.h" 대신 #include "june.c" 로 하면 된다. 하지만 include c 파일을 한다는게 좀 그렇다. 어쩔 수 없는 상황에서는 쓰게 될 것도 같은데 실제로 이런 경우는 겪어 ..
레거시 시스템을 만지다 보니 안쓰는 라이브러리가 있어서 관련 컴파일 옵션을 지웠다. 그 중 하나가 libgd 인데 그래픽 처리와 관련된 라이브러리였다. 참고 삼아 남겨본다. 예제 /* Bring in gd library functions */ #include "gd.h" /* Bring in standard I/O so we can output the PNG to a file */ #include int main() { /* Declare the image */ gdImagePtr im; /* Declare output files */ FILE *pngout, *jpegout; /* Declare color indexes */ int black; int white; /* Allocate the image..
끄적끄적 메모메모. 아직 제대로 써 본 적은 없다. Mocha https://mochajs.org/ Karma Jest https://jestjs.io/ https://www.jetbrains.com/help/webstorm/running-unit-tests-on-jest.html Protractor Cucumber 참고 Testing JavaScript - WebStorm Help
절대경로 use lib '/Users/junho85/perl-lib'; 상대경로 FindBin 모듈 이용 use FindBin; use lib "$FindBin::Bin/./lib"; perl 모듈 경로 perl -V 해 보면 기본적으로 참조 하는 라이브러리 경로들을 확인 할 수 있다. @INC: /Users/junho85/perl5/lib/perl5 /Users/junho85/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/darwin-2level /Users/junho85/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1 /Users/junho85/perl5/perlbrew/perls/perl-5.26.1/..