MantisBT - Open CASCADE
View Issue Details
0027458Open CASCADE[OCCT] OCCT:Configurationpublic2016-05-01 17:062016-12-09 16:37
LinuxDebian 6.064 bit
[OCCT] 7.0.0 
[OCCT] 7.1.0[OCCT] 7.1.0 
0027458: Configuration, genproj.tcl - add -rpath-link option to linker in Code::Blocks project
For checking availability of all symbols in the library, g++ on Linux does not use -L option leading to the following error if LD_LIBRARY_PATH is not set beforehand:
-------------- Build: Release in DRAWEXE (compiler: GNU GCC Compiler)---------------

g++ -mmmx -msse -msse2 -mfpmath=sse -std=c++0x -fPIC -DOCC_CONVERT_SIGNALS -Wall -fexceptions -O2 -DNDEBUG 
-DNo_Exception -I../../../inc -c /develop/occt/src/DRAWEXE/DRAWEXE.cxx -o ../../../lin/cbp/obj/src/DRAWEXE/DRAWEXE.o

g++ -L../../../lin/cbp/lib -o ../../../lin/cbp/bin/DRAWEXE ../../../lin/cbp/obj/src/DRAWEXE/DRAWEXE.o    
-lTKDraw -lTKMesh -lTKTopAlgo -lTKHLR -lTKGeomAlgo -lTKGeomBase -lTKG2d -lTKBRep -lTKMath -lTKG3d -lTKernel 
/usr/bin/ld: warning:, needed by ../../../lin/cbp/lib/, not found (try 
using -rpath or -rpath-link)
../../../lin/cbp/lib/ undefined reference to `ShapeBuild_ReShape::ShapeBuild_ReShape()'

../../../lin/cbp/lib/ undefined reference to `ShapeFix_Face::Init(TopoDS_Face const&)'

../../../lin/cbp/lib/ undefined reference to `ShapeFix_Face::ShapeFix_Face()'
../../../lin/cbp/lib/ undefined reference to `vtable for ShapeFix_Face'
../../../lin/cbp/lib/ undefined reference to `ShapeFix_Root::SetContext(opencascade::handle<ShapeBuild_ReShape> 
../../../lin/cbp/lib/ undefined reference to `vtable for ShapeFix_Root'
../../../lin/cbp/lib/ undefined reference to `ShapeFix_Face::Perform()'
collect2: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 4 second(s))
7 error(s), 1 warning(s) (0 minute(s), 4 second(s))

g++ suggests using -rpath-link option for eliminating this error.
Start Code::Blocks solution without using or using with another build mode.
No tags attached.
Issue History
2016-05-01 17:06kgvNew Issue
2016-05-01 17:06kgvAssigned To => bugmaster
2016-05-01 17:07kgvAssigned Tobugmaster => kgv
2016-05-01 17:07kgvPrioritynormal => low
2016-05-01 17:07kgvStatusnew => assigned
2016-05-01 17:14gitNote Added: 0053769
2016-05-10 13:52kgvNote Added: 0053948
2016-05-10 13:52kgvAssigned Tokgv => abv
2016-05-10 13:52kgvStatusassigned => resolved
2016-05-19 14:19kgvNote Added: 0054136
2016-05-19 14:19kgvAssigned Toabv => bugmaster
2016-05-19 14:19kgvStatusresolved => reviewed
2016-05-20 11:18bugmasterChangeset attached => occt master 55fb31da
2016-05-20 11:18bugmasterStatusreviewed => verified
2016-05-20 11:18bugmasterResolutionopen => fixed
2016-05-20 12:21gitNote Added: 0054193
2016-12-09 16:31aivStatusverified => closed
2016-12-09 16:37aivFixed in Version => 7.1.0

2016-05-01 17:14   
Branch CR27458 has been created by kgv.

SHA-1: 94342cafada91b596c5903e1736ce68eb132367b

Detailed log of new commits:

Author: kgv
Date: Sun May 1 17:12:47 2016 +0300

    0027458: Configuration, genproj.tcl - add -rpath-link option to linker in Code::Blocks project
2016-05-10 13:52   
Patch is ready for review.
2016-05-19 14:19   
Please take the patch, testing is not needed.
2016-05-20 12:21   
Branch CR27458 has been deleted by inv.

SHA-1: 94342cafada91b596c5903e1736ce68eb132367b