C++ (Qt)public: static const int checksumOffset = 12, newNameOffset = 20, maxNameLength = 15, versionOffset = 4, oldNameOffset = 8;
C++ (Qt)private: int nameOffset() const { return isChecksumPresent() ? newNameOffset : oldNameOffset; }
Bashkambala-macbook:QD2CharRenamer kambala$ envTERM_PROGRAM=Apple_TerminalTERM=xterm-colorSHELL=/bin/bashTMPDIR=/var/folders/Y-/Y-+o-8ZUEUy-H0o+5VzAqU+++TI/-Tmp-/Apple_PubSub_Socket_Render=/tmp/launch-EJL2Fz/RenderTERM_PROGRAM_VERSION=273.1OLDPWD=/Users/kambalaUSER=kambalaCOMMAND_MODE=unix2003SSH_AUTH_SOCK=/tmp/launch-eXRCH4/Listeners__CF_USER_TEXT_ENCODING=0x1F5:7:49PATH=/Developer/Qt/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/binPWD=/Developer/Projects/Qt/QD2CharRenamerSHLVL=1HOME=/Users/kambalaLOGNAME=kambalaLC_CTYPE=UTF-8DISPLAY=/tmp/launch-TaNfCL/org.x:0SECURITYSESSIONID=6006b6_=/usr/bin/envkambala-macbook:QD2CharRenamer kambala$ qmakekambala-macbook:QD2CharRenamer kambala$ make/Developer/Qt/bin/uic qd2charrenamer.ui -o ui_qd2charrenamer.hg++ -c -pipe -g -gdwarf-2 -arch i386 -arch ppc -Wall -W -isysroot /Developer/SDKs/MacOSX10.5.sdk -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt/mkspecs/macx-g++ -I. -I../../../Qt/lib/QtCore.framework/Versions/4/Headers -I../../../Qt/include/QtCore -I../../../Qt/lib/QtGui.framework/Versions/4/Headers -I../../../Qt/include/QtGui -I../../../Qt/include -I. -I. -F/Developer/Qt/lib -o main.o main.cppg++ -c -pipe -g -gdwarf-2 -arch i386 -arch ppc -Wall -W -isysroot /Developer/SDKs/MacOSX10.5.sdk -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt/mkspecs/macx-g++ -I. -I../../../Qt/lib/QtCore.framework/Versions/4/Headers -I../../../Qt/include/QtCore -I../../../Qt/lib/QtGui.framework/Versions/4/Headers -I../../../Qt/include/QtGui -I../../../Qt/include -I. -I. -F/Developer/Qt/lib -o qd2charrenamer.o qd2charrenamer.cpp/Developer/Qt/bin/moc -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt/mkspecs/macx-g++ -I. -I../../../Qt/lib/QtCore.framework/Versions/4/Headers -I../../../Qt/include/QtCore -I../../../Qt/lib/QtGui.framework/Versions/4/Headers -I../../../Qt/include/QtGui -I../../../Qt/include -I. -I. -F/Developer/Qt/lib -D__APPLE__ -D__GNUC__ qd2charrenamer.h -o moc_qd2charrenamer.cppg++ -c -pipe -g -gdwarf-2 -arch i386 -arch ppc -Wall -W -isysroot /Developer/SDKs/MacOSX10.5.sdk -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt/mkspecs/macx-g++ -I. -I../../../Qt/lib/QtCore.framework/Versions/4/Headers -I../../../Qt/include/QtCore -I../../../Qt/lib/QtGui.framework/Versions/4/Headers -I../../../Qt/include/QtGui -I../../../Qt/include -I. -I. -F/Developer/Qt/lib -o moc_qd2charrenamer.o moc_qd2charrenamer.cpp/Developer/Qt/bin/rcc -name qd2charrenamer qd2charrenamer.qrc -o qrc_qd2charrenamer.cppg++ -c -pipe -g -gdwarf-2 -arch i386 -arch ppc -Wall -W -isysroot /Developer/SDKs/MacOSX10.5.sdk -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt/mkspecs/macx-g++ -I. -I../../../Qt/lib/QtCore.framework/Versions/4/Headers -I../../../Qt/include/QtCore -I../../../Qt/lib/QtGui.framework/Versions/4/Headers -I../../../Qt/include/QtGui -I../../../Qt/include -I. -I. -F/Developer/Qt/lib -o qrc_qd2charrenamer.o qrc_qd2charrenamer.cppg++ -headerpad_max_install_names -arch i386 -arch ppc -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -o QD2CharRenamer.app/Contents/MacOS/QD2CharRenamer main.o qd2charrenamer.o moc_qd2charrenamer.o qrc_qd2charrenamer.o -F/Developer/Qt/lib -L/Developer/Qt/lib -framework QtGui -L/Developer/Qt/lib -F/Developer/Qt/lib -framework QtCore Undefined symbols for architecture i386: "QD2CharRenamer::newNameOffset", referenced from: __ZN14QD2CharRenamer13newNameOffsetE$non_lazy_ptr in qd2charrenamer.o (maybe you meant: __ZN14QD2CharRenamer13newNameOffsetE$non_lazy_ptr) "QD2CharRenamer::oldNameOffset", referenced from: __ZN14QD2CharRenamer13oldNameOffsetE$non_lazy_ptr in qd2charrenamer.o (maybe you meant: __ZN14QD2CharRenamer13oldNameOffsetE$non_lazy_ptr)ld: symbol(s) not found for architecture i386collect2: ld returned 1 exit statusUndefined symbols for architecture ppc: "QD2CharRenamer::newNameOffset", referenced from: __ZN14QD2CharRenamer13newNameOffsetE$non_lazy_ptr in qd2charrenamer.o (maybe you meant: __ZN14QD2CharRenamer13newNameOffsetE$non_lazy_ptr) "QD2CharRenamer::oldNameOffset", referenced from: __ZN14QD2CharRenamer13oldNameOffsetE$non_lazy_ptr in qd2charrenamer.o (maybe you meant: __ZN14QD2CharRenamer13oldNameOffsetE$non_lazy_ptr)ld: symbol(s) not found for architecture ppccollect2: ld returned 1 exit statuslipo: can't open input file: /var/folders/Y-/Y-+o-8ZUEUy-H0o+5VzAqU+++TI/-Tmp-//ccvDyjHA.out (No such file or directory)make: *** [QD2CharRenamer.app/Contents/MacOS/QD2CharRenamer] Error 1
C++ (Qt)const int QD2CharRenamer::checksumOffset = 12;const int QD2CharRenamer::newNameOffset = 20;const int QD2CharRenamer::maxNameLength = 15;const int QD2CharRenamer::versionOffset = 4;const int QD2CharRenamer::oldNameOffset = 8;
C++ (Qt)static const int checksumOffset, newNameOffset, maxNameLength, versionOffset, oldNameOffset;