C++ Qt MingW bad reloc 0xc address in section rdata

C++ Qt MingW bad reloc 0xc address in section rdata

我在 Windows 10 64 位和 MingW 编译器上使用 Qt 5.5。
我正在尝试在调试模式下编译我的项目 => 完美运行
但是在发布模式下,我有这些错误:

undefined reference to `TileMap::XYToNode(int, int) const'
undefined reference to `TileMap::XYToNode(int, int) const'  
./release\perso.o: bad reloc address 0xc in section `.rdata'  
collect2.exe:-1: erreur : error: ld returned 1 exit status  

我已经尝试过clean、qmake和rebuild,但是还是有错误。
我使用一些 SFML dll 和我创建的 dll。我的 TileMap class 继承了一个 SFML class 和一个 micropather class(在其中一个 dll 中)。

是的,我之前试过Google

.pro 文件:

    TEMPLATE = app  
    TARGET = TealDemo  
    QT = widgets  

SOURCES += ........  

LIBS += -LC:/Qt/5.5/SFML/lib -LC:/Qt/5.5/micropather/lib -LC:/Qt/5.5/pathstore/lib

CONFIG(release): LIBS += -lsfml-graphics -lsfml-main -lsfml-window -lsfml-system -lmp -lpathstore  
CONFIG(debug): LIBS += -lsfml-graphics-d -lsfml-main-d -lsfml-window-d -lsfml-system-d -lmpd -lpathstored  

INCLUDEPATH += C:/Qt/5.5/SFML/include C:/Qt/5.5/micropather/include C:/Qt/5.5/pathstore/include  
DEPENDPATH += C:/Qt/5.5/SFML/include C:/Qt/5.5/micropather/include C:/Qt/5.5/pathstore/include  

HEADERS += .......

CONFIG += C++11 warn_on  

debug {  
    DEFINES += TEAL_DEBUG  
} 

如何解决这个问题?
谢谢

我删除了.cpp 文件中函数前的内联,它起作用了……好奇怪。