mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-01 05:45:33 +08:00
g++: update Arabic translation (#18573)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com> Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
+16
-16
@@ -1,36 +1,36 @@
|
||||
# g++
|
||||
|
||||
> ترجمة ملفات مصدر C++.
|
||||
> جزء من GCC (مجموعة مترجمات جنو).
|
||||
> لمزيد من التفاصيل: <https://gcc.gnu.org>.
|
||||
> جزء من حزمة GCC (مجموعة مترجمات جنو).
|
||||
> لمزيد من التفاصيل: <https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Dialect-Options.html>.
|
||||
|
||||
- ترجمة ملف مصدر إلى ملف تنفيذي ثنائي (Binary):
|
||||
- ترجمة ملف أو عدة ملفات مصدر إلى ملف تنفيذي:
|
||||
|
||||
`g++ {{path/to/source1.cpp path/to/source2.cpp ...}} {{-o|--output}} {{path/to/output_executable}}`
|
||||
`g++ {{path/to/source1.cpp path/to/source2.cpp ...}} {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- تفعيل عرض جميع الأخطاء والتحذيرات:
|
||||
- إظهار جميع التحذيرات:
|
||||
|
||||
`g++ {{path/to/source.cpp}} -Wall {{-o|--output}} {{output_executable}}`
|
||||
`g++ {{path/to/source.cpp}} -Wall {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- عرض التحذيرات الشائعة، وإضافة رموز التصحيح إلى الإخراج، وتحسين الأداء دون التأثير على التصحيح:
|
||||
- إظهار التحذيرات الشائعة، تضمين رموز التصحيح، وتحسين لا يؤثر في إزالة التصحيح:
|
||||
|
||||
`g++ {{path/to/source.cpp}} -Wall {{-g|--debug}} -Og {{-o|--output}} {{path/to/output_executable}}`
|
||||
`g++ {{path/to/source.cpp}} -Wall {{[-g|--debug]}} -Og {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- اختيار معيار لغة C++ للترجمة (C++98/C++11/C++14/C++17):
|
||||
- اختيار معيار اللغة المستهدف (C++98/C++11/C++14/C++17):
|
||||
|
||||
`g++ {{path/to/source.cpp}} -std={{c++98|c++11|c++14|c++17}} {{-o|--output}} {{path/to/output_executable}}`
|
||||
`g++ {{path/to/source.cpp}} -std={{c++98|c++11|c++14|c++17}} {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- تضمين مكتبات تقع في مسار مختلف عن ملف المصدر:
|
||||
- تضمين مسارات للرؤوس والمكتبات والربط بمكتبة:
|
||||
|
||||
`g++ {{path/to/source.cpp}} {{-o|--output}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}`
|
||||
`g++ {{path/to/source.cpp}} {{[-o|--output]}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}`
|
||||
|
||||
- ترجمة وربط ملفات مصدر متعددة في ملف تنفيذي ثنائي (Binary):
|
||||
- ترجمة ثم ربط عدة ملفات مصدر على خطوتين:
|
||||
|
||||
`g++ {{-c|--compile}} {{path/to/source1.cpp path/to/source2.cpp ...}} && g++ {{-o|--output}} {{path/to/output_executable}} {{path/to/source1.o path/to/source2.o ...}}`
|
||||
`g++ {{[-c|--compile]}} {{path/to/source1.cpp path/to/source2.cpp ...}} && g++ {{[-o|--output]}} {{path/to/output_executable}} {{path/to/source1.o path/to/source2.o ...}}`
|
||||
|
||||
- تحسين البرنامج المترجم لزيادة الأداء:
|
||||
- تحسين الأداء عند الترجمة:
|
||||
|
||||
`g++ {{path/to/source.cpp}} -O{{1|2|3|fast}} {{-o|--output}} {{path/to/output_executable}}`
|
||||
`g++ {{path/to/source.cpp}} -O{{1|2|3|fast}} {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- عرض الإصدار:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user