On Mon, 27 Mar 2006 20:10:23 -0800, Paul Pluzhnikov wrote: > u19809 <[EMAIL PROTECTED]> writes: > >> WHY ALL OF A SUDDEN TEMPLATE METHOD 'Empty' IS UNDEFINED ???? > > There is no need to shout. > > Run both files through preprocessor ('-E' flag), and compare the > result -- this is the code the compiler actually compiles. > I bet you'll observe significant differencies. > > Cheers,
Well no ... this is the diff output $ diff WxAction1.o WxAction2.o 1c1 < # 1 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" --- > # 1 "WxAction.cpp" 5c5 < # 1 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" --- > # 1 "WxAction.cpp" 24277c24277 < # 3 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" 2 --- > # 3 "WxAction.cpp" 2 33685c33685 < # 4 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" 2 --- > # 4 "WxAction.cpp" 2 33788c33788 < # 5 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" 2 --- > # 5 "WxAction.cpp" 2 34244c34244 < # 6 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" 2 --- > # 6 "WxAction.cpp" 2 34326,34327c34326,34327 < # 7 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" 2 < # 19 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" --- > # 7 "WxAction.cpp" 2 > # 19 "WxAction.cpp" 34355c34355 < # 20 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" 2 --- > # 20 "WxAction.cpp" 2 34358c34358 < # 1 "./WxSettings.h" 1 --- > # 1 "WxSettings.h" 1 36460,36461c36460,36461 < # 5 "./WxSettings.h" 2 < # 45 "./WxSettings.h" --- > # 5 "WxSettings.h" 2 > # 45 "WxSettings.h" 36962,36964c36962,36964 < # 46 "./WxSettings.h" 2 < # 23 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" 2 < # 1 "./WxBufferedSocket.h" 1 --- > # 46 "WxSettings.h" 2 > # 23 "WxAction.cpp" 2 > # 1 "WxBufferedSocket.h" 1 36975c36975 < # 11 "./WxBufferedSocket.h" 2 --- > # 11 "WxBufferedSocket.h" 2 38007c38007 < # 19 "./WxBufferedSocket.h" 2 --- > # 19 "WxBufferedSocket.h" 2 38010c38010 < # 1 "./WxBuffer.h" 1 --- > # 1 "WxBuffer.h" 1 38021c38021,38022 < # 11 "./WxBuffer.h" 2 --- > # 11 "WxBuffer.h" 2 > 38027,38028d38027 < # 1 "./WxSettings.h" 1 < # 17 "./WxBuffer.h" 2 38090,38091c38089,38090 < # 22 "./WxBufferedSocket.h" 2 < # 1 "./WxErrs.h" 1 --- > # 22 "WxBufferedSocket.h" 2 > # 1 "WxErrs.h" 1 38101c38100 < # 10 "./WxErrs.h" 2 --- > # 10 "WxErrs.h" 2 38110,38113c38109,38110 < # 18 "./WxErrs.h" 2 < # 1 "/usr/include/wx-2.6/wx/log.h" 1 < # 19 "./WxErrs.h" 2 < # 61 "./WxErrs.h" --- > # 18 "WxErrs.h" 2 > # 61 "WxErrs.h" 38147c38144 < # 23 "./WxBufferedSocket.h" 2 --- > # 23 "WxBufferedSocket.h" 2 38241,38242c38238,38239 < # 24 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" 2 < # 1 "./WxMainFrame.h" 1 --- > # 24 "WxAction.cpp" 2 > # 1 "WxMainFrame.h" 1 38253c38250 < # 11 "./WxMainFrame.h" 2 --- > # 11 "WxMainFrame.h" 2 38535c38532 < # 19 "./WxMainFrame.h" 2 --- > # 19 "WxMainFrame.h" 2 38748c38745 < # 20 "./WxMainFrame.h" 2 --- > # 20 "WxMainFrame.h" 2 38750c38747 < # 21 "./WxMainFrame.h" 2 --- > # 21 "WxMainFrame.h" 2 39046c39043 < # 22 "./WxMainFrame.h" 2 --- > # 22 "WxMainFrame.h" 2 39049c39046 < # 1 "./WxAction.h" 1 --- > # 1 "WxAction.h" 1 39060c39057 < # 11 "./WxAction.h" 2 --- > # 11 "WxAction.h" 2 39069,39075c39066,39067 < # 19 "./WxAction.h" 2 < # 1 "/usr/include/wx-2.6/wx/treectrl.h" 1 < # 20 "./WxAction.h" 2 < < # 1 "/usr/include/wx-2.6/wx/tokenzr.h" 1 < # 22 "./WxAction.h" 2 < # 103 "./WxAction.h" --- > # 19 "WxAction.h" 2 > # 103 "WxAction.h" 39086c39078 < # 141 "./WxAction.h" --- > # 141 "WxAction.h" 39550c39542 < # 25 "./WxMainFrame.h" 2 --- > # 25 "WxMainFrame.h" 2 39666c39658 < # 149 "./WxMainFrame.h" --- > # 149 "WxMainFrame.h" 39685,39690c39677,39680 < # 25 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" 2 < # 1 "./WxAction.h" 1 < # 26 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" 2 < # 1 "./WxErrs.h" 1 < # 27 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" 2 < # 1 "./WxRsyncer.h" 1 --- > # 25 "WxAction.cpp" 2 > > > # 1 "WxRsyncer.h" 1 39701c39691 < # 11 "./WxRsyncer.h" 2 --- > # 11 "WxRsyncer.h" 2 39710c39700 < # 19 "./WxRsyncer.h" 2 --- > # 19 "WxRsyncer.h" 2 39979c39969 < # 22 "./WxRsyncer.h" 2 --- > # 22 "WxRsyncer.h" 2 40188c40178 < # 23 "./WxRsyncer.h" 2 --- > # 23 "WxRsyncer.h" 2 40315,40316c40305,40306 < # 28 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" 2 < # 1 "./WxConfig.h" 1 --- > # 28 "WxAction.cpp" 2 > # 1 "WxConfig.h" 1 40327c40317 < # 11 "./WxConfig.h" 2 --- > # 11 "WxConfig.h" 2 40339c40329 < # 19 "./WxConfig.h" 2 --- > # 19 "WxConfig.h" 2 40424c40414 < # 29 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" 2 --- > # 29 "WxAction.cpp" 2 40427c40417 < # 31 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" 2 --- > # 31 "WxAction.cpp" 2 40481c40471 < # 103 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" --- > # 103 "WxAction.cpp" 40486c40476 < # 121 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" --- > # 121 "WxAction.cpp" 40530c40520 < # 208 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" --- > # 208 "WxAction.cpp" 40560c40550 < # 259 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" --- > # 259 "WxAction.cpp" 40569c40559 < # 315 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" --- > # 315 "WxAction.cpp" 40577c40567 < # 337 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" --- > # 337 "WxAction.cpp" 40602c40592 < # 499 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" --- > # 499 "WxAction.cpp" 40667c40657 < # 574 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" --- > # 574 "WxAction.cpp" 40684c40674 < # 600 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" --- > # 600 "WxAction.cpp" 40701c40691 < # 626 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" --- > # 626 "WxAction.cpp" 40718c40708 < # 652 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" --- > # 652 "WxAction.cpp" 40813c40803 < # 763 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" --- > # 763 "WxAction.cpp" 41543c41533 < # 1410 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" 2 --- > # 1410 "WxAction.cpp" 2 41635c41625 < # 1411 "i686_LinuxGnu_.arch/debugthreaded_gcc3/WxAction_A.cpp" 2 --- > # 1411 "WxAction.cpp" 2 _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus