Dpuiu C: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
-O # optimizing | -O # optimizing | ||
-pg # profiling | -pg # profiling | ||
Example: | |||
cd /fs/szdevel/dpuiu/SourceForge/AMOS/src/Bank | |||
cp bank-transact.cc bank-transact2.cc | |||
g++ -I../../include/AMOS -o bank-transact2 bank-transact2.cc ../Common/libCommon.a ../AMOS/libAMOS.a | |||
#or | |||
g++ -I../../include/AMOS -c bank-transact2.cc | |||
g++ bank-transact2.o ../Common/libCommon.a ../AMOS/libAMOS.a |
Revision as of 22:26, 23 January 2009
Style
Compiling
- CFLAGS flags
-g # debugging -O # optimizing -pg # profiling
Example:
cd /fs/szdevel/dpuiu/SourceForge/AMOS/src/Bank cp bank-transact.cc bank-transact2.cc
g++ -I../../include/AMOS -o bank-transact2 bank-transact2.cc ../Common/libCommon.a ../AMOS/libAMOS.a #or g++ -I../../include/AMOS -c bank-transact2.cc g++ bank-transact2.o ../Common/libCommon.a ../AMOS/libAMOS.a