次のようなHDF5ファイルオープン関数を作成しました。
int OpenHDF5(string sFileName)
{
// Check for valid HDF5 file
if (!H5File::isHdf5(sFileName.c_str()))
{
// Invalid HDF5 file
return -1
}
// Try block to detect exceptions raised by any of the calls inside it
try
{
// Turn off the auto-printing when failure occurs so that we can handle the errors appropriately
Exception::dontPrint();
// Now Open the file
H5File file( sFileName.c_str(), H5F_ACC_RDONLY );
}
// Catch failure caused by the H5File operations
catch( FileIException error )
{
error.printError();
return -1
}
return 0
}
コンパイルエラーは発生しませんでしたが、次の例外でリンクに失敗しました:リンク中...
ライブラリF:\ Tips \ Debug \ Tips.libおよびオブジェクトF:\ Tips \ Debug \ Tips.expを作成して
いますTwinSatObservation.obj:エラーLNK2001:未解決外部シンボル"public:static class H5 :: FileCreatPropList const H5 :: FileCreatPropList :: DEFAULT"(?DEFAULT @ FileCreatPropList @ H5 @@ 2V12 @ B)
TwinSatObservation.obj:エラーLNK2001:未解決の外部シンボル "public:static class H5: :FileAccPropList const H5 :: FileAccPropList :: DEFAULT "(?DEFAULT @ FileAccPropList @ H5 @@ 2V12 @ B)
F:\ Tips \ Debug \ Tips.exe:致命的なエラーLNK1120:2つの未解決の外部
VS2008リンカー
hdf5dll.libhdf5_hldll.libhdf5_cppdll.libhdf5_hl_cppdll.libの
「AddtionalDependencies 」入力ボックスに次のライブラリを追加しまし
た
追加し忘れたライブラリを教えてください。どうもありがとうございます!