opencascade 6.7.1 g++ compile error in ubuntu 14.10 qt creator

I tried to compiler my application from windows MSVC 2013 to ubuntu g++.
I could configure and make opencascade 6.7.1 form source package in my ubuntu computer,but I could't use qt creator to compiler my application.
The error message is:
/home/cglab/opencascade-6.7.1/inc/Standard_Macro.hxx:49: error: expected constructor, destructor, or type conversion before '(' token
# define Standard_IMPORT __declspec( dllimport ) extern

And my .pro file.

Please,someone can help me!

Dante Liu's picture

this is code:

Joe's picture

these are definitions for Windows. Grab the opnecascade 6.7.1 source code for Linux and the problem will be gone, I think