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"

Description

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
Last Updated 11/23/2016
状态 Active
Type 综合文章
Tools
  • AutoESL