الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

خطأ غريب اثناء ال bulid

مغلق
بدأه الحذر في 14 مارس 2006 · 2 رد · 481 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم و رحمة الله و بركاته

كتبت برنامج لما عملت compile ما طلع مشاكل

بس لما عملت bilud طلع لي هذا و انا مني فاهم ايش يقصد

--------------------Configuration: 2 - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/2.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

2.exe - 2 error(s), 0 warning(s)

و السلام عليكم و رحمة الله و بركاته

I_can_always_make_you_smile_by_Praerion.jpg

#2

إنت متأكد إنك عملت دالة main ؟؟؟

#3

When you build a project of one of these types • Win32 console application project

• Active Template Library (ATL) DLL/EXE project with release configuration

• A project with main as custom entry point

you may get the following error message from linker:

LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main

CAUSE

A Win32 console application requires the main function as the entry point. Linker returns this error message when it cannot find the main function in any of the files attached to the project.

If your project is an ATL project, the release configurations for ATL projects define _ATL_MIN_CRT, which excludes CRT (C runtime) startup code from your .exe or .dll file. Linker gives this error message when you have _ATL_MIN_CRT defined and you are using the CRT functions that need CRT startup code.

If the project is not one of the types listed in the "Symptoms" section of this article, but you are still getting the error, you might have main selected as an entry point symbol for the project in linker settings but have not provided a main function in the files added to the project

تم تعديل هذه المشاركة بواسطة إسماعيل ابراهيم في 14 مارس 2006 في 10:59

هذا الموضوع مغلق.

مواضيع مشابهة