Code Monkey home page Code Monkey logo

cpp-on-node's Introduction

실행환경

  • OS: WSL - Ubuntu 20.04.1 LTS, Windows 10
  • gcc: 9.3.0

설치

  • Windows 10
    • Windows Subsystem Linux - Ubuntu 20 LTS
    • Visual Studio Code
      • 'c++ extension pack' (ms-vscode.cpptools-extension-pack)
  • Ubuntu - WSL
    • editor
      • code .를 처음 실행하면 설치되는 vs code 서버
    • C++
      • sudo apt-get install build-essential gdb로 컴파일러와 디버거 설치
    • node

실행

  • npm run test
  • 필요시 npm run build로 shared.so를 빌드

기타

git, npm

git init후 git에 리모트 repo.를 지정하고 npm init를 하면 package.json에 자동으로 reop.의 url를 지정해 준다.

컴파일

  • 둘중 하나
    • g++ -c shared.cpp -fPIC -o shared.o, g++ shared.o -shared -o shared.so: cpp -> o -> so
    • g++ -fPIC shared.cpp -shared -o shared.so: cpp -> so
  • main: g++ main.c++ -o main -ldl

cpp-on-node's People

Contributors

9033 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.