Asghar
Asghar

Reputation: 9

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

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

Upvotes: 0

Views: 530

Answers (1)

Armali
Armali

Reputation: 19375

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

Upvotes: 1

Related Questions