For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

use CGAL and openCASCADE at the same time, compile error?

Liang Quan's picture

I want to use CGAL and openCASCADE at the same time
but when I compile the project

error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

I think this is because:

openCASCADE define the macro:
# define Handle(ClassName) Handle_##ClassName

while CGAL define a class with the same name

class Handle
: PTR(static_cast(0)) {}


Rep* PTR;

how can solve the problem

jelle's picture

Its a good idea to couple the merits of these libs, curious to know what you're working on...
I've managed to do so with pythonocc and the cgal python wrappers.

Liang Quan's picture

I want to develop CAM software, collision and interference detection, using configuration space

Alireza Norouzzadeh's picture

How can i solve this problem? I get the same compile error.