C programming in code blocks getting error of undefined reference to 'WinMain'

517 Views Asked by At

I am trying to open a video file in c program in codeblocks but i am getting error ''Undefined Reference to 'WinMain'. I am using codeblocks 16.1 and with opencv installed. i tried to add the libraries mentioned in other answers but i am unable to get output. Help will be highly appriciated

1

There are 1 best solutions below

0
On

You have Winmain(), while the system looks for WinMain.