Hi All,

We are developing desktop application using QT 4.8. Previously we were using MSVC 2008 compiler for compilation and it was working fine. But now we want to switch to MingW compiler. Our project links with many internal and external static/dynamic libraries built using MingW compiler. When we tried building the application with MingW, we are getting "undefined reference to" errors for the functions defined in linked libraries. I tried nm command for finding whether those functions are exported properly. I can see those functions. Can you please guide use resolving this issue?

I have added following lines in pro file to link to library


Qt Code:
  1. LIBS+= -L"D:/Project/lib" -L"D:/Project/lib" -lsbml -lexpat
  2.  
  3. INCLUDEPATH += $$PWD/../Dependencies/SBML/Win32/debug/include
  4. DEPENDPATH += $$PWD/../Dependencies/SBML/Win32/debug/include
To copy to clipboard, switch view to plain text mode 


To check whether the library is properly exported I have created the sample application which links to that library and it worked fine.


Thanks.