Cannot run Opengl program

前端 未结 3 926
梦毁少年i
梦毁少年i 2021-01-16 09:03

I took this progrAM from OpenGL superbible 5th edition.I setup everything like they said in the book,the include paths and also including existing items for the project.

相关标签:
3条回答
  • 2021-01-16 09:22

    The unresolved externals means somthings not linked right, im pretty sure.

    0 讨论(0)
  • 2021-01-16 09:28

    You are going to need to right click your project from the solution explorer -> Properties -> Linker -> System and make sure that SubSystem is set to Console.

    0 讨论(0)
  • 2021-01-16 09:28

    unresolved external symbol _mainCRTStartup

    Linker can't find program entry point.

    You can set up it manually (go to "Project properties -> Configuration properties -> Linker -> Command Line) and add at additional options field "/entry:mainCRTStartup"

    If this doesn't help try to switch subsystem flag (Project properties -> Configuration properties -> Linker -> System) between SUBSYSTEM:WINDOWS and SUBSYSTEM:CONSOLE.

    0 讨论(0)
提交回复
热议问题