スポンサード リンク
Microsoft Visual C++にて以下のソースでコンパイルエラーが発生します:
コンパイルエラーメッセージ:
error LNK2019: 未解決の外部シンボル "int __cdecl <関数名>" <関数シンボル>が関数 _main で参照されました。<プログラム名> : fatal error LNK1120: 1 件の未解決の外部参照
ソース(バグ有り):
#include <iostream>
using namespace std;
//1をプラスする関数
int test(int n);
int main()
{ |
ソース(修正済み):
#include <iostream>
using namespace std;
//1をプラスする関数
int test(int n);
int main()
{ |
スポンサード リンク