Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Open CASCADEShowroomGet Open CASCADEDeveloper CornerSupportAbout us
Technical overview
Areas of use
Advantages
Public license
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
System requirements
What's new
Download Center
CD-ROM
Documentation
Getting started
Forum
Open Source community
Training and e-learning
A la Carte Support
Value-added software
Client Area
Company Profile
Contacts and Locations
Customers
News
Home / Developer Corner / Forum / error: ?Standard_Transient_Type_? was not declared in this scope

Forum

error: ?Standard_Transient_Type_? was not declared in this scope
Rajesh Kishore 2007-05-18 09:51
Hi all,
I am deploying a Qt OCC application in LINUX (SUSE 10.2).
In this application I have a class which is sub class of AIS_InteractiveObject.I am getting the following error:
MySessionCurve.cpp:12: error: ?Standard_Transient_Type_? was not declared in this scope.
I am using gcc version 4.1.2 20061115 (prerelease) (SUSE Linux)
Any suggestions are welcome.

P Dolbey 2007-05-22 11:43
This looks like a missing refernce. Try adding a

#include <Standard_Transient_Type.hxx>

into MySessionCurve.cpp

Pete
Rajesh Kishore 2007-05-22 12:02
I tried , but it didn't work.
P Dolbey 2007-05-22 12:43
You could post me your code if you like - you've got my address.

Pete
Dirk Burski 2007-07-17 09:16
Has this issue been resolved? I work on Suse10.2 as well. I used modified code from http://www.opencascade.org/org/forum/thread_8480/ and get the same error. The code compiles and works after removing the lines IMPLEMENT_STANDARD_SUPERTYPE (Standard_Transient) and IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY (Standard_Transient). Will removing these lines cause any problems?
Umar Said 2007-07-19 07:48
I get similar error. When I add the header file you mentioned, I get another error

error: Standard_Transient_Type.hxx: No such file or directory

Indeed, there is no Standard_Transient_Type.hxx in OCC include files. There are only Standard_Transient.hxx, Standard_Transient_proto.hxx and Handle_Standard_Transient.hxx, and including them does not resolve the problem.

On other machine using Ubuntu Breezy with gcc 4.0.2, I can compile and run the same code which does not compile by gcc 4.1.2 on Debian etch. Is is caused by the new gcc?
Dirk Burski 2007-07-19 08:10
Add -ffriend-injection to the compiler flags to compile without error.
Thanks Umar, for giving the hint about the different gcc versions!
Umar Said 2007-07-19 10:43
I also thank you for the solution. Now I understand what a "friend" for. :)
Stockmanns 2007-11-16 15:21
I just tried to recompile OpenCascade6.2 on my SUSE 10.2 system with gcc 4.1.2 and I get the same error like Rajesh Kishore.

Unfortunately I am not very experienced in setting compiler flags. Can you explain in more detail were to set -ffriend-injection in the various Makefiles?

Thank you very much

Tobias
auke 2008-05-14 16:21
depends heavily on your build system. if you're just doing it manually (./configure && make && make install), then:
$ export CFLAGS="${CFLAGS} -ffriend-injection"
Gaurav 2008-07-02 19:51
rajesh.
can you please email me your current profression and your location at gnagpals@yahoo.com. sincerely, gaurav nagpal
 
 
Latest news
  • Open CASCADE Technology 6.3
  • SolidWorks Import by Datakit
  • UG NX Import by Datakit

  • © Open CASCADE 2000 - 2008  |  Search  |  Contacts