UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 46809

AutoESL - Compiling project results in error "Undefined Reference to 'WinMain@16' collect2: ld returned 1 exit status"

説明

Building C/C++ projects, the following error is reported by AutoESLZ:

libmingw32.a(main.o):main.c:(.text+0xd2): undefined reference to `WinMain@16' collect2: ld returned 1 exit status make: *** [a.exe] Error 1

ソリューション

This error is the result of a missing main() function. Adding testbench with a main() function will remove this error.
AR# 46809
作成日 03/12/2012
最終更新日 11/23/2016
ステータス アクティブ
タイプ 一般
ツール
  • AutoESL