この関数はグローバルであり、ヘッダーファイルで定義されています(一時的にそこに保持したい)。
ヘッダーファイルは、インライン関数を持つ特定のクラスも構成し、それらの関数の1つがこのグローバル関数を呼び出します。
ソースファイルには、問題のグローバル関数のオカレンスは含まれていません。
エラーの原因に関するヒントはありますか?
興味があればコードを投稿できます。
mainwindow.o: In function `tileForCoordinate(double, double, int)':
mainwindow.cpp:(.text+0x310): multiple definition of `tileForCoordinate(double, double, int)'
main.o:main.cpp:(.text+0xd0): first defined here
moc_mainwindow.o: In function `qHash(QPoint const&)':
moc_mainwindow.cpp:(.text+0x0): multiple definition of `qHash(QPoint const&)'
main.o:main.cpp:(.text+0x0): first defined here
moc_mainwindow.o: In function `tileForCoordinate(double, double, int)':
moc_mainwindow.cpp:(.text+0x150): multiple definition of `tileForCoordinate(double, double, int)'
main.o:main.cpp:(.text+0xd0): first defined here
collect2: ld returned 1 exit status
make: *** [SimpleRouting] Error 1