我从main切换到WinMain并且 Code::Blocks 正在搜索main。我该如何解决?这可能是一个愚蠢的问题,但我在网上找不到。
更新@JBL
#include <iostream>
#include "def.h" //This defines a few things
#include <windows.h>
#include <gl/gl.h>
#include "glcontext.h" //This defines some OpenGL/Win32 functions
using namespace std;
BOOL WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
int nCmdShow)
{
}