LoginSignup
1
1

More than 5 years have passed since last update.

[メモ] cantools の サンプルコード dbclsを VCでビルド

Posted at

概要

環境

  • Windows 7 64ビット
  • Visual Studio 2015 Update 3

手順

  1. git clone https://github.com/mt08xx/cantools_canls_vc.git
  2. cantools_canls_vc.slnをダブルクリックして、VCを開く
  3. (構成をえらんで) CTRL+SHIFT+B で、ビルド

 その他

  • 関連: [メモ] オープンソースのcantools の libcandbcで、.dbcファイルの読み込み
  • basename()は、こんな感じ

    ...
    #if 0
    #include <libgen.h>
    #else
    #include <stdlib.h>
    char path_buffer[_MAX_PATH];
    char drive[_MAX_DRIVE];
    char dir[_MAX_DIR];
    char fname[_MAX_FNAME];
    char ext[_MAX_EXT];
    
    char *dirname(char *path) {
        _splitpath(path, drive, dir, fname, ext);
        return dir;
    }
    char *basename(char *path) { 
        _splitpath(path, drive, dir, fname, ext);
        return fname;
    }
    #endif
    ...
    
  • dbclsなのに、canlsで作業してたな...

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1