简体   繁体   中英

DirectX 11.2 Error: X3501: 'main' entry point not found

I have been learning DirectX 11.2 lately from a Tutorial pack from Microsoft. I am up to the 2nd tutorial where you create a triangle using shaders. However there is an error when I compile that is really bugging me and I have no idea how to fix it. error X3501: 'main' entry point not found, but what I don't understand is the fact that I do have the main entry point.

Here is my main function.

[Platform::MTAThread]
int main(Platform::Array<Platform::String^>^)
{
    auto frameworkViewSource = ref new Direct3DFrameworkViewSource();
    Windows::ApplicationModel::Core::CoreApplication::Run(frameworkViewSource);
    return 0;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM