Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

VisualStudio is unable to compile mathplot

オープン 初心者向け
#149 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
cpp
領域
build-system

調査の方向性

mplot/VisualOwnable.cppm の 1067 行付近、fout が宣言されている savegltf(const std::string&) の中から始めます。MSVC は std::basic_ofstream が未定義であると報告しているため、<fstream> がインクルードされているか(直接、または Windows のコンパイルが継承しないモジュール単位経由か)を確認してください。同じファイル内の他の保存/エクスポート関数がストリーム型を取得している方法と比較し、anneal_asa.vcxproj に対する GitHub Actions の Windows ランナーのビルドログを確認して再現してください。完了の条件は、Windows 2022 および 2025 のランナーがサンプルを問題なくビルドし、Linux/macOS のビルドがグリーンのまま維持されることです。

索引モデルが issue の本文から書いたものです。

説明

VisualStudio (both the "Windows 2022" github runner version and the "Windows 2025" github runner version) chokes on some code that I believe to be valid C++.

The file is VisualOwnable.cppm and the error message is:

D:\a\mathplot\mathplot\mplot\VisualOwnable.cppm(1067,27): error C2079: 'fout' uses undefined class 'std::basic_ofstream<char,std::char_traits<char>>' [D:\a\mathplot\mathplot\build\examples\anneal_asa.vcxproj]
  (compiling source file '../../examples/anneal_asa.cpp')
      D:\a\mathplot\mathplot\mplot\VisualOwnable.cppm(1067,27):
      the template instantiation context (the oldest one first) is
          D:\a\mathplot\mathplot\examples\anneal_asa.cpp(101,21):
          see reference to class template instantiation 'mplot::Visual<262145>' being compiled
          D:\a\mathplot\mathplot\mplot\Visual.cppm(59,34):
          see reference to class template instantiation 'mplot::VisualOwnable<262145>' being compiled
          D:\a\mathplot\mathplot\mplot\VisualOwnable.cppm(1065,22):
          while compiling class template member function 'void mplot::VisualOwnable<262145>::savegltf(const std::string &)'

I've yet to try to make a report on this to Microsoft.

主要言語
C++
スター
66
フォーク
13
平均マージ
12時間 42分
マージ済み PR(30日)
9

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

sebsjames/mathplot のほかの issue

sebsjames/mathplot の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。