When I Export["name.c",Compile[]] and I Compile the c code i get the error undefined reference to `WinMain@16'| ,what should i do to solve it?
I believe this is part of the WSTP API, an interface for communication between C code and the Wolfram Language. Have you ensured WolframRTL.h is accessible by your compiler?