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

wxWindows(To Canuck)

queen's picture
Forums: 

hi
i'm a new user to opencascade.i need to learn how to use wxwidgets with opencascade using code::blocks.
i've taken one example code from this link:
http://www.opencascade.org/org/forum/thread_5750/
sent by canuck.
while compiling i've many errors.like,undefined reference to Graphic3d_WNTGraphicDevice::Graphic3d_WNTGraphicDevice()

how to solve it..help me

Dan Heeks's picture

I haven't used code::blocks, but I copied the files from that thread and made a project that worked OK on Windows XP with Visual Studio 2008 Express ( which is free to download ). I had to resolve some compile errors like yours. I can't remember how.
I'll send you my project, if you want. Dan. danheeks@gmail.com

Paul Jimenez's picture

I also wanted to use Code::Blocks to develop an application with OCC, but I couldn't get it to work with MinGW (undefined references everywhere). I tried to use Visual Studio 2005's compiler, but the program won't run due to "the way it loads the C runtime". It requires a manifest file that only Visual Studio generates, and I was too lazy to see how to make CB compile it and link it to the final executable.

There's a binary version of OCC compiled with MinGW at http://geuz.org/gmsh/beta/occ/, but I don't know if it'll work (from the name it suggests it also depends on Cygwin, and it's only version 6.2).

If you find a way to solve that problem, don't forget to share it :)