
Sat, 08/15/2009 - 15:46
i write a hello world program. and add head file.
i just want to test my eclipse+mingw enviroment.
#include
#include
using namespace std;
int main() {
cout
return 0;
}
but , i can not compile.
----------------------
error:
`Standard_OStream' has not been declared
------------------------------
**** Internal Builder is used for build ****
g++ -ID:\OCC632\win32\ros\inc -O0 -g3 -Wall -c -fmessage-length=0 -osrc\test2.o ..\src\test2.cpp
In file included from D:/OCC632/win32/ros/inc/Standard_Real.hxx:7,
from D:/OCC632/win32/ros/inc/gp_XYZ.hxx:26,
from D:/OCC632/win32/ros/inc/gp_Pnt.hxx:26,
from ..\src\test2.cpp:10:
D:/OCC632/win32/ros/inc/Standard_values.h:35:2: #error "check config.h file or compilation options: either HAVE_LIMITS or HAVE_LIMITS_H should be defined"
--------------------
my path of head files ist D:\OCC632\win32\ros\inc
is it right?
i can not compile , why?
Mon, 08/17/2009 - 10:19
OpenCASCADE will not compile out of the box with MinGW. Files need to be modified and libraries/DLLs rebuilt. You may get past that error by adding HAVE_LIMITS to the list of defined preprocessing macros in Eclipse (I have no idea where that option may be), or, as a quick check adding
#define HAVE_LIMITS
before
#include
That is not a solution, though.