Boost logo

Boost Users :

Subject: Re: [Boost-users] [test] testing protected/private methods out of test suits
From: Juergen Hunold (juergen.hunold_at_[hidden])
Date: 2008-09-21 04:23:58


Hi !

On Friday 19 September 2008 21:37:01 trashing_at_[hidden] wrote:

> I've exactly that problem with MSVC++7.x. Compiling the class_to_test in
> the library with protected methods and trying to access this methods out
> from the test_case_class by including the header and #define protected
> public, gives me a "symbol not found compiler error". :-/

Yes, that trick will not work with msvc because the access specifiers (public,
protected, private) get into the mangled name in the lib. So you are out of
luck here ;-((

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net