Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: static "hell" Pin
_808615-Mar-08 7:29
_808615-Mar-08 7:29 
GeneralRe: static "hell" Pin
dontknowitall15-Mar-08 8:32
dontknowitall15-Mar-08 8:32 
QuestionRe: static "hell" Pin
CPallini15-Mar-08 7:52
mveCPallini15-Mar-08 7:52 
GeneralRe: static "hell" Pin
dontknowitall15-Mar-08 8:19
dontknowitall15-Mar-08 8:19 
GeneralRe: static "hell" Pin
CPallini15-Mar-08 9:19
mveCPallini15-Mar-08 9:19 
GeneralRe: static "hell" Pin
dontknowitall15-Mar-08 9:35
dontknowitall15-Mar-08 9:35 
GeneralRe: static "hell" Pin
CPallini16-Mar-08 3:49
mveCPallini16-Mar-08 3:49 
GeneralRe: static "hell" Pin
Member 75496018-Mar-08 2:42
Member 75496018-Mar-08 2:42 
This isn't a bug. This is physical coupling. The library modules are mixing the different classes together. In this case, the module that contains the static class function C::Func1() also contains the definition of B::Func2(). That function will drag in all of classes A and B.

If you want the library to generate a small footprint, you need to minimize the physical coupling. Separate the classes into distinct modules. In this case you can simply create a separate file to hold C::Func1(). Have the linker generate the map file and check the symbols and modules being included. You can get incremental improvements here so you don't have to do everything at once.
Generalplz urgent!!! Pin
AbdullahTheGreat15-Mar-08 5:41
AbdullahTheGreat15-Mar-08 5:41 
AnswerRe: plz urgent!!! Pin
Rajesh R Subramanian15-Mar-08 5:44
professionalRajesh R Subramanian15-Mar-08 5:44 
GeneralRe: plz urgent!!! Pin
marcio kovags15-Mar-08 9:21
marcio kovags15-Mar-08 9:21 
GeneralAdd Project into workspace Error Pin
bala_potty15-Mar-08 4:57
bala_potty15-Mar-08 4:57 
GeneralRe: Add Project into workspace Error Pin
Rajkumar R15-Mar-08 10:07
Rajkumar R15-Mar-08 10:07 
GeneralRe: Add Project into workspace Error Pin
bala_potty16-Mar-08 0:08
bala_potty16-Mar-08 0:08 
AnswerRe: Add Project into workspace Error Pin
Rajkumar R16-Mar-08 21:41
Rajkumar R16-Mar-08 21:41 
GeneralRe: Add Project into workspace Error Pin
bala_potty6-Apr-08 2:18
bala_potty6-Apr-08 2:18 
Questionstd::find [By any chance my question is not clear?] Pin
_808615-Mar-08 4:29
_808615-Mar-08 4:29 
AnswerRe: std::find [By any chance my question is not clear?] Pin
Rajkumar R15-Mar-08 9:39
Rajkumar R15-Mar-08 9:39 
GeneralRe: std::find [By any chance my question is not clear?] Pin
_808615-Mar-08 17:21
_808615-Mar-08 17:21 
GeneralRe: std::find [By any chance my question is not clear?] Pin
Rajkumar R15-Mar-08 18:00
Rajkumar R15-Mar-08 18:00 
GeneralRe: std::find [By any chance my question is not clear?] Pin
_808615-Mar-08 19:07
_808615-Mar-08 19:07 
GeneralRe: std::find [By any chance my question is not clear?] Pin
Rajkumar R16-Mar-08 22:58
Rajkumar R16-Mar-08 22:58 
GeneralCompilation Firewalls Pin
George_George15-Mar-08 2:57
George_George15-Mar-08 2:57 
GeneralRe: Compilation Firewalls Pin
Maximilien15-Mar-08 3:34
Maximilien15-Mar-08 3:34 
GeneralRe: Compilation Firewalls Pin
George_George15-Mar-08 3:55
George_George15-Mar-08 3:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.