
Wed, 07/18/2001 - 08:09
Here's what we did:
I checked out all modules last thursday or friday (2001-07-12/13). I compiled each module and fixed, among other things, some casting problems in jcas. I'm not quite sure how to submit a patch for your review, but I have the modified file (jcas/jcas.cxx). In the end, I obtained 29 .so files. I moved all .so files to /usr/openCascade/lib and all headers from /inc to /usr/openCascade/include. I tried compiling the following program (just a simple test to see if I could link to any of the libraries - kind of like a "Hello, World !", if you will):
#include <iostream.h>
#include <Geom2d_CartesianPoint.hxx>
main ()
{
cout << "Hello, world !" ;
Geom2d_CartesianPoint *g2d_cp = new
Geom2d_CartesianPoint (0.0, 0.0) ;
}
(In the above code, I replaced less-than and greater-than symbols, to accomodate for the HTML nature of the post).
This code runs into the following problem:
g++ -o octest -I/usr/openCascade/include octest.cpp
In file included from /usr/openCascade/include/Standard_Address.hxx:20,
from /usr/openCascade/include/Standard.hxx:19,
from /usr/openCascade/include/Geom2d_CartesianPoint.hxx:20,
from octest.cpp:2:
/usr/openCascade/include/Standard_Integer.hxx: In function `Standard_Integer IntegerSize ()':
/usr/openCascade/include/Standard_Integer.hxx:141: parse error before `)'
In file included from /usr/openCascade/include/Standard_PrimitiveTypes.hxx:23,
from /usr/openCascade/include/Handle_Standard_Transient.hxx:10,
from /usr/openCascade/include/Handle_MMgt_TShared.hxx:27,
from /usr/openCascade/include/Handle_Geom2d_Geometry.hxx:27,
from /usr/openCascade/include/Handle_Geom2d_Point.hxx:27,
from /usr/openCascade/include/Handle_Geom2d_CartesianPoint.hxx:27,
from /usr/openCascade/include/Geom2d_CartesianPoint.hxx:23,
from octest.cpp:2:
/usr/openCascade/include/Standard_Real.hxx: In function `Standard_Integer RealSize ()':
/usr/openCascade/include/Standard_Real.hxx:162: parse error before `)'
make: *** [octest] Error 1
I've been getting the same error message when I tried instantiating a math_Vector as well.
I'd appreciate any help and/or direction you can provide.
Gabriel
Wed, 07/18/2001 - 10:52
> Here's what we did:
> I checked out all modules last thursday or
> friday (2001-07-12/13). I compiled each
> module and fixed, among other things, some
> casting problems in jcas. I'm not quite sure
> how to submit a patch for your review, but I
> have the modified file (jcas/jcas.cxx). In
> the end, I obtained 29 .so files. I moved
> all .so files to /usr/openCascade/lib and
> all headers from /inc to
> /usr/openCascade/include. I tried compiling
> the following program (just a simple test to
> see if I could link to any of the libraries
> - kind of like a "Hello, World !",
> if you will):
> #include #include
> main ()
> {
> cout << "Hello, world !" ;
> Geom2d_CartesianPoint *g2d_cp = new
> Geom2d_CartesianPoint (0.0, 0.0) ;
> }
> (In the above code, I replaced less-than and
> greater-than symbols, to accomodate for the
> HTML nature of the post).
> This code runs into the following problem:
> g++ -o octest -I/usr/openCascade/include
> octest.cpp
Add the :
-DLIN
define option in your g++ command to avoid this problem.
> In file included from
> /usr/openCascade/include/Standard_Address.hxx:20,
> from
> /usr/openCascade/include/Standard.hxx:19,
> from
> /usr/openCascade/include/Geom2d_CartesianPoint.hxx:20,
> from octest.cpp:2:
>
> /usr/openCascade/include/Standard_Integer.hxx:
> In function `Standard_Integer IntegerSize
> ()':
>
> /usr/openCascade/include/Standard_Integer.hxx:141:
> parse error before `)'
> In file included from
> /usr/openCascade/include/Standard_PrimitiveTypes.hxx:23,
> from
> /usr/openCascade/include/Handle_Standard_Transient.hxx:10,
> from
> /usr/openCascade/include/Handle_MMgt_TShared.hxx:27,
> from
> /usr/openCascade/include/Handle_Geom2d_Geometry.hxx:27,
> from
> /usr/openCascade/include/Handle_Geom2d_Point.hxx:27,
> from
> /usr/openCascade/include/Handle_Geom2d_CartesianPoint.hxx:27,
> from
> /usr/openCascade/include/Geom2d_CartesianPoint.hxx:23,
> from octest.cpp:2:
> /usr/openCascade/include/Standard_Real.hxx:
> In function `Standard_Integer RealSize ()':
>
> /usr/openCascade/include/Standard_Real.hxx:162:
> parse error before `)'
> make: *** [octest] Error 1
> I've been getting the same error message
> when I tried instantiating a math_Vector as
> well.
> I'd appreciate any help and/or direction you
> can provide.
> Gabriel