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
Date Created 07/23/2012
Last Updated 07/23/2012
Status Active
Type 14;#
  • AutoESL - 2011.4
  • AutoESL - 2011.4.2
  • AutoESL - 2012.1
  • AutoESL