feri88
جمعه 13 فروردین 1389, 14:14 عصر
سلام
من ویژوال استودیوی 2008 دارم و platform sdk رو هم تازه نصب کردم
می خوام چند تا از sample code هاش رو اجرا کنم، ولی به مشکل برخوردم!
یه مثالی داره به نام sampssp :
یه پروژه خالی از نوع console application ایجاد کردم و فایل های اون رو بهش اضافه کردم و وقتی build اش می کنم این ارور رو میده:
1>------ Build started: Project: sampssp, Configuration: Debug Win32 ------
1>Compiling...
1>Init.c
1>Stubs.c
1>Generating Code...
1>Compiling resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>C:\Documents and Settings\Bahareh\My Documents\Visual Studio 2008\Projects\sampssp\Debug\sampssp.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\Bahareh\My Documents\Visual Studio 2008\Projects\sampssp\sampssp\Debug\BuildLog.htm"
1>sampssp - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
کتابخونه msvcrtd.lib رو هم توی additional dependency اضافه کردم ولی حل نشد
به نظرتون چرا این ارور رو میده؟
خیلی گشتم ولی راه حلی واسش پیدا نکردم، لطفا کمک کنید
ممنون
من ویژوال استودیوی 2008 دارم و platform sdk رو هم تازه نصب کردم
می خوام چند تا از sample code هاش رو اجرا کنم، ولی به مشکل برخوردم!
یه مثالی داره به نام sampssp :
یه پروژه خالی از نوع console application ایجاد کردم و فایل های اون رو بهش اضافه کردم و وقتی build اش می کنم این ارور رو میده:
1>------ Build started: Project: sampssp, Configuration: Debug Win32 ------
1>Compiling...
1>Init.c
1>Stubs.c
1>Generating Code...
1>Compiling resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>C:\Documents and Settings\Bahareh\My Documents\Visual Studio 2008\Projects\sampssp\Debug\sampssp.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\Bahareh\My Documents\Visual Studio 2008\Projects\sampssp\sampssp\Debug\BuildLog.htm"
1>sampssp - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
کتابخونه msvcrtd.lib رو هم توی additional dependency اضافه کردم ولی حل نشد
به نظرتون چرا این ارور رو میده؟
خیلی گشتم ولی راه حلی واسش پیدا نکردم، لطفا کمک کنید
ممنون